Network map - device names
-
Hello,
Im struggling a bit to get started with netxms, and one of the questions i have is if i can somehow control how device names are generated in network map?
More specifically i want to use SNMP sysLocation as the name, or at least part of the name. Is this possible?
Ideally i would have SNMP sysname - SNMP sysLocation as name.Im also wondering if there are more resources for learning to use the system, other than the documentation and the video series on youtube?
Thanks in advance!
-
Hi,
names on maps are the same as object names. You cannot have separate "map" name. However, you can rename your nodes automatically to include location information using configuration poll hook. For example, you can have hook script as this:
if (($node->snmpSysLocation != "") and not ($node->name like "*" . $node->snmpSysLocation)) $node->rename($node->name . " " . $node->snmpSysLocation);This script checks that node name is not already ended with location string and it is not empty, and then appends location string to node name. You may need to introduce more sophisticated logic if sysLocation can change over time and you'll need to replace old location with new one and not simply append new location.
Best regards,
Victor -
Hello,
Thanks for the thorough answer!
This looks interesting, but as you say it will need further logic in case things change.
I can use this for now, in case i need to expand it i would have to either rename it on each scan, or have it check every other day maybe.. I will see.Thanks again!
-
-
That sounds useful, I've registered it as feature request (https://track.radensolutions.com/issue/NX-1911).
Best regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login