Winpower UPS software VMware ESXi

by on under sysadmin
1 minute read

Using a Winpower UPS with VMware ESXi

Moved here from original gist

This is mostly in reference to their Linux documentation: Installation and configuration for Winpower in the VMware

Winpower when installed using the Linux binaries includes a few extra perl scripts which supports shutting down VMware environments.

It does however also require you have the following perl lib installed on the system VMware::VIRuntime. Which can be acquired by installing VMware vCLI binaries.

The following documentation aids installing vCLI: Installing vCLI

You don’t have to use vMA (vSphere Management Assistant) unless you don’t want to manually install vCLI. However using vMA be warned that it didn’t work with SMTP out the box and “vMA is deprecated and vMA 6.5 is the last release”.

You probably need to accept the ESXi servers certificate and you should also test it’s contactable.

/usr/lib/vmware-vcli/vin/esxcli/esxcli --server <host ip address> vm process list

This will return a error about not trusted cert with a finger print. Copy the finger print to place this into the next command.

/usr/lib/vmware-vcli/apps/general/credstore_admin.pl add -s <host ip address> -t <finger print>

It should say successfully added new entry. Now try running the first command again and you should have a successful vCLI response showing a list of VMs.

/usr/lib/vmware-vcli/vin/esxcli/esxcli --server <host ip address> vm process list

Now Winpower should be able to contact the ESXi server provided you added it’s login details into the hostlist via sudo ./config.pl as per the documentation.

comments powered by Disqus