 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Irregular Expressions &#187; esx</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/Irregular-Expressions/tag/esx/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/Irregular-Expressions</link>
	<description>Insight into current security related events and exploits, including virtualization security and tips.</description>
	<lastBuildDate>Sun, 28 Apr 2013 08:00:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Using vdf to report on storage usage</title>
		<link>http://itknowledgeexchange.techtarget.com/Irregular-Expressions/using-vdf-to-report-on-storage-usage/</link>
		<comments>http://itknowledgeexchange.techtarget.com/Irregular-Expressions/using-vdf-to-report-on-storage-usage/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 22:08:21 +0000</pubDate>
		<dc:creator>Dan O'Connor</dc:creator>
				<category><![CDATA[esx]]></category>
		<category><![CDATA[vdf]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/Irregular-Expressions/?p=5</guid>
		<description><![CDATA[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 &#124; grep -E &#8216;^\ +[0-9]&#8216; [...]]]></description>
				<content:encoded><![CDATA[<p>VMWare has some excellent command-line tools.</p>
<p>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.</p>
<p>You can produce a nice output of this information using awk and grep.</p>
<p>vdf -h | grep -E &#8216;^\ +[0-9]&#8216; | awk &#8216;{ print $4&#8243; &#8220;$5 }&#8217; | sort -rn | awk &#8216;{ print $2&#8243; &#8220;$1 }&#8217;</p>
<p>The lines that you are interested in start with multiple spaces then numbers so &#8220;grep -E &#8216;^\ +[0-9]&#8216; &#8221;</p>
<p>The first awk is used to pull out the name of the storage unit and the associated usage %. &#8220;awk  &#8217;{ print $4&#8243; &#8220;$5 }&#8217;&#8221;</p>
<p>Sort is then used to sort it with the highest usage on top. &#8220;sort -rn&#8221;</p>
<p>Then the last awk is used to print out name then usage, this is just a personal preference. &#8220;awk &#8216;{ print $2&#8243; &#8220;$1 }&#8217; &#8221;</p>
<p>Now with this nice formatted data you can pull this in to your central logging device and create some charts and alerts.</p>
<p>/vmfs/volumes/NAME 44%</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/Irregular-Expressions/using-vdf-to-report-on-storage-usage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
