Automation

 View Only
  • 1.  Shutting down VMs on a host in some type of order

    Posted Jun 29, 2009 09:15 PM

    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.



  • 2.  RE: Shutting down VMs on a host in some type of order

    Posted Jun 29, 2009 09:29 PM

    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 :smileywink:



  • 3.  RE: Shutting down VMs on a host in some type of order

    Posted Jun 29, 2009 09:43 PM

    Wow I feel silly thanks for pointing that out.