VMware Cloud Community
caffine4lovers
Contributor
Contributor

Shutting down VMs on a host in some type of order

I am trying to write a shutdown script in perl (new to perl programming) my modifying the ghettoshudown script. What it does so far is shutdown or suspend all virtual machines

on a host, but it does not shut them

down in a specific order (which is the end goal). Is there anyway to do

this in perl, possibly using an external file. Any help would be

greatly appreciated.

I have attached what I have thus far.

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership

You do know you posted in the PowerCLI (PowerShell) community?

If you want to convert the attached Perl script to a PowerShell script please let us know and we will be glad to oblige Smiley Wink


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
caffine4lovers
Contributor
Contributor

Wow I feel silly thanks for pointing that out.

Reply
0 Kudos