<?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[Netxms 3.1.261 and device discovery]]></title><description><![CDATA[<p dir="auto">I have a large class of devices (perhaps mostly Cisco?) that are failing discovery in an odd way.</p>
<ol>
<li>Devices are detected with isSNMP=Yes, GENERIC driver, and added to db</li>
<li>Manual inspection shows that devices were added with SNMP 'public' community</li>
<li>Devices respond to a snmpwalk using 'public' with the following:<br />
iso.3.6.1.2.1 = No more variables left in this MIB View (It is past the end of the MIB tree)<br />
Note that this is a different response than with an invalid string; with an invalid string, queries just time out. With this (ACLed) string, 'public' simply has no allowed views.</li>
<li>Devices (and discovery) are configured with a *different* SNMP string which does actually work via a walk, but not via discovery.</li>
</ol>
<p dir="auto">Is there a way to change discovery behavior to try 'public' *last*? There doesn't appear to be an order in the SNMP Configuration that's relevant.</p>
<p dir="auto">Is there a way to batch change configured SNMP communities on nodes? Batch 'properties' change doesn't seem to exist in the UI. Better yet, can I do this with NXSL? I'm not seeing an attribute that lets me check or set the SNMP community.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.netxms.org/topic/6345/netxms-3.1.261-and-device-discovery</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 16:06:56 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6345.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Dec 2019 20:11:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Netxms 3.1.261 and device discovery on Thu, 26 Dec 2019 12:43:01 GMT]]></title><description><![CDATA[<p dir="auto">Here's an example of such script, that will change community string for all nodes, that have SNMP polling enabled</p>
<pre><code>newAuthName = 'public2'
for node in [o for o in session.getAllObjects() if isinstance(o, objects.Node)]: # filter all objects for objects.Node
    if (node.getFlags() &amp; Node.NF_DISABLE_SNMP) = 0: # SNMP polling is not disabled
        if (node.getSnmpAuthName() != newAuthName):
            print('Processing node %s: changing community string from %s to %s' % (node.objectName, node.getSnmpAuthName(), newAuthName))
            md = NXCObjectModificationData(node.objectId)
            md.setSnmpAuthName(newAuthName)
            session.modifyObject(md)
</code></pre>
<p dir="auto">The script is launched like this:</p>
<pre><code>java -jar nxshell-3.1.241.jar script_name.py
</code></pre>
<p dir="auto">There are some examples of Jython scripts in netxms sources in <strong>src/client/nxshell/samples/</strong><br />
Some examples are also here: <strong><a href="https://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations" rel="nofollow ugc">https://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations</a></strong><br />
Documentation of API calls is here: <strong><a href="https://www.netxms.org/documentation/javadoc/latest/overview-summary.html" rel="nofollow ugc">https://www.netxms.org/documentation/javadoc/latest/overview-summary.html</a></strong></p>
]]></description><link>https://forum.netxms.org/post/27202</link><guid isPermaLink="true">https://forum.netxms.org/post/27202</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Thu, 26 Dec 2019 12:43:01 GMT</pubDate></item><item><title><![CDATA[Reply to Netxms 3.1.261 and device discovery on Tue, 24 Dec 2019 15:56:22 GMT]]></title><description><![CDATA[<p dir="auto">Thank you, Filipp. Has anyone written such a script yet that you know of?</p>
]]></description><link>https://forum.netxms.org/post/27201</link><guid isPermaLink="true">https://forum.netxms.org/post/27201</guid><dc:creator><![CDATA[jermudgeon]]></dc:creator><pubDate>Tue, 24 Dec 2019 15:56:22 GMT</pubDate></item><item><title><![CDATA[Reply to Netxms 3.1.261 and device discovery on Tue, 17 Dec 2019 16:35:39 GMT]]></title><description><![CDATA[<p dir="auto">Currently community strings are not sorted / prioritized. The value specified in node properties ('public' by default) is tried first, then server tries community strings from settings (in order in which the database returned the list).</p>
<p dir="auto">There is no way to change community string from NXSL.<br />
The only possible way for now is to use a Jython script launched by nxshell.</p>
]]></description><link>https://forum.netxms.org/post/27158</link><guid isPermaLink="true">https://forum.netxms.org/post/27158</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Tue, 17 Dec 2019 16:35:39 GMT</pubDate></item></channel></rss>