BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
General
Showing results for 
Search instead for 
Do you mean 

HP Power Protector - Shutdown Multiple Hosts

Occasional Visitor

HP Power Protector - Shutdown Multiple Hosts

Hi all,

 

I've got the VMA 5.1 going with the HPPP software installed.

But what command do I need to use to shutdown multiple hosts?

 

I notice in the command:

 

perl /usr/local/HP/PowerProtector/bin/virt_tools/shtdownESXi.pl --server ip_address --username ESXi_user_name --password password_of_ESXi_Host

 

Can we change the server section to the VMA?

 

Please advise.

2 REPLIES

Re: HP Power Protector - Shutdown Multiple Hosts

Occasional Contributor

Re: HP Power Protector - Shutdown Multiple Hosts

[ Edited ]

Hallo,

 

 

You should create, copy this script to VMA and first run this:

 

Command: perl /usr/local/HP/PowerProtector/bin/virt_tools/shutdownESXimultiply.pl

 

#!/usr/bin/perl -w
###############################################################################
# 
# This scripts allows users to perform a Shutdown on an VMware ESXi Server Multiply Hosts
# with the vMA for HPPP
# example:
# perl /usr/local/HP/PowerProtector/bin/virt_tools/shutdownESXimultiply.pl
###############################################################################


# Host HPVM1/192.168.1.1 with VM's shutdown 
system("perl /usr/local/HP/PowerProtector/bin/virt_tools/shutdownESXi.pl --server 192.168.1.1 --username root --password ***");
# Host HPVM1/192.168.1.2 with VM's shutdown 
system("perl /usr/local/HP/PowerProtector/bin/virt_tools/shutdownESXi.pl --server 192.168.1.2 --username root --password ***");
# Host HPVM1/192.168.1.3 with VM's shutdown 
system("perl /usr/local/HP/PowerProtector/bin/virt_tools/shutdownESXi.pl --server 192.168.1.3 --username root --password ***");
# Host HPVM1/192.168.1.4 with VM's shutdown 
system("perl /usr/local/HP/PowerProtector/bin/virt_tools/shutdownESXi.pl --server 192.168.1.4 --username root --password ***");
# Host HPVM1/192.168.1.5 with VM's shutdown 
system("perl /usr/local/HP/PowerProtector/bin/virt_tools/shutdownESXi.pl --server 192.168.1.5 --username root --password ***");
# Host HPVM1/192.168.1.6 with VM's shutdown 
system("perl /usr/local/HP/PowerProtector/bin/virt_tools/shutdownESXi.pl --server 192.168.1.6 --username root --password ***");

 

And this script run shutdownESXI.pl script for each host with VM's