这文章真好,真应时。我刚好打算在我的ESX4上安装HP SIM agent以便我的SIM服务器可以管理监控到ESX。太感谢了。。。大喜,喜出望外地转帖在此。原文见:http://xtravirt.com/installing-and-configuring-hp-snmp-agents-esx-40
To view a Video of the installtion process click Here or scroll to the bottom of the post.
Check for the latest version, VMware will tell you the latest version here:http://www.vmware.com/support/esx25/doc/sys_mgmt_links.html (v8.3.1 at the time of writing)
Download the latest HP Management Agents for VMware ESX Server 4.x
Open the HP Software Downloads page:http://h20000.www2.hp.com/bizsupport/TechSupport/ProductRoot.jsp?lang=en&cc=us&taskId=135
Follow the steps to select the server hardware.
Select the Operating System as ESX/ESXi 4
Find HP Management Agents for VMware ESX Server 4.x and click the Download button.
Upload the HP Management Agent to your ESX Host
Login to vCenter using the Virtual Infrastructure Client
Highlight the ESX Host you want to install the HP Management Agent on and view theSummary tab.
Right Click on the Datastore that contains the ESX Service Console VMDK (Usually Local Storage) and click Browse Datastore. (*Note the Datastore name*)
Click on the Upload files to this Datastore icon and select Upload File…
Browse to where the downloaded HP Management Agent .tgz file is stored and select that file and click Open.
The .tgz will now upload to the Datastore
Installing the HP Management Agent on your ESX Host
Please note, that the commands will need to be changed if you have a different version of the Agent
Open Putty and SSH to the ESX Host that you just uploaded the .tgz to.
Login and su –
Next we want to move the .tgz to the /Home dir using the following command: mv /vmfs/volumes/<Datastore Name you noted on section 5>/hpmgmt-8.3.1-vmware4x.tgz /home
cd /home
Run the following command: tar xvzf hpmgmt-8.3.1-vmware4x.tgz
Navigate into the directory: cd hpmgmt/831 (This dir name may change with version numbers)
Make a copy of hpmgmt.conf.example: cp hpmgmt.conf.example hpmgmt.conf
Edit the new conf file: nano hpmgmt.conf
Edit the conf file, the only parts you need to change are highlighted in red below.
# export CMALOCALHOSTRWCOMMSTR – SNMP read/write community string for local
# host access.
# ex. export CMALOCALHOSTRWCOMMSTR=private
# export CMALOCALHOSTROCOMMSTR – SNMP read-only community string for local host
# access.
# ex. export CMALOCALHOSTROCOMMSTR=public
#export CMALOCALHOSTRWCOMMSTR=
#export CMALOCALHOSTROCOMMSTR=
# export CMAMGMTSTATIONRWIPORDNS – IP address or DNS host name of a system with
# read/write access to server as a management station.
# ex. export CMAMGMTSTATIONRWIPORDNS=192.168.1.1
# export CMAMGMTSTATIONRWCOMMSTR – SNMP read/write community string for a system
# with read/write access that serves as a management station.
# ex. export CMAMGMTSTATIONRWCOMMSTR=private
export CMAMGMTSTATIONRWIPORDNS=10.0.0.1
export CMAMGMTSTATIONRWCOMMSTR=MyReadWriteString