<?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[Server Command Object Tool %OBJECT_IP_ADDR%]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I've created a Server Command under Object Tools that calls a bash script stored locally on the NetXMS server and passes the the %OBJECT_IP_ADDR% variable to the script. The script is very basic and looks something like this:</p>
<pre><code>#!/bin/bash --
/usr/bin/do_something $1
echo `date +"%Y-%m-%d %T : "` Something done on device $1 &gt;&gt; script.log
</code></pre>
<p dir="auto">I can run this script manually and the expected output is in the log file and the expected action is completed.</p>
<p dir="auto">If I run this script using the created Server Command Object Tool, the script is executed but what I see in the log is:</p>
<pre><code>date_and_time: Something done on device BJECT_IP_ADDR
</code></pre>
<p dir="auto">Is there a way to pass the %OBJECT_IP_ADDR% variable to a Server Command Object Tool?</p>
]]></description><link>https://forum.netxms.org/topic/3239/server-command-object-tool-object_ip_addr</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:23:37 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3239.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Jun 2014 01:07:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Server Command Object Tool %OBJECT_IP_ADDR% on Thu, 26 Jun 2014 16:50:03 GMT]]></title><description><![CDATA[<p dir="auto">That fixed it for me. Thanks much.</p>
]]></description><link>https://forum.netxms.org/post/14309</link><guid isPermaLink="true">https://forum.netxms.org/post/14309</guid><dc:creator><![CDATA[mcc]]></dc:creator><pubDate>Thu, 26 Jun 2014 16:50:03 GMT</pubDate></item><item><title><![CDATA[Reply to Server Command Object Tool %OBJECT_IP_ADDR% on Thu, 26 Jun 2014 16:15:32 GMT]]></title><description><![CDATA[<p dir="auto">I can confirm that. When I use "%n" in server command it's expanded to nodes name. Thank's</p>
]]></description><link>https://forum.netxms.org/post/14307</link><guid isPermaLink="true">https://forum.netxms.org/post/14307</guid><dc:creator><![CDATA[user54119]]></dc:creator><pubDate>Thu, 26 Jun 2014 16:15:32 GMT</pubDate></item><item><title><![CDATA[Reply to Server Command Object Tool %OBJECT_IP_ADDR% on Thu, 26 Jun 2014 16:00:17 GMT]]></title><description><![CDATA[<p dir="auto">Actually it's an error in documentation. For server commands macros are expanded on server side, and you should use event processing macros (<a href="https://www.netxms.org/documentation/adminguide/event-processing.html#macros-for-event-processing" rel="nofollow ugc">https://www.netxms.org/documentation/adminguide/event-processing.html#macros-for-event-processing</a>).</p>
]]></description><link>https://forum.netxms.org/post/14305</link><guid isPermaLink="true">https://forum.netxms.org/post/14305</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 26 Jun 2014 16:00:17 GMT</pubDate></item><item><title><![CDATA[Reply to Server Command Object Tool %OBJECT_IP_ADDR% on Sun, 01 Feb 2015 16:05:30 GMT]]></title><description><![CDATA[<p dir="auto">I also get "OBJECT_NAME" in a server script using %OBJECT_NAME% in the Object Tools.</p>
<p dir="auto">Update:<br />
I saw this in admin guide:</p>
<blockquote>
<p dir="auto">Action, file download, local command, and URL tool types allows macro substitution.</p>
</blockquote>
]]></description><link>https://forum.netxms.org/post/14295</link><guid isPermaLink="true">https://forum.netxms.org/post/14295</guid><dc:creator><![CDATA[user54119]]></dc:creator><pubDate>Sun, 01 Feb 2015 16:05:30 GMT</pubDate></item></channel></rss>