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
I think you're trying to just syspend or shutdown every VM and then shut down the host.
This code might help.
I think you're trying to just syspend or shutdown every VM and then shut down the host.
This code might help.