<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Interface.setStatusPropagationMethod() ?]]></title><description><![CDATA[<p dir="auto">In NXShell, would you please consider implementing a <a href="https://www.netxms.org/documentation/javadoc/latest/org/netxms/client/objects/AbstractObject.html" rel="nofollow ugc">AbstractObject</a>.setStatusPropagationMethod or <a href="https://www.netxms.org/documentation/javadoc/latest/org/netxms/client/objects/Interface.html" rel="nofollow ugc">Interface</a>.setStatusPropagationMethod method, or some other implementation that allows us to set status propagation, to allow for things like setting the status propagation of interfaces? Setting this up manually for many interfaces over many nodes is very tedious.</p>
<p dir="auto"><a href="/topic/2724">Someone else was, more or less, asking about this back in 2013 as well</a>.</p>
]]></description><link>https://forum.netxms.org/topic/5705/interface.setstatuspropagationmethod</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:30:43 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5705.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 03 Oct 2018 09:23:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Interface.setStatusPropagationMethod() ? on Thu, 04 Oct 2018 05:46:16 GMT]]></title><description><![CDATA[<p dir="auto">I should have looked more closely, even at my old nxshell scripts. Thanks.</p>
]]></description><link>https://forum.netxms.org/post/24870</link><guid isPermaLink="true">https://forum.netxms.org/post/24870</guid><dc:creator><![CDATA[Staj]]></dc:creator><pubDate>Thu, 04 Oct 2018 05:46:16 GMT</pubDate></item><item><title><![CDATA[Reply to Interface.setStatusPropagationMethod() ? on Wed, 03 Oct 2018 13:57:33 GMT]]></title><description><![CDATA[<p dir="auto">In nxshell you can so whatever is possible from UI. Object modifications should be done via NXCSession.modifyObject method - you set necessary fields in object modification data object and then call modifyObject.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/24869</link><guid isPermaLink="true">https://forum.netxms.org/post/24869</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 03 Oct 2018 13:57:33 GMT</pubDate></item><item><title><![CDATA[Reply to Interface.setStatusPropagationMethod() ? on Wed, 03 Oct 2018 10:25:37 GMT]]></title><description><![CDATA[<p dir="auto">For those looking to do this in SQL, here is some information:</p>
<p dir="auto">Relevant data is kept in the <em>object_properties</em> table.<br />
<em>object_properties.status_prop_alg</em> is the Propagate Status Method and acceptable values are defined in <a href="https://github.com/netxms/netxms/blob/stable-2.2/include/nxcldefs.h#L307" rel="nofollow ugc">nxcldefs.h:307</a>.</p>
<p dir="auto"><strong>Default:</strong><br />
object_properties.status_prop_alg = 0</p>
<p dir="auto"><strong>Unchanged:</strong><br />
object_properties.status_prop_alg = 1</p>
<p dir="auto"><strong>Fixed to value:</strong><br />
object_properties.status_prop_alg = 2<br />
<em>object_properties.status_fixed_val</em> is the Status it will be fixed to, acceptable values are 0 through 4 (<a href="https://github.com/netxms/netxms/blob/stable-2.2/src/server/core/netobj.cpp#L1682" rel="nofollow ugc">netobj.cpp:1682</a>) as defined in <a href="https://github.com/netxms/netxms/blob/stable-2.2/include/nxcldefs.h#L138" rel="nofollow ugc">nxcldefs.h:138</a>.</p>
<p dir="auto"><strong>Relative with offset:</strong><br />
object_properties.status_prop_alg = 3<br />
<em>object_properties.status_shift</em> is the offset <a href="https://github.com/netxms/netxms/blob/stable-2.2/src/server/core/netobj.cpp#L1687" rel="nofollow ugc">applied</a> to the actual <a href="https://github.com/netxms/netxms/blob/stable-2.2/include/nxcldefs.h#L138" rel="nofollow ugc">status value</a>.</p>
<p dir="auto"><strong>Severity Based:</strong><br />
object_properties.status_prop_alg = 4<br />
<em>object_properties.status_translation</em> is the mapping of actual status values to propogated ones. It is split into 4 segments of 2 characters which essentially represent the status integer for the respective slot.<br />
First segment is the propagated status for a Warning status.<br />
Second segment is the propagated status for a Minor status.<br />
Third segment is the propagated status for a Major status.<br />
Fourth segment is the propagated status for a Critical status.</p>
<p dir="auto">So <em>object_properties.status_translation</em> of "00010303" would yield Normal (00 which is 0) being propagated for Warning, Warning (01 which is 1) being propagated for Minor, Major (03 which is 3) being propagated for Major and Major being propagated for Critical.</p>
<p dir="auto"><strong>Example SQL Snippet (MySQL):</strong><br />
Set all matching interfaces (Interfaces with names that starts with "ge-") of node of ID 1234 to propagate status on a severity based (severity translated) basis and use the provided translation mapping:</p>
<pre><code>UPDATE object_properties
INNER JOIN interfaces ON interfaces.id = object_properties.object_id
SET object_properties.status_prop_alg = 4, object_properties.status_translation = "01020303"
WHERE interfaces.node_id = 1234 AND object_properties.name LIKE "ge-%"
</code></pre>
<p dir="auto">If I've made any mistakes, please let me know.</p>
]]></description><link>https://forum.netxms.org/post/24867</link><guid isPermaLink="true">https://forum.netxms.org/post/24867</guid><dc:creator><![CDATA[Staj]]></dc:creator><pubDate>Wed, 03 Oct 2018 10:25:37 GMT</pubDate></item></channel></rss>