Hi!
"system name" is just an attribute of the node, not the name of an object in NetXMS. If you want to keep node object's name consistent with "system name" property, you can implement simple configuration poll hook script, like this:
Put this script into script library under name Hook::ConfigurationPoll, and then nodes will be renamed when system name changes. Of course, you can add more complicated logic here.
Best regards,
Victor
P.S. More complicated hook script example: https://www.netxms.org/forum/general-support/how-use-configuration-poll-hook/msg8482/#msg8482
"system name" is just an attribute of the node, not the name of an object in NetXMS. If you want to keep node object's name consistent with "system name" property, you can implement simple configuration poll hook script, like this:
Code Select
if (($node->snmpSysName != null) && ($node->snmpSysName != ""))
{
RenameObject($node, $node->snmpSysName);
}
Put this script into script library under name Hook::ConfigurationPoll, and then nodes will be renamed when system name changes. Of course, you can add more complicated logic here.
Best regards,
Victor
P.S. More complicated hook script example: https://www.netxms.org/forum/general-support/how-use-configuration-poll-hook/msg8482/#msg8482