Pages

25.6.12

UPS SNMP Configuration in VMWare esxi5

Scenario: I have a Mega System UPS connected to the network through its  NetAgent Mini. I want to have a customer's vmware esxi5 host being shut down by the ups client utility, which works through snmp.

Steps:
Download and install the Mega System ClientMate utility per VMWare from here:
http://www.megatec.com.tw/Download.htm
Note: the zip is misleading, you must install the clientmate.tar.gz file in the root folder of the .rar archive along with the install.dat file in the VMWare ESX subfolder (the clientmate.tar.gz in that subfolder is the Linux one!).
Configure it using the provided utility.

From VMWare CLI Utility run this commands in order to configure and enable the SNMP Agent.


Configure community for the agent (don't know if mandatory)
C:\Program Files (x86)\VMware\VMware vSphere CLI>vicfg-snmp.pl --server esxhostaddress
01 -c public
Enter username: root
Enter password:
Changing community list to: public...
Complete.


Add the UPS as a target with parameters configured in the web interface.

C:\Program Files (x86)\VMware\VMware vSphere CLI>vicfg-snmp.pl --server esxhostaddress
01 -t UpsIPaddress@161/public
Enter username: root
Enter password:
Changing notification(trap) targets list to: 10.0.0.18@161/public...
Complete.



Enable snmp agent
C:\Program Files (x86)\VMware\VMware vSphere CLI>vicfg-snmp.pl --server 10.0.0.2
01 -E
Enter username: root
Enter password:
Enabling agent...
Complete.


Restart clientmate service

Now it should work.

3 comments:

  1. It works with a few little tricks, but there is a problem clientmate installs in /etc/clientmate and works fine.
    But as soon as you reboot the ESXi /etc/clientmate no longer exists

    You figured out how to avoid this ?

    ReplyDelete
  2. Install it on a datastore

    ReplyDelete
  3. I had to add the ESXi host in the NetAgent Configuration under Configuration | SNMP | Access Control to get the communication working. I also set it up under Trap Notification (not sure if that is needed.

    Thanks for the blog post - very helpful. I could not find any vendor resources on how to do this install.

    ReplyDelete