Grid Control Agent get a wrong host name
I am using HP_UX 11.23. The OEM grid control agent is 10.2.0.4.
When I run the command "emctl config agent getLocalHost", I get the server name that is not the correct server name.
hostname1:/u01/oracle/agent10g/bin>> emctl config agent getLocalHost
Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
hostname2
hostname1:/u01/oracle/agent10g/bin>> hostname
hostname1
hostname1:/u01/oracle/agent10g/bin>>
Where does the emctl get the server name? How to correct it?
Thank you,
Xiaogang Zheng