<?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[Get ifalias]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I receive following example SNMP trap when an interface go in port security shutdown.<br />
06.11.2017 16:15:16	10.10.0.9	<a href="http://switch-lesgebouw-gelijksvloer.localdomein.be" rel="nofollow ugc">switch-lesgebouw-gelijksvloer.localdomein.be</a>	.1.3.6.1.4.1.9.6.1.101.0.213	.1.3.6.1.4.1.9.6.1.101.2.3.1.0 == '%LINK-W-PORT_SUSPENDED: Port gi6 suspended by port-security'; .1.3.6.1.4.1.9.6.1.101.2.3.2.0 == '1'<br />
for this snmp trap i created a SNMP Trap Mapping with a event SNMP_PORT_LOCK --&gt; create event processing policy --&gt;  Alarm + send notification to Slack webhook.</p>
<p dir="auto">So far everyting works fine.<br />
Wat i try to do is add the interface alias (ifalias) in the message alarm and slack.<br />
so that when the alarm is send , i know in human tekst the location / room number like i see when looking at the interface table of this node.</p>
<p dir="auto">I think with some kind of tranformation script, using the string --&gt; filter out the interface id --&gt; example "gi6" , use this value to look up de ifalias and save it as extra variable .. .</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000003781-port-lock-snmptrap.JPG" alt="port-lock-snmptrap.JPG" class="img-markdown  img-fluid" width="434" height="427" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000003783-port-lock-event.JPG" alt="port-lock-event.JPG" class="img-markdown  img-fluid" width="469" height="431" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000003785-port-lock-processing-poligy-event.JPG" alt="port-lock-processing-poligy-event.JPG" class="img-markdown  img-fluid" width="1098" height="200" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000003787-port-lock-alarm.JPG" alt="port-lock-alarm.JPG" class="img-markdown  img-fluid" width="811" height="39" /></p>
]]></description><link>https://forum.netxms.org/topic/5315/get-ifalias</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 06:42:46 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5315.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Nov 2017 16:41:23 GMT</pubDate><ttl>60</ttl></channel></rss>