<?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[GetItemFromSNMP]]></title><description><![CDATA[<p dir="auto">Добрый день.<br />
подскажите как с коносоли можно взять параметр по snmp разово проверить<br />
GetItemFromSNMP</p>
<p dir="auto">например mib getmiB 1.3.6.1.2.1.31.1.1.1.10.305</p>
]]></description><link>https://forum.netxms.org/topic/3506/getitemfromsnmp</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:35:33 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3506.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Dec 2014 06:17:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GetItemFromSNMP on Tue, 16 Dec 2014 18:50:14 GMT]]></title><description><![CDATA[<p dir="auto">Вообще лучше использовать wiki: <a href="http://wiki.netxms.org/wiki/NXSL_Function_Reference" rel="nofollow ugc">http://wiki.netxms.org/wiki/NXSL_Function_Reference</a> - там точно информация будет актуальней. Calltips больше для удобства написания скриптов, не стоит их как мануал воспринимать.</p>
]]></description><link>https://forum.netxms.org/post/15549</link><guid isPermaLink="true">https://forum.netxms.org/post/15549</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 16 Dec 2014 18:50:14 GMT</pubDate></item><item><title><![CDATA[Reply to GetItemFromSNMP on Tue, 16 Dec 2014 04:12:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/victor" aria-label="Profile: victor">@<bdi>victor</bdi></a> said in <a href="/post/15534">GetItemFromSNMP</a>:</p>
<blockquote>
<p dir="auto">Так SET или WALK все таки?</p>
</blockquote>
<p dir="auto">хочу сделать скрипт который посылает команду по SNMP (делает бэкап конфига).<br />
если использовать net-snmp-5.6.1.1-1.x86 то там синтаксис будет .. такой</p>
<p dir="auto">snmpset -v 2c -c "$device_community" $device_ip 1.3.6.1.4.1.11.2.14.11.5.1.7.1.5.6.0 i 2<br />
echo "get running-config $1-$2-$3-$4-$5-$device_ip.txt"|tftp $device_ip</p>
<p dir="auto">хотелось бы сделать скрипт используя netxms т.к настройки для snmp для устройств уже прописаны.<br />
смотрю NetXMS Calltips - 2014102202.xml там сразу не нашел SNMPSet<br />
сегодня попробую сделать .. по синтаксису &lt;Param name="transport,oid,value,[data type]" /&gt; спс.</p>
]]></description><link>https://forum.netxms.org/post/15541</link><guid isPermaLink="true">https://forum.netxms.org/post/15541</guid><dc:creator><![CDATA[Aleksander]]></dc:creator><pubDate>Tue, 16 Dec 2014 04:12:29 GMT</pubDate></item><item><title><![CDATA[Reply to GetItemFromSNMP on Mon, 15 Dec 2014 09:43:50 GMT]]></title><description><![CDATA[<p dir="auto">Так SET или WALK все таки?</p>
]]></description><link>https://forum.netxms.org/post/15534</link><guid isPermaLink="true">https://forum.netxms.org/post/15534</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 15 Dec 2014 09:43:50 GMT</pubDate></item><item><title><![CDATA[Reply to GetItemFromSNMP on Mon, 15 Dec 2014 02:57:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/victor" aria-label="Profile: victor">@<bdi>victor</bdi></a> said in <a href="/post/15509">GetItemFromSNMP</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aleksander" aria-label="Profile: aleksander">@<bdi>aleksander</bdi></a> said in <a href="/post/15508">GetItemFromSNMP</a>:</p>
<blockquote>
<p dir="auto">вопрос тогда где можно взять NetXMS.xml из статьи <a href="http://wiki.netxms.org/wiki/NXSL_Syntax_highlight_and_calltips" rel="nofollow ugc">http://wiki.netxms.org/wiki/NXSL_Syntax_highlight_and_calltips</a></p>
</blockquote>
<p dir="auto">Там в самом конце статьи есть ссылка на пост в форуме где можно эти файлы скачать.</p>
</blockquote>
<p dir="auto">еще вопрос..<br />
судя по<br />
        &lt;KeyWord name="SNMPSet" func="yes"&gt;<br />
            &lt;Overload retVal="" descr="<br />
            Description<br />
              Assign a specific value to the given SNMP object for the node.<br />
              The node and all SNMP communication details defined by SNMP transport.<br />
            <br />
            Returns<br />
              TRUE on success, FALSE in case of failure."&gt;<br />
                &lt;Param name="transport,oid,value,[data type]" /&gt;<br />
            &lt;/Overload&gt;<br />
        &lt;/KeyWord&gt;<br />
        <br />
        &lt;KeyWord name="SNMPWalk" func="yes"&gt;<br />
            &lt;Overload retVal="" descr="<br />
            Description<br />
              Get an array of the object values from specific node with SNMP WALK request.<br />
              The node and all SNMP communication details defined by SNMP transport.<br />
            <br />
            Returns<br />
              Array of SNMP_VarBind objects or NULL on failure."&gt;<br />
                &lt;Param name="transport,oid" /&gt;<br />
            &lt;/Overload&gt;<br />
        &lt;/KeyWord&gt;<br />
команда snmpset -v 2c -c</p>
<p dir="auto">будет работать как ..<br />
transport = CreateSNMPTransport($node);    // Create SNMP transport for node<br />
if (transport == null)<br />
{<br />
    println "Failed to create SNMP transport, exit";<br />
    return 1;<br />
}<br />
 <br />
value="get running-config $device_ip.txt"|tftp $device_ip<br />
SNMPWalk(transport,"1.3.6.1.4.1.11.2.14.11.5.1.7.1.5.6.0",value)</p>
<p dir="auto">надеюсь я правильно понял суть вопроса.</p>
]]></description><link>https://forum.netxms.org/post/15529</link><guid isPermaLink="true">https://forum.netxms.org/post/15529</guid><dc:creator><![CDATA[Aleksander]]></dc:creator><pubDate>Mon, 15 Dec 2014 02:57:46 GMT</pubDate></item><item><title><![CDATA[Reply to GetItemFromSNMP on Thu, 11 Dec 2014 10:00:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aleksander" aria-label="Profile: aleksander">@<bdi>aleksander</bdi></a> said in <a href="/post/15508">GetItemFromSNMP</a>:</p>
<blockquote>
<p dir="auto">вопрос тогда где можно взять NetXMS.xml из статьи <a href="http://wiki.netxms.org/wiki/NXSL_Syntax_highlight_and_calltips" rel="nofollow ugc">http://wiki.netxms.org/wiki/NXSL_Syntax_highlight_and_calltips</a></p>
</blockquote>
<p dir="auto">Там в самом конце статьи есть ссылка на пост в форуме где можно эти файлы скачать.</p>
]]></description><link>https://forum.netxms.org/post/15509</link><guid isPermaLink="true">https://forum.netxms.org/post/15509</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 11 Dec 2014 10:00:14 GMT</pubDate></item><item><title><![CDATA[Reply to GetItemFromSNMP on Thu, 11 Dec 2014 05:27:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zev" aria-label="Profile: zev">@<bdi>zev</bdi></a> said in <a href="/post/15506">GetItemFromSNMP</a>:</p>
<blockquote>
<p dir="auto">Добрый день.</p>
<p dir="auto">Начиная с версии 1.2.17 у ноды в меню есть пункт "execute script".<br />
В открывшемся окне можно написать скрипт который исполнится на этой ноде.<br />
Пример скрипта можно посмотреть здесь: <a href="http://wiki.netxms.org/wiki/Script_Example:_Read_SNMP_Value_From_Node" rel="nofollow ugc">http://wiki.netxms.org/wiki/Script_Example:_Read_SNMP_Value_From_Node</a><br />
Только не нужна проверка на подаваемый параметр(их нету) и вместо FindObject($1) можно сразу написать $node</p>
</blockquote>
<p dir="auto">вопрос тогда где можно взять NetXMS.xml из статьи <a href="http://wiki.netxms.org/wiki/NXSL_Syntax_highlight_and_calltips" rel="nofollow ugc">http://wiki.netxms.org/wiki/NXSL_Syntax_highlight_and_calltips</a></p>
]]></description><link>https://forum.netxms.org/post/15508</link><guid isPermaLink="true">https://forum.netxms.org/post/15508</guid><dc:creator><![CDATA[Aleksander]]></dc:creator><pubDate>Thu, 11 Dec 2014 05:27:34 GMT</pubDate></item><item><title><![CDATA[Reply to GetItemFromSNMP on Wed, 10 Dec 2014 13:38:00 GMT]]></title><description><![CDATA[<p dir="auto">Добрый день.</p>
<p dir="auto">Начиная с версии 1.2.17 у ноды в меню есть пункт "execute script".<br />
В открывшемся окне можно написать скрипт который исполнится на этой ноде.<br />
Пример скрипта можно посмотреть здесь: <a href="http://wiki.netxms.org/wiki/Script_Example:_Read_SNMP_Value_From_Node" rel="nofollow ugc">http://wiki.netxms.org/wiki/Script_Example:_Read_SNMP_Value_From_Node</a><br />
Только не нужна проверка на подаваемый параметр(их нету) и вместо FindObject($1) можно сразу написать $node</p>
]]></description><link>https://forum.netxms.org/post/15506</link><guid isPermaLink="true">https://forum.netxms.org/post/15506</guid><dc:creator><![CDATA[zev]]></dc:creator><pubDate>Wed, 10 Dec 2014 13:38:00 GMT</pubDate></item></channel></rss>