<?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 - Modify interface expected state]]></title><description><![CDATA[<p dir="auto">Hi!<br />
I've seen that the fastest way to change the interface expected state is use NXShell (<a href="https://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations#Set_expected_interface_state" rel="nofollow ugc">https://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations#Set_expected_interface_state</a>).</p>
<p dir="auto">The script below change the interface expected state for ALL configured node.</p>
<p dir="auto">How can I modify this script for change interface expected state node by node?</p>
<p dir="auto">Thanks in advance</p>
]]></description><link>https://forum.netxms.org/topic/3611/nxshell-modify-interface-expected-state</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:19:52 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3611.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Feb 2015 16:55:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NXShell - Modify interface expected state on Fri, 20 Feb 2015 10:35:22 GMT]]></title><description><![CDATA[<p dir="auto">Hello Alex,<br />
thanks a lot for your help!</p>
<p dir="auto">Is it possible to use this script to modify the interface Fixed Propagated Status?</p>
<p dir="auto">Thank.</p>
]]></description><link>https://forum.netxms.org/post/15963</link><guid isPermaLink="true">https://forum.netxms.org/post/15963</guid><dc:creator><![CDATA[pablitos79]]></dc:creator><pubDate>Fri, 20 Feb 2015 10:35:22 GMT</pubDate></item><item><title><![CDATA[Reply to NXShell - Modify interface expected state on Thu, 19 Feb 2015 21:22:27 GMT]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">Just remove loop and lookup node beforehand:</p>
<pre><code>node = session.findObjectByName('SERVER1')
for interface in node.getAllChilds(objects.GenericObject.OBJECT_INTERFACE):
		currentExpectedState = interface.getExpectedState()
		print 'Node "%s" interface "%s" had expected state %d, setting to %d' % (node.getObjectName(), interface.getObjectName(), currentExpectedState, newExpectedState)
		data = NXCObjectModificationData(interface.getObjectId())
		data.setExpectedState(newExpectedState)
		session.modifyObject(data)
</code></pre>
]]></description><link>https://forum.netxms.org/post/15962</link><guid isPermaLink="true">https://forum.netxms.org/post/15962</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Thu, 19 Feb 2015 21:22:27 GMT</pubDate></item></channel></rss>