Irregular Expressions:

sort

1

February 8, 2010  10:07 PM

Finding VM snapshots – Part 3



Posted by: Dan O'Connor
find, snap shot, snapshot, sort, uniq, unix, vmware, wc

Find can be given multiple date constraints to narrow down the results returned. `find /vmfs/volumes/ -mtime +1 -mtime -10 -type -f -name "*00*.vmdk"` Will locate files that where the file was last modified at least 1 day ago (-mtime +1) but not more then 10 (-mtime -10). Find has several...

February 5, 2010  9:20 PM

Finding VM snapshots – Part 2



Posted by: Dan O'Connor
find, snap shot, snapshot, sort, uniq, unix, vmware, wc

Using find to locate vm's with snapshots is easy. `find /vmfs/volumes/ -type f -name "*00*.vmdk" | awk -F "/" '{print $1"/"$2"/"$3"/"$4"/"$5 }' | uniq` Find is just not limited to locating the files but it is able to preform actions on it. Using the `-exec` allows any command to...


February 3, 2010  11:20 AM

Finding VM snapshots – Part 1



Posted by: Dan O'Connor
find, snap shot, snapshot, sort, uniq, unix, vmware, wc

Locating VM's with snapshots on a datastore is easy if you know how to use the find command. `find /vmfs/volumes/ -type f -name "*00*.vmdk"` Will look through the /vmfs/volumes/ looking for files with names that match the providedĀ pattern. More specifically the folders those files are stored...


1

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: