<?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[UseInterfaceAliases]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">is it possible send by email (when action is configured) the variable "alias"?</p>
<p dir="auto">I have set the variable "UseInterfaceAliases" to value = 3 but the action email only sends  the name interface.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.netxms.org/topic/4485/useinterfacealiases</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:04:27 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4485.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 May 2016 11:55:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UseInterfaceAliases on Fri, 27 May 2016 15:32:27 GMT]]></title><description><![CDATA[<p dir="auto">thank you very much for your help!</p>
]]></description><link>https://forum.netxms.org/post/19969</link><guid isPermaLink="true">https://forum.netxms.org/post/19969</guid><dc:creator><![CDATA[mikiplus]]></dc:creator><pubDate>Fri, 27 May 2016 15:32:27 GMT</pubDate></item><item><title><![CDATA[Reply to UseInterfaceAliases on Fri, 27 May 2016 15:19:23 GMT]]></title><description><![CDATA[<p dir="auto">For processing SYS_IF_DOWN/SYS_IF_UP events script could be easier, because you have interface index as fifth parameter:</p>
<pre><code>iface = GetInterfaceObject($node, $event-&gt;parameters[5]);
return (iface != null) ? iface-&gt;alias : "no info";
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/19968</link><guid isPermaLink="true">https://forum.netxms.org/post/19968</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 27 May 2016 15:19:23 GMT</pubDate></item><item><title><![CDATA[Reply to UseInterfaceAliases on Fri, 27 May 2016 15:12:13 GMT]]></title><description><![CDATA[<p dir="auto">That looks good.</p>
<p dir="auto">As bonus info, you don't have to declare the main() function.<br />
See this: <a href="https://wiki.netxms.org/wiki/UM:NetXMS_Scripting_Language_(NXSL)#Script_entry_point" rel="nofollow ugc">https://wiki.netxms.org/wiki/UM:NetXMS_Scripting_Language_(NXSL)#Script_entry_point</a></p>
]]></description><link>https://forum.netxms.org/post/19966</link><guid isPermaLink="true">https://forum.netxms.org/post/19966</guid><dc:creator><![CDATA[tomaskir]]></dc:creator><pubDate>Fri, 27 May 2016 15:12:13 GMT</pubDate></item><item><title><![CDATA[Reply to UseInterfaceAliases on Fri, 27 May 2016 14:12:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have tested the following script but I don't know if it's the best way to obtain the alias attribute:</p>
<pre><code>sub main()
{
	aliasNAME = "no info";

	if ($event-&gt;parameters[1] != null)
	{
		id = $event-&gt;parameters[1];

		interfaces = GetNodeInterfaces($node);
		foreach(i : interfaces)
		{
			if (i-&gt;id == id)
			{
				aliasNAME = i-&gt;alias;
			}
		}
	}

	return aliasNAME;
}
</code></pre>
]]></description><link>https://forum.netxms.org/post/19963</link><guid isPermaLink="true">https://forum.netxms.org/post/19963</guid><dc:creator><![CDATA[mikiplus]]></dc:creator><pubDate>Fri, 27 May 2016 14:12:16 GMT</pubDate></item><item><title><![CDATA[Reply to UseInterfaceAliases on Fri, 27 May 2016 06:43:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">you can do that using scripts - interface object has attribute "alias". To get interface object you can use function <a href="https://wiki.netxms.org/wiki/NXSL:GetInterfaceObject" rel="nofollow ugc">GetInterfaceObject</a> if you know interface index or walk through all node interfaces using <a href="https://wiki.netxms.org/wiki/NXSL:GetNodeInterfaces" rel="nofollow ugc">GetNodeInterfaces</a> function and iterate through it's results.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/19953</link><guid isPermaLink="true">https://forum.netxms.org/post/19953</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 27 May 2016 06:43:27 GMT</pubDate></item></channel></rss>