Automation

 View Only
  • 1.  Snapshots With Scheduled Tasks

    Posted Mar 03, 2016 06:11 PM

    Hello everyone,

    I'm trying to come up with a script that will create a scheduled task to take snapshots from a text file at an specific time. The text file being the VMs names.

    Any help will be create.



  • 2.  RE: Snapshots With Scheduled Tasks

    Posted Mar 03, 2016 08:14 PM

    There is a nice script in New vCenter Scheduled Tasks with PowerCLI (Part 2).

    It uses the vCenter scheduler to schedule the tasks.

    It shouldn't be too hard to add the functionality to read the VM names form a txt file



  • 3.  RE: Snapshots With Scheduled Tasks

    Posted Mar 04, 2016 02:22 PM

    Thanks, This works great for single VMs, I need to schedule quite a few.



  • 4.  RE: Snapshots With Scheduled Tasks
    Best Answer

    Posted Mar 04, 2016 06:25 PM

    What I meant to say is that you can use the same Scheduled Task concept to launch a script.

    In that script you can read the file with VM names, and create a snapshot for all of them.