VMware Cloud Community
nileshpawar1080
Contributor
Contributor

Need script for Snapshot

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.

 

0 Kudos
4 Replies
LucD
Leadership
Leadership

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


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

0 Kudos
nileshpawar1080
Contributor
Contributor

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.

0 Kudos
LucD
Leadership
Leadership

I asked what do you already have concerning code?


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

0 Kudos
nileshpawar1080
Contributor
Contributor

No Sir,

 

I don't have any code.

 

Thanks,

Nilesh Pawar.

0 Kudos