<?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[NXShell - Set Severity Based Status Propagation Method and its Mappings]]></title><description><![CDATA[<p dir="auto">I need to write a NXShell script that sets the severity-based settings for the Propagation of status for interface objects as I'm unhappy with the defaults.</p>
<p dir="auto">I'm assuming I have to use AbstractObject's statusPropagationMethod and maybe statusTransformation? Except they're read only? Any quick snippets on how to change each status to another status should be helpful.</p>
]]></description><link>https://forum.netxms.org/topic/6740/nxshell-set-severity-based-status-propagation-method-and-its-mappings</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:30:13 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6740.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Oct 2020 02:37:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NXShell - Set Severity Based Status Propagation Method and its Mappings on Thu, 12 Nov 2020 15:48:20 GMT]]></title><description><![CDATA[<p dir="auto">With current API we need to set all fields related to propagation to modify anything there:</p>
<pre><code>node = session.findObjectByName("ttt")
if node:
    md = NXCObjectModificationData(node.objectId)

    # copy existing properties
    md.statusPropagationMethod = node.statusPropagationMethod
    md.statusCalculationMethod = node.statusCalculationMethod
    md.fixedPropagatedStatus = node.fixedPropagatedStatus
    md.statusShift = node.statusShift
    md.statusTransformation = node.statusTransformation
    md.statusSingleThreshold = node.statusSingleThreshold
    md.statusThresholds = node.statusThresholds

    # new value
    md.statusPropagationMethod = AbstractNode.PROPAGATE_DEFAULT

    session.modifyObject(md)
</code></pre>
<p dir="auto">Also, it's possible to change propagation setting from NXSL, that should be easier and you can do this e.g. from interface creation hook.</p>
<p dir="auto">And it's also possible to change what the default settings are - it's set in Configuration -&gt; Server configuration.</p>
]]></description><link>https://forum.netxms.org/post/28825</link><guid isPermaLink="true">https://forum.netxms.org/post/28825</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Thu, 12 Nov 2020 15:48:20 GMT</pubDate></item></channel></rss>