Follow the steps below:
1 )Execute <AppManager_Home>\bin\troubleshooting\updateHostName.bat file with the old and new hostname as arguments.
For example,
updateHostName.bat [mysql port] [previous hostname] [new hostname] [mysql password]
Where:
[mysql port] Mysql port used by applications manager.It is the value of the am.mysql.port (or am.db.port) entry mentioned in the AppManager9\conf\AMServer.properties file
[previous hostname] The previous or old host name which needs to be changed
[new hostname] The new hostname
[Password] Password for connecting to MySQL.By default appmanager is the password.
Where
oldhostname is the name what is displayed in Applications Manager. This
you can find by going to the Monitors details page of any services in
the host.
The newhostname is the latest name. Also use updateIPaddress for changing ipaddress of server.
2) After executing this, kindly restart the Applications Manager and check whether the hostnames are updated.
3) Note: This will change the hostname of the monitors. The displayname of the
monitors will not be changed. You can change this by going to Edit
Monitor link for the individual monitors.