<?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[No values for external parameters since netxms agent 3.9.178]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">since NetXMS Agent Version 3.9.178 (last working version) we do not get values for the following external paramenter anymore</p>
<p dir="auto">ExternalParameter = DefenderEngineLastUpdate:powershell -Command "&amp; {Get-MpComputerStatus | Select -ExpandProperty AntivirusSignatureLastUpdated}"</p>
<p dir="auto">If we run the powershell command directly on the node, it works without any problems.<br />
Other powershell paramenter are however correctly transmitted and displayed - for example:</p>
<p dir="auto">ExternalParameter = Defender:powershell -Command "&amp; {Get-MpComputerStatus | Select -ExpandProperty RealTimeProtectionEnabled}"</p>
<p dir="auto">We have no idea anymore and suspect that there is a bug or changed syntax in netxms. Does anyone have the same problem?</p>
<p dir="auto">best regards,<br />
Alwin</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000005736-external_parameter_no_values.PNG" alt="external_parameter_no_values.PNG" class="img-markdown  img-fluid" width="780" height="206" /></p>
]]></description><link>https://forum.netxms.org/topic/7476/no-values-for-external-parameters-since-netxms-agent-3.9.178</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:35:00 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7476.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Jul 2022 11:56:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to No values for external parameters since netxms agent 3.9.178 on Fri, 05 Aug 2022 11:48:01 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">this is very strange. I just compared process execution and external parameter handling code in 3.9 and 4.1 and the only difference is that in 4.x agent replaces null characters with spaces in received command output. Theoretically if script returns null character in first line that could cause such difference in behavior.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/31719</link><guid isPermaLink="true">https://forum.netxms.org/post/31719</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 05 Aug 2022 11:48:01 GMT</pubDate></item><item><title><![CDATA[Reply to No values for external parameters since netxms agent 3.9.178 on Wed, 03 Aug 2022 06:19:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi Filipp,</p>
<p dir="auto">we have tried another command, which also generate an empty line in the first output line.</p>
<p dir="auto">Thanks for your workaround - it works great!</p>
<p dir="auto">It would be nice if the behaviour was the same as in the previous versions.</p>
<p dir="auto">best regards,<br />
Alwin</p>
]]></description><link>https://forum.netxms.org/post/31711</link><guid isPermaLink="true">https://forum.netxms.org/post/31711</guid><dc:creator><![CDATA[Alwin]]></dc:creator><pubDate>Wed, 03 Aug 2022 06:19:25 GMT</pubDate></item><item><title><![CDATA[Reply to No values for external parameters since netxms agent 3.9.178 on Thu, 28 Jul 2022 17:29:33 GMT]]></title><description><![CDATA[<p dir="auto">I've tried to run<br />
powershell -Command "&amp; {Get-MpComputerStatus | Select -ExpandProperty AntivirusSignatureLastUpdated}"<br />
and the output starts from empty line:</p>
<pre><code>Thursday, July 28, 2022 1:01:30 PM
</code></pre>
<p dir="auto">Not sure if in previous versions agent was skipping empty lines, but currently it just takes the contents of the first line, which is emtpy.<br />
Please try it e.g. this way:<br />
ExternalParameter = DefenderEngineLastUpdate:powershell -Command "&amp; Get-MpComputerStatus | Select -ExpandProperty AntivirusSignatureLastUpdated | Write-Host"</p>
]]></description><link>https://forum.netxms.org/post/31695</link><guid isPermaLink="true">https://forum.netxms.org/post/31695</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Thu, 28 Jul 2022 17:29:33 GMT</pubDate></item><item><title><![CDATA[Reply to No values for external parameters since netxms agent 3.9.178 on Mon, 25 Jul 2022 14:51:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">the current Server an Agent version is: 4.1.404</p>
<p dir="auto">The command needs 34ms to execute. In the agent configuration we have also added the line "ExternalParameterProviderTimeout = 60"</p>
<p dir="auto">We try it with the following command (is this the correct syntax?)</p>
<p dir="auto">ExternalParameterShellExec = DefenderEngineLastUpdate:powershell -Command "&amp; {Get-MpComputerStatus | Select -ExpandProperty AntivirusSignatureLastUpdated}"</p>
<p dir="auto">We added also the following parameters to the agent configuration file:</p>
<p dir="auto">SubAgent = wineventsync.nsm<br />
DebugTags=winsyncevent:6</p>
<p dir="auto">Now we have logs in the windows event log but no entrys for the executed external parameters.</p>
<p dir="auto">best regards,<br />
Alwin</p>
]]></description><link>https://forum.netxms.org/post/31688</link><guid isPermaLink="true">https://forum.netxms.org/post/31688</guid><dc:creator><![CDATA[Alwin]]></dc:creator><pubDate>Mon, 25 Jul 2022 14:51:25 GMT</pubDate></item><item><title><![CDATA[Reply to No values for external parameters since netxms agent 3.9.178 on Mon, 25 Jul 2022 12:34:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">try to use ExternalParameterShellExec instead. Also, how long it take to execute this command? There could have been changes in handling execution timeouts. Agent log on debug level 6 could be helpful as well.</p>
<p dir="auto">And what version you are using currently?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/31684</link><guid isPermaLink="true">https://forum.netxms.org/post/31684</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 25 Jul 2022 12:34:58 GMT</pubDate></item></channel></rss>