<?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[Execute command on remote node via agent]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">And thanks for a great product .. it has resolved a lot of problems for us <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>
<p dir="auto">but ... i can't get remote script working on event..</p>
<p dir="auto">I made a action on the agent ... nxagentd.conf<br />
EnableActions=yes<br />
Action=script1:/bin/ls -l &gt; /tmp/script1.txt &amp;&amp; echo 1</p>
<p dir="auto">And in Configuration-&gt;Actions Configuration -&gt;<br />
Name : agentscript1<br />
type : Execute command on remote node via agent<br />
Remote host : %a<br />
Agent's action: script1</p>
<p dir="auto">when i add a Event processing Policy before the "Generate alarm on threshold violation" as a copy of that .. remove the "create new" to "Do not change alarms" .. and add "Server Acrions" -&gt; Action = agentscript1 ...</p>
<p dir="auto">when i stress the agent pc i can se the agent log receive the action request fine ..</p>
<p dir="auto">Connection from 192.168.1.29 accepted<br />
[18-Apr-2016 22:17:46.975] [DEBUG] [session:1] Received control message CMD_GET_NXCP_CAPS<br />
[18-Apr-2016 22:17:46.975] [DEBUG] [session:1] Sending message CMD_NXCP_CAPS (size 16)<br />
[18-Apr-2016 22:17:46.986] [DEBUG] [session:1] Received message CMD_SET_SERVER_CAPABILITIES<br />
[18-Apr-2016 22:17:46.986] [DEBUG] [session:1] Sending message CMD_REQUEST_COMPLETED (size 32)<br />
[18-Apr-2016 22:17:46.997] [DEBUG] [session:1] Received message CMD_ACTION<br />
[18-Apr-2016 22:17:46.997] [DEBUG] Executing action script1 of type 1<br />
[18-Apr-2016 22:17:46.997] [DEBUG] EXEC: Expanding command "/bin/ls -l &gt; /tmp/script1.txt &amp;&amp; echo 1"<br />
[18-Apr-2016 22:17:46.997] [DEBUG] EXEC: Executing "/bin/ls -l &gt; /tmp/script1.txt &amp;&amp; echo 1"<br />
[18-Apr-2016 22:17:47.008] [DEBUG] [session:1] Sending message CMD_REQUEST_COMPLETED (size 32)<br />
[18-Apr-2016 22:17:47.019] [DEBUG] [session:1] Message receiving error (MSGRECV_CLOSED)<br />
[18-Apr-2016 22:17:47.019] [DEBUG] [session:1] Session with 192.168.1.29 closed<br />
[18-Apr-2016 22:17:56.961] [DEBUG] [session:0] Received message CMD_GET_PARAMETER<br />
[18-Apr-2016 22:17:56.961] [DEBUG] [session:0] Requesting parameter "System.CPU.LoadAvg"<br />
[18-Apr-2016 22:17:56.961] [DEBUG] [session:0] Sending message CMD_REQUEST_COMPLETED (size 64)</p>
<p dir="auto">but nothing happend !! .. no /tmp/script1.txt files ...</p>
<p dir="auto">i had try to add the actions in "Object tools" and i works fine there ..</p>
<p dir="auto">any help ??</p>
]]></description><link>https://forum.netxms.org/topic/4416/execute-command-on-remote-node-via-agent</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:41:36 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4416.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 Apr 2016 18:39:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Execute command on remote node via agent on Wed, 20 Apr 2016 16:08:49 GMT]]></title><description><![CDATA[<p dir="auto">Bingo ... it works ... thanks a lot ..</p>
<p dir="auto">sometimes .. when you get the answar .. the question look so silly <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/19706</link><guid isPermaLink="true">https://forum.netxms.org/post/19706</guid><dc:creator><![CDATA[tholle]]></dc:creator><pubDate>Wed, 20 Apr 2016 16:08:49 GMT</pubDate></item><item><title><![CDATA[Reply to Execute command on remote node via agent on Tue, 19 Apr 2016 08:26:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">try to use ActionShellExec instead of Action in nxagentd.conf.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/19674</link><guid isPermaLink="true">https://forum.netxms.org/post/19674</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 19 Apr 2016 08:26:53 GMT</pubDate></item><item><title><![CDATA[Reply to Execute command on remote node via agent on Tue, 19 Apr 2016 05:39:57 GMT]]></title><description><![CDATA[<p dir="auto">ups ... i use ver 2.03 on centos servers .. both on netxms server and agent server <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/19670</link><guid isPermaLink="true">https://forum.netxms.org/post/19670</guid><dc:creator><![CDATA[tholle]]></dc:creator><pubDate>Tue, 19 Apr 2016 05:39:57 GMT</pubDate></item></channel></rss>