<?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[ExternalParameterShellExec configuration[Solved]]]></title><description><![CDATA[<p dir="auto">Hi to all!<br />
I'm trying to set up the ExternalParameterShellExec in my NetXMS, but I'm having some issues in accomplish my goal. Before you ask, I already read <a href="https://www.netxms.org/forum/configuration/agent-config-%28action-externalparam%29/msg3136/#msg3136" rel="nofollow ugc">this</a> post and I followed the instructions in it, but I need help anyway.<br />
First of all, I'm working on a test system, set up in this way:</p>
<ol>
<li>A virtual machine, where NetXMS server and agent are installed.</li>
<li>A phisical local machine, where NetXMS consolle and agent are installed.<br />
Just to test the ExternalParameterShellExec, I want to create a parameter in the phisical machine (2) which executes a Perl script. This script is very simple and executes a ls on the virtual machine using ssh. This is my perl script's code:</li>
</ol>
<pre><code>#!/usr/bin/perl

use Net::SSH::Perl;

my $host = "IP";
my $usr = "USER";
my $pwd = "PASSWORD";
my $ssh = Net::SSH::Perl-&gt;new($host);
my $command ="ls -l";
$ssh-&gt;login($usr,$pwd);
print+($ssh-&gt;cmd($command))[0], "\n";
__END__
</code></pre>
<p dir="auto">This script works, I've tested it running it directly from unix shell in the local machine (2). So, as written in <a href="https://www.netxms.org/forum/configuration/agent-config-%28action-externalparam%29/msg3136/#msg3136" rel="nofollow ugc">this</a> post, i set up the local machine's agent to execute this script. Agent's config file is:</p>
<pre><code>MasterServers = XXX, YYY
EnableSubagentAutoload = yes
LogFile = /var/log/nxagentd.log
FileStore = /tmp
ListenAddress = 0.0.0.0
EnableActions = yes
SubAgent=portcheck.nsm

ExternalParameterShellExec ProvaExternal:/PATH/ProvaSSH.pl
</code></pre>
<p dir="auto">I execute the node's poll and then, in DCI, I expect to find ProvaExternal as parameter provided by the agent. But I can't find ProvaExternal anywhere in the DCI. What's the issue here? What am I doing wrong?</p>
<p dir="auto">Thanks in advance for the help!</p>
]]></description><link>https://forum.netxms.org/topic/2448/externalparametershellexec-configuration-solved</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 13:33:33 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2448.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Jun 2013 10:18:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ExternalParameterShellExec configuration[Solved] on Thu, 20 Jun 2013 09:23:32 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the tip, I've fixed that topic.</p>
]]></description><link>https://forum.netxms.org/post/10610</link><guid isPermaLink="true">https://forum.netxms.org/post/10610</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Thu, 20 Jun 2013 09:23:32 GMT</pubDate></item><item><title><![CDATA[Reply to ExternalParameterShellExec configuration[Solved] on Thu, 20 Jun 2013 07:20:04 GMT]]></title><description><![CDATA[<p dir="auto">It worked! Thank you Alex! It was so easy, but <a href="https://www.netxms.org/forum/configuration/agent-config-%28action-externalparam%29/msg3136/#msg3136" rel="nofollow ugc">here</a> is explained without "=". I suggest you to modify that sticky topic, if it's possible, because it's really useful!<br />
Thanks again!</p>
]]></description><link>https://forum.netxms.org/post/10605</link><guid isPermaLink="true">https://forum.netxms.org/post/10605</guid><dc:creator><![CDATA[BlackMamba]]></dc:creator><pubDate>Thu, 20 Jun 2013 07:20:04 GMT</pubDate></item><item><title><![CDATA[Reply to ExternalParameterShellExec configuration[Solved] on Wed, 19 Jun 2013 13:04:31 GMT]]></title><description><![CDATA[<pre><code>ExternalParameterShellExec ProvaExternal:/PATH/ProvaSSH.pl
</code></pre>
<p dir="auto">Change it to</p>
<pre><code>ExternalParameterShellExec=ProvaExternal:/PATH/ProvaSSH.pl
</code></pre>
]]></description><link>https://forum.netxms.org/post/10595</link><guid isPermaLink="true">https://forum.netxms.org/post/10595</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Wed, 19 Jun 2013 13:04:31 GMT</pubDate></item></channel></rss>