VMware Cloud Community
EGonz
Contributor
Contributor

VDP 5.5 list protected VMs

Hello everyone,

Is there a way to export a of list all VMs being protected by a VDP appliance? (powershell command or just CLI command)

I'm actually trying to build a report of all VMs protected by our VDP appliances.

Thanks!

3 Replies
AlbertWT
Virtuoso
Virtuoso

EGonz,

Have you found anything yet for the PowerCLI on VDP ?

/* Please feel free to provide any comments or input you may have. */
0 Kudos
SavkoorSuhas
Expert
Expert

Yes, mccli client show --recursive=true

This will show all protected VMs by VDP.

To get only the VM list, you can do something like this:
mccli client show --recursive=true | grep -i "/$(cat /usr/local/vdr/etc/vcenterinfo.cfg | grep vcenter-hostname | cut -d = -f 2)/VirtualMachines" | awk -F'[[:space:]][[:space:]][[:space:]]*' '{print $1}'

If there are no spaces for VM names, then you can skip the awk

If you have VM with one space name like (VM Hello) Then you can use awk -F'[[:space:]]*' '{print $1}'

Suhas

If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points.

Don't Backup. Go Forward!
Rubrik

AlbertWT
Virtuoso
Virtuoso

Cool, you are amazing SavkoorSuhasSmiley Happyb

/* Please feel free to provide any comments or input you may have. */