LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Unable to shutdown guest & host in vMA (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/unable-to-shutdown-guest-and-host-in-vma-837547/)

smartgupta 10-12-2010 02:54 AM

Unable to shutdown guest & host in vMA
 
Hi All,

I installed ESXi 4 and then vma on esix.Now I am trying to shutdown all the guest OS and then host server(ESXi) through vMA.I am using the script ghettoUPSHostShutdown.pl(check the link http://communities.vmware.com/docs/DOC-11902.)

but when I am trying to run this script,I am getting following errors--
Quote:

vi-admin@localhos $ ./ghettoUPSHostShutdown.pl --host_operation dryrun --vm_operation shutdown --loglevel debug --ups_vm vMA --timeout 5
Quote:

======= DRYRUN MODE ENABLED ghettoUPSHostShutdown.pl =======
info: UPS_MONITORING: vMA
info: VM_OPERATION: shutdown
info: HOST_OPERATION: dryrun
info: HOST_LIST: AUTOMATIC
info: ==========================================

info: Found host: "IP ADDRESS OF ESXi HOST HERE"
debug: Main: Login by vi-fastpass to: IP ADDRESS OF ESXi HOST HERE
info: Begin shutdown operation on VMs ...
info: Shutting down Ubuntu via VMware Tools...
info: shutting down vSphere Management Assistant via VMware Tools...
info: shutdown operation complete!
debug: Main: Disconnect from: IP ADDRESS OF ESXi HOST HERE
info: verifying all VMs are either suspended or powered of - TIMEOUT set to: 5min
debug: Login by vi-fastpass to : IP ADDRESS OF ESXi HOST HERE
info: Host: IP ADDRESS OF ESXi HOST HERE has 2/5 VMs still powered on!
info: Verification stage completed !
info: Putting host into "dryrun mode "
use of uninitialized value in string ne at ./ghettoUPSHostShutdown.pl line 247.
info: "IP ADDRESS OF ESXi HOST HERE"is now shutting down.
info: finally putting UPS Monitoring VM host into "dryrun mode"
use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.8.8/VMware/VIFPLib.pm line 355.
login_by_fastpass:hostname cannot be empty at /usr/lib/perl5/site_perl/5.8.8/VMware/VIFPLib.pm line 355.

Please help me how can I resolve it.
Thanks in advance...

nikwax 11-03-2010 03:07 PM

Quote:

Originally Posted by smartgupta (Post 4124679)
Hi All,

I installed ESXi 4 and then vma on esix.Now I am trying to shutdown all the guest OS and then host server(ESXi) through vMA.I am using the script ghettoUPSHostShutdown.pl(check the link http://communities.vmware.com/docs/DOC-11902.)

but when I am trying to run this script,I am getting following errors...

The link you referenced is for ESXi 3.5 - there is a link though for a different script for ESXi 4:
http://communities.vmware.com/docs/DOC-11623

You might want to try that one out instead.


All times are GMT -5. The time now is 12:39 PM.