VMware {code} Community
caffine4lovers
Contributor
Contributor
Jump to solution

Shutting down multiple hosts and the vm's on the hosts

Sorry to bother the community again. Right now I have a script that will shutdown or suspends vm's on a host in order using an external file to store the shutdown order (thanks to help from lamw) . The plan is for the script to reside on a virtual center with multiple hosts. The script needs to be able to shutdown the vm's on the host, shutdown the host (in order same idea with the external file), and then jump to the next host and continue the same process. I attempted to create nested for loops to accomplish this task but, it doesn't seem to work. Any help would be appreciated. I attached the script. Thanks in advance

0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

I think you're trying to just syspend or shutdown every VM and then shut down the host.

This code might help.

View solution in original post

0 Kudos
1 Reply
admin
Immortal
Immortal
Jump to solution

I think you're trying to just syspend or shutdown every VM and then shut down the host.

This code might help.

0 Kudos