Quantcast
Channel: Uninterruptible Power Supplies (UPS)
Viewing all articles
Browse latest Browse all 1648

Need help with Eaton IPM Script

$
0
0

Hi,

I am reviewing a nice Eaton 5SC 500i UPS and have it attached to my desktop PC running IPM via USB. Attached to its power outlet are the Win7 Desktop PC and 2 small servers each running vSphere 5.1 (free edition) for my virtual labs.

What I want to achieve on AC power loss is:

  1. Shut down of the ESXi hosts and virtual machines
  2. Shut down of my physical Win 7 desktop PC.

The ESXi hosts are configured to gracefully shutdown running VM's when the Host shutdown command is initiated via SSH so I don't need to worry about individual guest VMs at the OS level.

Using plink I can connect to the ESXi hosts via SSH with the following command (currently in a batch file)

plink.exe esxi -l root -pw mypassword "/sbin/shutdown.sh && /sbin/poweroff"

where esxi as defined is a legitimized Putty saved session containing IP address information and private key etc.

Now then, if I run the batch file from the physical Windows 7 PC it works great and the VM's are gracefully shut down and the host powered off.

Where I am struggling is getting that batch file to run as a shutdown script from within Eaton Intelligent Power Manager.

Can anyone help me to get that script running please? I have very little knowledge of JS so have no idea how to achieve the same thing with Javascript.

Thanks

Tino


Viewing all articles
Browse latest Browse all 1648

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>