First off, for any questions regarding my scripts, you should post in the appropriate VMTN documents from where you downloaded the scripts.
Secondly, ESX/ESXi APC/APCUPSD Host Shutdown VI Perl Toolkit Script (ghettoShutdown.pl/upsVIShutdown.pl) -- [ DEPRECATED ] has been deprecated for sometime, this script is no longer supported and you should be using the latest version: ghettoUPSHostShutdown.pl
The issue that you are seeing has to do with the vi-fastpass Perl modules that were changed and undocumented by VMware in the latest release of vMA 4.1. Scripts that utilized the old functions would run into this problem and I'm aware of the problem but have not had the cycles to remediate this problem in the ghettoUPS.pl script.
VMware vExpert 2009,2010
VMware scripts and resources at: http://www.virtuallyghetto.com/
If you find this information useful, please award points for "correct" or "helpful".
thanks , I have download the new script ghettoUPSHostShutdown.pl
1. run the script on the VMA 4.0(ESXi 4.0 as host) by the commandas following:
perl ghettoUPSHostShutdown.pl --host_operation autoquery --vm_operation auto --timeout 10 --ups_vm vMA-UPS-MONITOR
I got the exact time amount is 2 minutes, then run the commands:
perl ghettoUPSHostShutdown.pl --host_operation shutdown --vm_operation shutdown --timeout 2 --ups_vm vMA-UPS-MONITOR
The info will show: info: Found host: 172.18.127.11
172.18.127.11 is my host IP, as the same words, the taget server can be found
despondently, the vm can be shutdown gracefully, but he host cannot be shutdown
2. In the same way, I run the script on the VMA 4.1(ESXi 4.1 as host)
The error will occur:
Use of inherited AUTOLOAD for non-method vifplib_perl::CreateVIUserInfo() is deprecated at ./ghettoUPSHostShutdown.pl line 110.
Undefined subroutine &vifplib_perl::CreateVIUserInfo called at ./ghettoUPSHostShutdown.pl line 110
can you give some advise about how to verify the two issues??