<?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[Dumb question - snmp transport - unmanaged node - options]]></title><description><![CDATA[<p dir="auto">I have created a snmp get script - line for line out of the admin guide - tweaked with clearer answers.</p>
<p dir="auto">The problem is - if a node is unmanaged, create transport fails and I am unable to run the script.<br />
If it is in maintenance - it is fine.</p>
<p dir="auto">Therefore the question is - if unmanaging a node prevents me from creating a transport, is there an alternate option to check snmp response whilst node is unmanaged?</p>
<pre><code>transport = CreateSNMPTransport ($node);// Create SNMP transport for node
println $node-&gt;name;
if (transport == null)
{
  println "Failed to create SNMP transport, NetXMS is very unhappy, DONT poll unmanaged nodes exit";
      return $1;
}
value = SNMPGetValue(transport, ".1.3.6.1.2.1.1.1.0");
if (value == null)
{
    println "Failed to issue SNMP GET request as no SNMP response - might be community, might be connectivity - try pinging the node first!!";
       return 2;
       }
       else
       {
         println "SNMP request responded to our request for sysdescrt - and here it is ::" . value;
         return 0;
}
</code></pre>
]]></description><link>https://forum.netxms.org/topic/6032/dumb-question-snmp-transport-unmanaged-node-options</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:24:41 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6032.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 03 Jul 2019 18:17:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dumb question - snmp transport - unmanaged node - options on Wed, 10 Jul 2019 02:03:39 GMT]]></title><description><![CDATA[<p dir="auto">Fantastic solution - thanks Victor</p>
]]></description><link>https://forum.netxms.org/post/26104</link><guid isPermaLink="true">https://forum.netxms.org/post/26104</guid><dc:creator><![CDATA[paul]]></dc:creator><pubDate>Wed, 10 Jul 2019 02:03:39 GMT</pubDate></item><item><title><![CDATA[Reply to Dumb question - snmp transport - unmanaged node - options on Sun, 07 Jul 2019 11:15:27 GMT]]></title><description><![CDATA[<p dir="auto">Yes, unmanaged state prevents SNMP transport creation. As possible workaround you can set node as managed from the script, create transport, and set it back to unmanaged. If you don't want any poll to start, you can disable polling before setting node to managed state.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/26080</link><guid isPermaLink="true">https://forum.netxms.org/post/26080</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Sun, 07 Jul 2019 11:15:27 GMT</pubDate></item></channel></rss>