<?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[Additional interface details from node for syslog parser events]]></title><description><![CDATA[<p dir="auto">Hello NetXMS Community,</p>
<p dir="auto">we are using syslog parser for Cisco port security violation.</p>
<p dir="auto">In the cisco syslog message is only mac adress and interface information for syslog parser (int info is equal to interface description in netxms).</p>
<p dir="auto">Example:<br />
10:45:06: %PORT_SECURITY-2-PSECURE_VIOLATION: Security violation occurred, caused by MAC address "aaaa.bbbb.cccc" on port GigabitEthernet0/21.</p>
<p dir="auto">Is there any way to get the interface description (interface alias in netxms) in addition to the mac address and the port?</p>
<p dir="auto">I have no idea to wich place i should use scripting to match "interface description" with "interface alias" for the event.</p>
<p dir="auto">Do you have any ideas?</p>
<p dir="auto">best regards</p>
]]></description><link>https://forum.netxms.org/topic/6300/additional-interface-details-from-node-for-syslog-parser-events</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 13:21:13 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6300.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Dec 2019 10:47:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Additional interface details from node for syslog parser events on Wed, 11 Dec 2019 10:33:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">You can send request to <a href="mailto:info@radensolutions.com" rel="nofollow ugc">info@radensolutions.com</a></p>
]]></description><link>https://forum.netxms.org/post/27125</link><guid isPermaLink="true">https://forum.netxms.org/post/27125</guid><dc:creator><![CDATA[zev]]></dc:creator><pubDate>Wed, 11 Dec 2019 10:33:16 GMT</pubDate></item><item><title><![CDATA[Reply to Additional interface details from node for syslog parser events on Mon, 09 Dec 2019 09:47:42 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for the quick reply. I understand that it´s possible to find a solution for our use case via "Script library" (get the infos via foreach iteration and add information direct to the event).</p>
<p dir="auto">Unfortunately, we have no experience with application script programming. I have tried the following solution via "Script library" with no success (in the event i would use %&lt;additionalInfo&gt; as parameter):</p>
<p dir="auto">// only for Cisco_IF_Disabled events<br />
if (($event-&gt;name != "Cisco_IF_Disabled"))<br />
    return true;<br />
    <br />
// get interface index from description<br />
ifindex = GetInterfaceObject($node, $3);<br />
if (ifindex == null)<br />
    return true;</p>
<p dir="auto">// get alias (description for cisco port)<br />
alias = ifindex-&gt;alias;<br />
if (alias == null)<br />
    return true;</p>
<p dir="auto">// get peer node (node connected to this interface) object<br />
peer = ifindex-&gt;peerNode;<br />
if (peer == null)<br />
    return true;</p>
<p dir="auto">// set event's named parameter<br />
SetEventParameter($event, "additionalInfo", "Port Description: " alias);<br />
return true;</p>
<p dir="auto">I think we should involve commercial support for a working solution.</p>
]]></description><link>https://forum.netxms.org/post/27108</link><guid isPermaLink="true">https://forum.netxms.org/post/27108</guid><dc:creator><![CDATA[Largon]]></dc:creator><pubDate>Mon, 09 Dec 2019 09:47:42 GMT</pubDate></item><item><title><![CDATA[Reply to Additional interface details from node for syslog parser events on Wed, 04 Dec 2019 22:39:45 GMT]]></title><description><![CDATA[<p dir="auto">Recently trap processing script was created. It has node $node, $trap as a string and $varbinds as SNMP_VarBind, event that is about to be generated is accessible via $event global variable.<br />
You can iterate over $node-&gt;children, find macAddr and get description. And using method addParameter add one more parameter to event.</p>
<p dir="auto">Documentation: <a href="https://www.netxms.org/documentation/nxsl-3.2/" rel="nofollow ugc">https://www.netxms.org/documentation/nxsl-3.2/</a><br />
Some NXSL example available on wiki</p>
]]></description><link>https://forum.netxms.org/post/27048</link><guid isPermaLink="true">https://forum.netxms.org/post/27048</guid><dc:creator><![CDATA[zev]]></dc:creator><pubDate>Wed, 04 Dec 2019 22:39:45 GMT</pubDate></item></channel></rss>