Automation

 View Only
  • 1.  Need script for Snapshot

    Posted Mar 04, 2021 07:49 PM

    Hi,

    I need a script through which i can check below things first.

    1) Whether size of disk is more than 2TB or less.

    2) VM having shared disk attached or not.

    3) VM having RDM disk or not.

    IF RDM DISK, Shared disks are not attached and VM size should not be more than 2 TB then only we allowed for snapshot with Description "Snapshot will be deleted after 48 hr"

     

    Any help will be appreciated.

    Thanks,

    Nilesh Pawar.

     



  • 2.  RE: Need script for Snapshot

    Posted Mar 04, 2021 08:06 PM

    So what do you already have, and where did you get stuck?



  • 3.  RE: Need script for Snapshot

    Posted Mar 05, 2021 10:15 AM

    Hi LucD,

     

    Thanks for your response, we have lot of snapshot request on daily basis. 

    Criteria is VM should not have Old Snapshot, RDM device, and shared disk as well as it should not be more than 2TB.

    Hence i need to create PowerShell script for same to minimize my time to do this things manually.

     

    Thanks,

    Nilesh pawar.



  • 4.  RE: Need script for Snapshot

    Posted Mar 05, 2021 10:41 AM

    I asked what do you already have concerning code?



  • 5.  RE: Need script for Snapshot

    Posted Mar 26, 2021 12:56 PM

    No Sir,

     

    I don't have any code.

     

    Thanks,

    Nilesh Pawar.