<?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[How to get the IP address of remote (different zone) computers?]]></title><description><![CDATA[<p dir="auto">Why doesn't NetXMS know the IP addresses of remote computers?  The computers all have the agent installed and connect to the server using a TLS tunnel.</p>
<p dir="auto">I have email alerts adding "IP address: %a" to the message body.  With these systems I see "UNSPEC".  In the console &gt; object details &gt; overview, "Primary IP address" also shows "UNSPEC".</p>
<p dir="auto">I also include "%[FQDN]" in the message, which is a 1-line script of "return GetDCIValueByName($node,"System.FQDN");".  I do get an FQDN.  How can I get an address?  Do I have to define it in the client config file?</p>
]]></description><link>https://forum.netxms.org/topic/6637/how-to-get-the-ip-address-of-remote-different-zone-computers</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:12:41 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6637.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Aug 2020 21:37:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to get the IP address of remote (different zone) computers? on Fri, 07 Aug 2020 13:50:52 GMT]]></title><description><![CDATA[<p dir="auto">Yes, in case of tunnel NetXMS does not store the IP address. The thing is that IP address from which the tunnel connection arrives is not necessary the IP of the node - it can be a NAT, etc. And if we take list of interfaces for a node - the could be several interfaces and we don't know which one is primary.</p>
<p dir="auto">You could get list of interfaces via NXSL script - the script should filter out loopback interface and if there are several interfaces - select one of them. There is currently no hook script on tunnel connection, you can run your script from configuration poll hook.</p>
<p dir="auto">Here's an example script that prints list of interfaces:</p>
<pre><code>for(i : $node-&gt;interfaces)
{
  println i-&gt;name;
  for(a : i-&gt;ipAddressList)
    println "   " . a-&gt;address . "/" . a-&gt;mask;
}
</code></pre>
<p dir="auto">Also, there's a system event SYS_TUNNEL_OPEN - this event occurs when the tunnel is established, in the context of that node. So you can create a rule in EPP and run some script from there.</p>
<p dir="auto">It's not possible to update node's IP address from script, but you can create a cusome attribute on node and keep IP address there.</p>
]]></description><link>https://forum.netxms.org/post/28377</link><guid isPermaLink="true">https://forum.netxms.org/post/28377</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 07 Aug 2020 13:50:52 GMT</pubDate></item></channel></rss>