3.7.3 Notes about renaming a host
SNMP Agent considers the host name in effect at the time of SNMP Agent installation to be the sysName value.
SNMP Agent also considers the value that is set based on the SetRequest from the manager to be the sysName value, and saves the sysName value in /etc/srconf/agt/snmpd.cnf.
Even if the host name is changed after SNMP Agent is installed, SNMP Agent does not change the sysName value to the new host name. This is because the sysName value being used might be the value that was set based on the SetRequest from the manager. To set the sysName value to the new host name, use one of the following procedures:
-
Change the sysName value in /etc/srconf/agt/snmpd.cnf to the new host name, then restart SNMP Agent using the /opt/CM2/ESA/bin/snmpstart command. If the OS being used is Solaris or AIX, and you do not want to restart the native agent, execute the snmpstart command with the -n option.
-
Delete the sysName host-name line in /etc/srconf/agt/snmpd.cnf, and then restart SNMP Agent.
-
Use a SetRequest to set the sysName value to the new host name.
For details about sysName, see 4.1.2(1) System group and Configuration file (snmpd.cnf).
For notes about setup, see 2.17 Notes about setup.