Servers - General
1748246 Members
3493 Online
108760 Solutions
New Discussion

Re: HP Power Protector - Shutdown Multiple Hosts

 
EasyFFF
New Member

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 2
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