Irregular Expressions:

February, 2010


February 8, 2010  10:07 PM

Finding VM snapshots – Part 3

Dan O'Connor Dan O'Connor Profile: Dan O'Connor

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

Dan O'Connor Dan O'Connor Profile: Dan O'Connor

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

Dan O'Connor Dan O'Connor Profile: Dan O'Connor

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...


February 1, 2010  5:08 PM

Using vdf to report on storage usage

Dan O'Connor Dan O'Connor Profile: Dan O'Connor

VMWare has some excellent command-line tools. vdf will produce a list of mounts on the system and the associated storage used for each mount point, exactly like df but this will include the vmfs volumes. You can produce a nice output of this information using awk and grep. vdf -h | grep -E...


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: