VM=DLR
VMX=`esxcli vm process list | grep -A 6 $VM | grep "Config" | cut -c 17-300`
egrep "\.vmdk|\.vswp|\.vmx|\.vmxf|\.log" $VMX | cut -d "\"" -f 2 > /tmp/files.txt
for cf in `cat /tmp/files.txt`; do
echo "the next config file is $cf"
vmfsfilelockinfo -p $cf -v 192.168.4.100 -u administrator@uw.cz
done
Jeste je potreba doladit cesty k souborum, ktere jsou relativni a ne absolutni.
No comments:
Post a Comment