<?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[[Solved]Action configuration - Issue with command execution on management server]]></title><description><![CDATA[<p dir="auto">I am trying to integrate NetXMS with CA Unicenter in order to generate automated tickets.</p>
<p dir="auto">For this I am using a utility from CA called "cawto". With this utility I can send an event to the CA NSM server with the alert message as generated by NetXMS. Based on the received event, CA NSM then creates ticket in CA Unicenter. I am using below command as an Action in NetXMS to send the events to NSM.</p>
<pre><code>//opt//CA//SharedComponents//ccs//bin//cawto -n waqnsm91 NETXMS - ALERT - %n - %a - %m
</code></pre>
<p dir="auto">Where waqnsm91 is my CA NSM server.</p>
<p dir="auto">Condition 1:This works perfectly and I can see an event in CA NSM when the contents of message variable %m is in plane text or without any special characters like below,<br />
%m = Node down.</p>
<p dir="auto">Condition 2: But the command execution fails if the contents of message variable %m is having some characters like " or () or / .</p>
<p dir="auto">Ex.<br />
%m = Interface "Ethernet100/1/47 (Temp Laptop Connections)" changed state to DOWN (IP Addr: 0.0.0.0/0.0.0.0, IfIndex: 526584704)</p>
<p dir="auto">In this case, since the message contains the IfName and IfAlias it comes with a slash / and the bracket () which causes the execution to fail.</p>
<p dir="auto">To verify this I am executing a parallel action as below,</p>
<pre><code>echo HOST - %n - %a - %m &gt;&gt; //home//vishalb//netxms.log
</code></pre>
<p dir="auto">Please help me to get this fixed if anyone also faced this issue.</p>
<p dir="auto">Thanks in Advance.</p>
<p dir="auto">Vishal Babrekar</p>
]]></description><link>https://forum.netxms.org/topic/2142/solved-action-configuration-issue-with-command-execution-on-management-server</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 15:40:17 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2142.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Jan 2013 10:38:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved]Action configuration - Issue with command execution on management server on Sun, 03 Feb 2013 04:09:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">Its now confirmed that CA NSM is receiving NetXMS alerts correctly and now they also started auto generated incident creation in CA Unicenter. So we can confirm that this integration of NetXMS with CA Unicenter worked well.</p>
<p dir="auto">For those who are also looking for integrating NetXMS with CA Unicenter for creation of auto generated incidents can also refer this.</p>
<p dir="auto">Thanks,<br />
Vishal Babrekar</p>
]]></description><link>https://forum.netxms.org/post/9529</link><guid isPermaLink="true">https://forum.netxms.org/post/9529</guid><dc:creator><![CDATA[vishal21]]></dc:creator><pubDate>Sun, 03 Feb 2013 04:09:07 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Action configuration - Issue with command execution on management server on Thu, 24 Jan 2013 03:54:18 GMT]]></title><description><![CDATA[<p dir="auto">Great!! Thanks Victor.</p>
<p dir="auto">Adding the '%m' seems to have fixed this issue. Because I am seeing the desired output in my log file //home//vishalb//netxms.log. I am now checking with my CA team if they are receiving it correctly or not. I'll update you soon.</p>
<p dir="auto">Thanks,<br />
Vishal Babrekar</p>
]]></description><link>https://forum.netxms.org/post/9417</link><guid isPermaLink="true">https://forum.netxms.org/post/9417</guid><dc:creator><![CDATA[vishal21]]></dc:creator><pubDate>Thu, 24 Jan 2013 03:54:18 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Action configuration - Issue with command execution on management server on Tue, 22 Jan 2013 12:24:56 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">You have to escape text properly before passing to command line, or enclose text in quotes. Try to define your command as</p>
<pre><code>/opt/CA/SharedComponents/ccs/bin/cawto -n waqnsm91 NETXMS - ALERT - %n - %a - '%m'
</code></pre>
<p dir="auto">Btw, you don't need to put / twice - only the backslash (\).</p>
<p dir="auto">Alternative approach could be to use NXSL script to escape special characters in event message with backslash.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/9404</link><guid isPermaLink="true">https://forum.netxms.org/post/9404</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 22 Jan 2013 12:24:56 GMT</pubDate></item></channel></rss>