Get VMWare Tools of all VMs
Aus QBWiki
Zur Navigation springenZur Suche springen
Log into a vsphere host and issue the following command, either separated with ';' or saved as script
1 #!/bin/bash
2 for i in $(vim-cmd vmsvc/getallvms | grep -E 'vmx-[0-9]{2}'| grep -oE '^[0-9]{1,4}'); do
3 echo "$i : " ; vim-cmd vmsvc/get.guest $i | grep 'toolsVersion = '
4 done