<?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[Run ssh command through agent]]></title><description><![CDATA[<p dir="auto">Hi every one</p>
<p dir="auto">I would like to to run a ssh command through my agent as a script<br />
I puted the subagent in the nxagentd.conf<br />
SubAgent = ssh.nsm</p>
<p dir="auto">I tried this</p>
<p dir="auto">Ssh.command(ip,"username","password","reboot now")<br />
and i got back this</p>
<p dir="auto">Error 11 in line 1: Function not found</p>
<p dir="auto">Does anybody have any idea why this dont want to work?<br />
Thanks for any help</p>
]]></description><link>https://forum.netxms.org/topic/5896/run-ssh-command-through-agent</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:12:43 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5896.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Apr 2019 18:41:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Run ssh command through agent on Tue, 09 Apr 2019 07:28:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">it is not NXSL function, but list provided by agent. You can call it from NXSL script like this:</p>
<p dir="auto">AgentReadList($node, "SSH.Command(ip,login,password,command");</p>
<p dir="auto">Use string concatenation to insert dynamic values.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/25556</link><guid isPermaLink="true">https://forum.netxms.org/post/25556</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 09 Apr 2019 07:28:00 GMT</pubDate></item></channel></rss>