<?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[scripting and ssh commands]]></title><description><![CDATA[<p dir="auto">Could realy use some help with scripting, just starting out with it and could use some guidance.</p>
<p dir="auto">i have peaced together a sample script that is supposed to ssh into device and reboot it, i wanna use it through tool menu. So far i havent got it working yet.</p>
<p dir="auto">Script: AgentReadList(FindNodeObject($node, 2493), "SSH.Command(192.168.1.10,user,password,put [/system reboot])");</p>
<p dir="auto">Device never recives any ssh logins</p>
]]></description><link>https://forum.netxms.org/topic/6154/scripting-and-ssh-commands</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:40:46 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6154.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Sep 2019 16:55:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to scripting and ssh commands on Tue, 18 Feb 2020 16:42:01 GMT]]></title><description><![CDATA[<p dir="auto">ssh functionality is implemented only in ssh.nsm subagent, server does not do ssh communications. So, if you have zoning, you need to load ssh.nsm on zone proxies. If there's no zoning, agent running on netxms server will be used for ssh commands, so you need to enable ssh.nsm there.</p>
]]></description><link>https://forum.netxms.org/post/27399</link><guid isPermaLink="true">https://forum.netxms.org/post/27399</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Tue, 18 Feb 2020 16:42:01 GMT</pubDate></item><item><title><![CDATA[Reply to scripting and ssh commands on Mon, 10 Feb 2020 11:49:07 GMT]]></title><description><![CDATA[<p dir="auto">Resurecting an old topic.</p>
<p dir="auto">What i am trying to do is make tool-&gt;restart ssh command (for ubiquiti wireless device).</p>
<p dir="auto">is "$node-&gt;executeSSHCommand("reboot");" correct syntax ? when i run it it returns null as value and device doesent reboot. Ssh credentials are filled out in node config.</p>
]]></description><link>https://forum.netxms.org/post/27345</link><guid isPermaLink="true">https://forum.netxms.org/post/27345</guid><dc:creator><![CDATA[Egert143]]></dc:creator><pubDate>Mon, 10 Feb 2020 11:49:07 GMT</pubDate></item><item><title><![CDATA[Reply to scripting and ssh commands on Tue, 10 Sep 2019 09:53:05 GMT]]></title><description><![CDATA[<p dir="auto">You can use attributes from node objects (NXSL class Node - <a href="https://wiki.netxms.org/wiki/NXSL:Node" rel="nofollow ugc">https://wiki.netxms.org/wiki/NXSL:Node</a>, accessible via $node variable). SSH credentials are not accessible from NXSL, however it version 3.0 we have added method executeSSHCommand in Node class.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/26472</link><guid isPermaLink="true">https://forum.netxms.org/post/26472</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 10 Sep 2019 09:53:05 GMT</pubDate></item><item><title><![CDATA[Reply to scripting and ssh commands on Tue, 10 Sep 2019 07:36:44 GMT]]></title><description><![CDATA[<p dir="auto">Any help with last question ? <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.netxms.org/post/26471</link><guid isPermaLink="true">https://forum.netxms.org/post/26471</guid><dc:creator><![CDATA[Egert143]]></dc:creator><pubDate>Tue, 10 Sep 2019 07:36:44 GMT</pubDate></item><item><title><![CDATA[Reply to scripting and ssh commands on Thu, 05 Sep 2019 12:54:23 GMT]]></title><description><![CDATA[<p dir="auto">Node 2493 is router. i changed it to netxms server and now the script is working.</p>
<p dir="auto">AgentReadList(FindNodeObject($node, "NetXms-Server"), "SSH.Command(192.168.1.10, username ,password,put [/system reboot])");</p>
<p dir="auto">When i create tool to run this script, how can i insert dynamic values to script, that are taken from node where tool is used (ip, username, password)?</p>
<p dir="auto">Egert</p>
]]></description><link>https://forum.netxms.org/post/26451</link><guid isPermaLink="true">https://forum.netxms.org/post/26451</guid><dc:creator><![CDATA[Egert143]]></dc:creator><pubDate>Thu, 05 Sep 2019 12:54:23 GMT</pubDate></item><item><title><![CDATA[Reply to scripting and ssh commands on Thu, 05 Sep 2019 10:26:58 GMT]]></title><description><![CDATA[<p dir="auto">Do you have SSH subagent loaded on node with ID 2493? If yes, check agent's log on that node for how SSH request was processed. You may need to set debug level 5 or higher on agent.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/26450</link><guid isPermaLink="true">https://forum.netxms.org/post/26450</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 05 Sep 2019 10:26:58 GMT</pubDate></item></channel></rss>