Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Servers - General
cancel
Showing results for 
Search instead for 
Did you mean: 

HP Power Protector - Shutdown Multiple Hosts

EasyFFF
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

DimiKo
Occasional Contributor

Re: HP Power Protector - Shutdown Multiple Hosts

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