Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 219257

Re: VDP 5.5 list protected VMs

$
0
0

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


Viewing all articles
Browse latest Browse all 219257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>