<?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>Michael Phillips Blog &#187; tools</title>
	<atom:link href="http://nukeitmike.com/blog/tag/tools/feed" rel="self" type="application/rss+xml" />
	<link>http://nukeitmike.com/blog</link>
	<description>My place to speak about things</description>
	<lastBuildDate>Thu, 29 Jul 2010 20:57:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Monitoring drive space</title>
		<link>http://nukeitmike.com/blog/2009/09/04/monitoring-drive-space/</link>
		<comments>http://nukeitmike.com/blog/2009/09/04/monitoring-drive-space/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 21:25:29 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[General Info]]></category>
		<category><![CDATA[Operational Excellence]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/2009/09/04/monitoring-drive-space/</guid>
		<description><![CDATA[One of the things that we spend a lot of time on is trying to keep track of what servers have enough free space.&#160; We have a lot of different tools to check drive space, and we even use some of them from time to time.&#160; We have a pretty complicated system created by Rickey [...]]]></description>
			<content:encoded><![CDATA[<p>One of the things that we spend a lot of time on is trying to keep track of what servers have enough free space.&#160; We have a lot of different tools to check drive space, and we even use some of them from time to time.&#160; We have a pretty complicated system created by <a href="http://www.whitworth.org/" target="_blank">Rickey</a> that creates a nice webpage, with highlighting for problem areas (percentage change from day to day, current percent free, etc.)&#160; It even puts the info into a database for historical reporting.</p>
<p>We don’t store or report on VMs currently, mainly because we were trying to keep track of total REAL disk used.&#160; VMs often don’t use as much as they think they do, so that would skew the results, as well as the fact that we are reporting on the hosts.&#160; </p>
<p>All of that is the reason that <a href="http://pburch.com/blog" target="_blank">Patrick</a> asked me to come up with some other tool to use for the VMs so I happened to find a few pieces of PowerShell script that I managed to put together to do a pretty good job of providing some of the info we wanted, and I thought I would share that with the 2 people who read my blog.&#160; <img src='http://nukeitmike.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#160;</p>
<blockquote><p>$servers = Get-Content servers.txt </p>
<p>#Open Excel and create a new workbook and worksheet     <br />$ExcelSheet=New-Object -comobject Excel.application&#160;&#160;&#160; <br />$WorkBook=$ExcelSheet.WorkBooks.add(1)&#160;&#160;&#160;&#160; <br />$WorkSheet=$WorkBook.WorkSheets.item(1)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>
<p>#Header row     <br />$WorkSheet.cells.item(1,1)=”Computer Name”&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />$WorkSheet.cells.item(1,2)=”Disk Device ID”&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />$WorkSheet.cells.item(1,3)=”Volume Name”&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />$WorkSheet.cells.item(1,4)=”Size (GB)”&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />$WorkSheet.cells.item(1,5)=”Free Space (GB)”      <br />$WorkSheet.cells.item(1,6)=”Space Used (GB)”      <br />$WorkSheet.cells.item(1,7)=”Percent Used” </p>
<p>$i=2 </p>
<p>ForEach ($ComputerName in $servers)     <br />{&#160;&#160;&#160; <br />&#160;&#160;&#160; echo &quot;Server Name : &quot;, $ComputerName      <br />&#160;&#160;&#160; $Disks = gwmi –computername $ComputerName win32_logicaldisk -filter &quot;drivetype=3&quot; </p>
<p>&#160;&#160;&#160; foreach ($Disk in $Disks)      <br />&#160;&#160;&#160; {      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $Size = &quot;{0:0.0}&quot; -f ($Disk.Size/1GB)      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $FreeSpace = &quot;{0:0.0}&quot; -f ($Disk.FreeSpace/1GB)      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $Used = ([int64]$Disk.size &#8211; [int64]$Disk.freespace)      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $SpaceUsed = &quot;{0:0.0}&quot; -f ($Used/1GB)      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $Percent = ($Used * 100.0)/$Disk.Size      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $Percent = &quot;{0:N0}&quot; -f $Percent      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $WorkSheet.cells.item($i,1)=$ComputerName      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $WorkSheet.cells.item($i,2)=$Disk.deviceid      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $WorkSheet.cells.item($i,3)=$Disk.volumename      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $WorkSheet.cells.item($i,4)=$Size      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $WorkSheet.cells.item($i,5)=$FreeSpace      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $WorkSheet.cells.item($i,6)=$SpaceUsed      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $WorkSheet.cells.item($i,7)=$Percent </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $i=$i+1&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; }      <br />}      <br />#Show the results      <br />$ExcelSheet.visible=$true</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2009/09/04/monitoring-drive-space//feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hyper-V performance</title>
		<link>http://nukeitmike.com/blog/2009/03/30/hyper-v-performance/</link>
		<comments>http://nukeitmike.com/blog/2009/03/30/hyper-v-performance/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 19:19:12 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/2009/03/30/hyper-v-performance/</guid>
		<description><![CDATA[If you want to monitor performance in Hyper-V, you might like to check out this utility: If you use Hyper-V, or any OS virtualization platform, you know that you can&#8217;t trust the Windows Task Manager from inside the VMs to tell you squat.&#160; Basically, the virtualization layer pulls the rug out from under the guest [...]]]></description>
			<content:encoded><![CDATA[<p> If you want to monitor performance in Hyper-V, you might like to check out this utility:</p>
<blockquote><p>If you use Hyper-V, or any OS virtualization platform, you know that you can&#8217;t trust the Windows Task Manager from inside the VMs to tell you squat.&#160; Basically, the virtualization layer pulls the rug out from under the guest OS when it comes to CPU and the guest is clueless and assumes that whatever was paused just ate CPU the whole time.</p>
<p>I was looking at a performance issue on Hyper-V and needed to investigate.&#160; Searching the web I found Perfmon info but got sick of setting that up, and then having to do paper and pencil math to figure out what I wanted to know.&#160; So I did what I always do &#8212; I wrote a tool!&#160; The tool is called <strong><em>HyperV_Mon </em></strong>and is basically a GUI that does all the hard work for you. </p>
</blockquote>
<p><a href="http://www.brianmadden.com/blogs/timmangan/archive/2009/03/11/hyperv-mon-a-new-free-tool-if-you-use-hyper-v.aspx">HyperV_Mon: a new free tool if you use Hyper-V &#8211; Tim Mangan &#8211; BrianMadden.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2009/03/30/hyper-v-performance//feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
