This post is more than 5 years old
12 Posts
0
997
December 3rd, 2012 00:00
Wrong device name in APM
Hello!
I want my devices in APM to be named by their SNMP sysNames, e.g router. But APM sets their Name, SystemName from DNS, like router-gw.site.net. The DisplayName is set correctly to router.
I know that DNS is improperly configured for some network devices and not configured for others. How can I tell APM not to use DNS at all and set Name=SystemName=DisplayName=SNMP sysName (router)?
My settings:
$ cat local/conf/discovery/name-resolve.conf:
..
AutoNameOrder 0 TM_USESYSNAME
AutoNameOrder 1 TM_USELOOPBACK
AutoNameOrder 2 TM_USENONPRIVATEIP
AutoNameOrder 3 TM_USEPRIVATEIP
AutoNameOrder 4 TM_USEAGENTADDRESS
$ cat local/conf/discovery/discovery.conf | grep MIBII
DisplayNameFormat = "MIBIISYSNAME"
When I commented out all AutoNameOrder strings except the one with TM_USESYSNAME, APM sets Name=10.0.0.1, DisplayName=router.
PaulORourke
170 Posts
0
December 3rd, 2012 03:00
Hi Azalesov,
For the exact steps on how to set the DisplayName attribute to use the SNMP SysName, please see KB article: emc152598.
However, this will only set the DisplayName attribute. As you have seen, the Name and SystemName attributes are set using DNS. If the IP address does not resolve to the SysName value found or the value in the SNMP SysName field does not resolve to the IP address, the IP address is used as the SystemName and the Name attribute.
The only workaround to get the Name and SystemName attribues to resolve to the SNMP SysName value, is to follow the steps in the KB article above (emc152598), and then update the hosts file on the Smarts IP server, with an entry which resolves the IP address of the device to the SNMP SysName. For example:
10.0.0.1 router
Then re-discover the device in question.
Kind Regards,
Paul O'Rourke