Re: HP Power Protector - Shutdown Multiple Hosts (432 Views)
Reply
Occasional Visitor
EasyFFF
Posts: 2
Registered: ‎05-26-2013
Message 1 of 3 (463 Views)

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.

Please use plain text.
HP Pro
Lincy_Zachariah
Posts: 111
Registered: ‎08-23-2011
Message 2 of 3 (443 Views)

Re: HP Power Protector - Shutdown Multiple Hosts

Hi,


Please refer to following document :  HP Power Protector Software - Shutdown Script Does Not Work


http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?javax.portlet.endCach...


You can also refer to the following thread for additional details:
http://h30499.www3.hp.com/t5/General/HP-power-protector-does-not-run-a-script/m-p/6036469#M7060

Thanks & regards,
_________________________________________________________
Was the post useful? Say thanks by clicking the white KUDOS Star!

Please use plain text.
Occasional Contributor
DimiKo
Posts: 3
Registered: ‎06-11-2013
Message 3 of 3 (432 Views)

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

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation