<?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[ActionShellExec it doesnt works with agent configuration Policy]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm using ActionShellExec option in the configuration file to execute a command on a remote host.<br />
I have the following is my configuration file:</p>
<p dir="auto">##############################################################config file<br />
MasterServers = CPRG-MRED<br />
ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d<br />
LogFile = {syslog}<br />
FileStore = C:\NetXMS\var<br />
SubAgent = ecs.nsm<br />
SubAgent = filemgr.nsm<br />
SubAgent = ping.nsm<br />
SubAgent = logwatch.nsm<br />
SubAgent = portcheck.nsm<br />
SubAgent = winperf.nsm<br />
SubAgent = wmi.nsm<br />
<strong>ActionShellExec=DisplayServices:wmic service get DisplayName,name,startname</strong><br />
##############################################################config file</p>
<p dir="auto">It works fine , but the problem is when I configure that option in a policy :</p>
<p dir="auto">&lt;config&gt;<br />
    &lt;agent&gt;<br />
        &lt;!-- there can be added comment --&gt;<br />
        &lt;MasterServers&gt;X.X.X.X&lt;/MasterServers&gt;<br />
        &lt;ConfigIncludeDir&gt;C:\NetXMS\etc\nxagentd.conf.d&lt;/ConfigIncludeDir&gt;<br />
        &lt;FileStore&gt;C:\NetXMS\var&lt;/FileStore&gt;<br />
        &lt;LogFile&gt;{syslog}&lt;/LogFile&gt;<br />
        <br />
        ###################################### INI SUBAGENTES<br />
        &lt;SubAgent&gt;ecs.nsm&lt;/SubAgent&gt;<br />
        &lt;SubAgent&gt;filemgr.nsm&lt;/SubAgent&gt;<br />
        &lt;SubAgent&gt;ping.nsm&lt;/SubAgent&gt;<br />
        &lt;SubAgent&gt;logwatch.nsm&lt;/SubAgent&gt;<br />
        &lt;SubAgent&gt;portcheck.nsm&lt;/SubAgent&gt;<br />
        &lt;SubAgent&gt;winperf.nsm&lt;/SubAgent&gt;<br />
        &lt;SubAgent&gt;wmi.nsm&lt;/SubAgent&gt;<br />
        &lt;SubAgent&gt;ssh.nsm&lt;/SubAgent&gt;<br />
        &lt;SubAgent&gt;netsvc.nsm&lt;/SubAgent&gt;<br />
        &lt;SubAgent&gt;dbquery.nsm&lt;/SubAgent&gt;<br />
        ###################################### FIN SUBAGENTES</p>
<p dir="auto">        <strong>&lt;ActionShellExec&gt;DisplayServices:wmic service get DisplayName,name,startname&lt;/ActionShellExec&gt;</strong><br />
                <br />
    &lt;/agent&gt;<br />
    <br />
    &lt;filemgr&gt;<br />
        &lt;RootFolder&gt;C:\&lt;/RootFolder&gt; # read/write access<br />
        &lt;RootFolder&gt;D:\&lt;/RootFolder&gt; # read/write access<br />
    &lt;/filemgr&gt;</p>
<p dir="auto">    &lt;WinPerf&gt;<br />
        &lt;EnableDefaultCounters&gt;yes&lt;/EnableDefaultCounters&gt;<br />
    &lt;/WinPerf&gt;<br />
&lt;/config&gt;</p>
<p dir="auto">It doesnt works anymore and I get an error: Cannot execute action on node CPRG-MCFE: Communication failure</p>
]]></description><link>https://forum.netxms.org/topic/5820/actionshellexec-it-doesnt-works-with-agent-configuration-policy</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:23:23 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5820.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 31 Jan 2019 22:16:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ActionShellExec it doesnt works with agent configuration Policy on Sat, 02 Feb 2019 12:14:02 GMT]]></title><description><![CDATA[<p dir="auto">Currently no. We have a feature request for that.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/25298</link><guid isPermaLink="true">https://forum.netxms.org/post/25298</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Sat, 02 Feb 2019 12:14:02 GMT</pubDate></item><item><title><![CDATA[Reply to ActionShellExec it doesnt works with agent configuration Policy on Fri, 01 Feb 2019 14:54:23 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Victor, it works perfectly.<br />
¿Is there a way to automaticaly restart agent after a policy change?</p>
]]></description><link>https://forum.netxms.org/post/25293</link><guid isPermaLink="true">https://forum.netxms.org/post/25293</guid><dc:creator><![CDATA[lmontano]]></dc:creator><pubDate>Fri, 01 Feb 2019 14:54:23 GMT</pubDate></item><item><title><![CDATA[Reply to ActionShellExec it doesnt works with agent configuration Policy on Fri, 01 Feb 2019 06:12:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">replace &lt;agent&gt; tag with &lt;core&gt;. Also, it is not mandatory to use XMS format in policy - you can use same key=value format as in nxagentd.conf.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/25290</link><guid isPermaLink="true">https://forum.netxms.org/post/25290</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 01 Feb 2019 06:12:16 GMT</pubDate></item></channel></rss>