NetXMS Support Forum

English Support => General Support => Topic started by: m37r0 on September 09, 2013, 03:42:05 PM

Title: automatic node name change
Post by: m37r0 on September 09, 2013, 03:42:05 PM
Hi

Quote[09.09.2013 14:21:28] **** Poll request sent to server ****
[09.09.2013 14:21:28] Poll request accepted
[09.09.2013 14:21:28] Starting configuration poll for node MikroTik
[09.09.2013 14:21:28] Checking node's capabilities...
[09.09.2013 14:21:28]    Checking NetXMS agent...
[09.09.2013 14:21:28]    Checking SNMP...
[09.09.2013 14:21:28]    SNMP agent is active (version 2c)
[09.09.2013 14:21:28]    System description changed to RouterOS RB433
[09.09.2013 14:21:28]    System name changed to KardasWysyl
[09.09.2013 14:21:36] Capability check finished
[09.09.2013 14:21:36] Checking interface configuration...
[09.09.2013 14:21:37] Interface configuration check finished
[09.09.2013 14:21:37] Checking node name
[09.09.2013 14:21:37] Node name is OK
[09.09.2013 14:21:37] Finished configuration poll for node MikroTik
[09.09.2013 14:21:37] Node configuration was changed after poll
[09.09.2013 14:21:37] **** Poll completed successfully ****

my node name was MikroTik, so i change it on router to right one "KardasWysyl"
next i right click>>Poll>>configuration. After this node "MikroTik" is still "MikroTik"

NETXMS can not change node names automaticly ? or where to do that ?

p.s. i hope You know what i want to write (sorry for english)
Title: Re: automatic node name change
Post by: Victor Kirhenshtein on September 10, 2013, 09:30:42 AM
Hi!

"system name" is a node property, not a node object name in console. You have couple of options here:

1. if you have correct DNS records, you can turn on DNS node sync by setting server configuration variable SyncNodeNamesWithDNS to 1.

2. If you want to keep node name consistent with system name read from node, you can use the following hook script for configuration polls:


if (($node->snmpSysName != null) && ($node->snmpSysName != ""))
   RenameObject($node, $node->snmpSysName);


Best regards,
Victor
Title: Re: automatic node name change
Post by: m37r0 on September 10, 2013, 12:01:18 PM
Thanks Man!, U R GREAT!