<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>3rdline</title>
	<atom:link href="http://3rdline.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://3rdline.wordpress.com</link>
	<description></description>
	<lastBuildDate>Sun, 27 Nov 2011 18:00:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='3rdline.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>3rdline</title>
		<link>http://3rdline.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://3rdline.wordpress.com/osd.xml" title="3rdline" />
	<atom:link rel='hub' href='http://3rdline.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Finding where your disk space has gone on Linux</title>
		<link>http://3rdline.wordpress.com/2011/11/27/finding-where-your-disk-space-has-gone-on-linux/</link>
		<comments>http://3rdline.wordpress.com/2011/11/27/finding-where-your-disk-space-has-gone-on-linux/#comments</comments>
		<pubDate>Sun, 27 Nov 2011 18:00:32 +0000</pubDate>
		<dc:creator>markholmes28</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://3rdline.wordpress.com/?p=190</guid>
		<description><![CDATA[This morning I had an alert from our monitoring system that the root on one of our Linux boxes was filling up. We can confirm this by using the df (disk free) command, which will display details of all the filesystems our login has access to &#8211; in this case, we are root so we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=190&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This morning I had an alert from our monitoring system that the root on one of our Linux boxes was filling up.</p>
<p>We can confirm this by using the <strong>df</strong> (disk free) command, which will display details of all the filesystems our login has access to &#8211; in this case, we are root so we can see all the filesystems on the box</p>
<p><img alt="1" src="http://3rdline.files.wordpress.com/2011/11/1-2.png?w=450&#038;h=131" width="450" height="131" /></p>
<p>&nbsp;</p>
<p>So how to work out what is taking up space on root?</p>
<p>We can use the <strong>du</strong> (disk usage) command, with some additional arguements  -s (report the sum for each directory, rather than each file in the directory) -k show as multiples of 1024bytes (default is 512).  We then pipe this into sort with the -n (numerical) arguement</p>
<p>du -sk /*|sort -n</p>
<p><img alt="2" src="http://3rdline.files.wordpress.com/2011/11/2-2.png?w=450&#038;h=299" width="450" height="299" /></p>
<p>We can see from the screenshot that /var warrants further investigation</p>
<p><img alt="4" src="http://3rdline.files.wordpress.com/2011/11/4-1.png?w=450&#038;h=291" width="450" height="291" /></p>
<p>So we do du -sk /var/*|sort -n and then du -sk /var/hosts/*|sort -n</p>
<p><img alt="5" src="http://3rdline.files.wordpress.com/2011/11/5-1.png?w=371&#038;h=133" width="371" height="133" /></p>
<p>Continue using this technique to drill down until you find whats filling up all the space &#8211; here, the logs for four of our hosts were getting pretty large.  I deleted some that were &gt;6 months old which freed up almost 2 gig.</p>
<p><strong>Summary</strong></p>
<p>The df and du commands, together with sort, will enable you to quickly track down which files are consuming the most space on your filesystem.</p>
<p>&nbsp;</p>
<p>&nbsp;</p></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3rdline.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3rdline.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3rdline.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3rdline.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3rdline.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3rdline.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3rdline.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3rdline.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3rdline.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3rdline.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3rdline.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3rdline.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3rdline.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3rdline.wordpress.com/190/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=190&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3rdline.wordpress.com/2011/11/27/finding-where-your-disk-space-has-gone-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2190d193bb3d3b6000279fc39561fc8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">markholmes28</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/1-2.png" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/2-2.png" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/4-1.png" medium="image">
			<media:title type="html">4</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/5-1.png" medium="image">
			<media:title type="html">5</media:title>
		</media:content>
	</item>
		<item>
		<title>Updating PHP on Apache 2 &amp; Windows</title>
		<link>http://3rdline.wordpress.com/2011/11/26/updating-php-on-apache-2-windows/</link>
		<comments>http://3rdline.wordpress.com/2011/11/26/updating-php-on-apache-2-windows/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 17:00:05 +0000</pubDate>
		<dc:creator>markholmes28</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://3rdline.wordpress.com/?p=181</guid>
		<description><![CDATA[Preparation Check your PHP version &#8211; one way of doing this is using phpinfo() &#8211; see this post Before you start, it&#8217;s worth checking what has changed in the new version of PHP your upgrading too &#8211; obviously the bigger the version jump the more chance there is that some of your code will call [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=181&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Preparation</strong></p>
<p>
Check your PHP version &#8211; one way of doing this is using phpinfo() &#8211; see this post</p>
<p>
Before you start, it&#8217;s worth checking what has changed in the new version of PHP your upgrading too &#8211; obviously the bigger the version jump the more chance there is that some of your code will call deprecated functions and so will require updating before it will run correctly once the upgrade is complete.</p>
<p>
Download the latest version from <a href="http://windows.php.net/download/">http://windows.php.net/download/</a> &#8211; you&#8217;ll want the stable, obviously.  You&#8217;ll need to know whether you are using the thread safe or non-thread safe version.  I use the thread-safe, which is the recommended one to use if you&#8217;re running Apache on Windows.  Here, we want the .zip, not the installer.</p>
<p>
If you want a bit more background on thread-safe vs non-thread-safe see this post</p>
<p>Before you start the upgrade, take a backup (or perhaps a snapshot, if it&#8217;s a virtual machine).I also take a copy of your PHP folder (in this case, C:\Program Files\PHP. This holds all of your existing config etc.</p>
<p><img alt="1" src="http://3rdline.files.wordpress.com/2011/11/1-1.png?w=450&#038;h=77" width="450" height="77" /></p>
<p>&nbsp;</p>
<p>Rename the existing PHP folder to PHP.old</p>
<p>&nbsp;</p>
<p><img alt="3" src="http://3rdline.files.wordpress.com/2011/11/3-1.png?w=324&#038;h=91" width="324" height="91" /></p>
<p>
Create a new PHP folder</p>
<p><img alt="4" src="http://3rdline.files.wordpress.com/2011/11/42.png?w=440&#038;h=95" width="440" height="95" /></p>
<p>&nbsp;</p>
<p>Extract/copy the contents of the .zip file to the PHP folder you just created</p>
<p>
<img alt="5" src="http://3rdline.files.wordpress.com/2011/11/51.png?w=328&#038;h=280" width="328" height="280" /></p>
<p>&nbsp;</p>
<p>Copy your old php.ini (from the php.old folder) and paste it into your new php folder</p>
<p>
<img alt="6" src="http://3rdline.files.wordpress.com/2011/11/6-1.png?w=435&#038;h=269" width="435" height="269" /></p>
<p>&nbsp;</p>
<p>Start Apache and then browse to your website and make sure everything works properly &#8211; as mentioned above, if your code is calling deprecated functions then it will need to be updated.</p>
<p>
<img alt="7" src="http://3rdline.files.wordpress.com/2011/11/7-1.png?w=450&#038;h=244" width="450" height="244" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3rdline.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3rdline.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3rdline.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3rdline.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3rdline.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3rdline.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3rdline.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3rdline.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3rdline.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3rdline.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3rdline.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3rdline.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3rdline.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3rdline.wordpress.com/181/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=181&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3rdline.wordpress.com/2011/11/26/updating-php-on-apache-2-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2190d193bb3d3b6000279fc39561fc8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">markholmes28</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/1-1.png" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/3-1.png" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/42.png" medium="image">
			<media:title type="html">4</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/51.png" medium="image">
			<media:title type="html">5</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/6-1.png" medium="image">
			<media:title type="html">6</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/7-1.png" medium="image">
			<media:title type="html">7</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrading Apache on Windows</title>
		<link>http://3rdline.wordpress.com/2011/11/25/upgrading-apache-on-windows-2/</link>
		<comments>http://3rdline.wordpress.com/2011/11/25/upgrading-apache-on-windows-2/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 21:40:27 +0000</pubDate>
		<dc:creator>markholmes28</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://3rdline.wordpress.com/?p=168</guid>
		<description><![CDATA[Today I need to upgrade one of our web servers from Apache 2.2.16 to 2.2.21 and also bring PHP to to the current version, 5.3.8, from 5.2.14 (which is woefully out of date – up until now it’s been used as a dev box and not exposed to the internet so I’ve let it lie [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=168&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I need to upgrade one of our web servers from Apache 2.2.16 to 2.2.21 and also bring PHP to to the current version, 5.3.8, from 5.2.14 (which is woefully out of date – up until now it’s been used as a dev box and not exposed to the internet so I’ve let it lie</p>
<p>On the Apache side, this should be pretty straightforward, on the PHP side, I anticipate a load of code will need updating as it uses functions that are deprecated in PHP 5.3.x – I’m not a PHP programmer so someone else will deal with that.</p>
<p>So here goes…</p>
<p>&nbsp;</p>
<p><strong>Preparation</strong></p>
<p>First off, grab the latest Apache binary from <a href="http://httpd.apache.org/download.cgi#apache22.Â">http://httpd.apache.org/download.cgi#apache22.Â</a> You’ll want the MSI installer, not the source… This site doesn’t use SSL so we can go for the one without mod_ssl – obviously if you use SSL on your site, get the one that includes it!</p>
<p>Next, and before we go any further, take a backup of your server. In this case, the web server is a virtual machine so I take a snapshot. I also take a copy of the Apache folder, in my case this is located in C:\Program Files\Apache Software Foundation\Apache2.2. This folder contains all the Apache binaries and configuration.</p>
<p><img alt="1" src="http://3rdline.files.wordpress.com/2011/11/112.png?w=395&#038;h=140" width="395" height="140" /></p>
<p><strong>Uninstall</strong></p>
<p>When you un-install Apache (which we will do next) it should leave some of the folder in place – namely, your configuration.</p>
<p>Next, stop the Apache service, either using NET STOP apache2.2 or via the Services MMC snap-in</p>
<p><img alt="2" src="http://3rdline.files.wordpress.com/2011/11/22.png?w=297&#038;h=129" width="297" height="129" /></p>
<p>&nbsp;</p>
<p>Uninstall Apache via Add/Remove programs</p>
<p><img alt="3" src="http://3rdline.files.wordpress.com/2011/11/35.png?w=450&#038;h=72" width="450" height="72" /></p>
<p>&nbsp;</p>
<p>Once the uninstaller has completed, browse back to your Apache folder. You should see that some folders still remain, including your configuration</p>
<p><img alt="6" src="http://3rdline.files.wordpress.com/2011/11/62.png?w=450&#038;h=121" width="450" height="121" /></p>
<p>So that’s the uninstall completed, now we just need to install the new version</p>
<p><strong>Install the new version</strong></p>
<p>Launch the installer MSI</p>
<p><img alt="7" src="http://3rdline.files.wordpress.com/2011/11/72.png?w=354&#038;h=73" width="354" height="73" /></p>
<p>Just ‘Next’ through the installation wizard, when you get to the Server Information screen, you should see that the details are already filled in correctly. I’ve purposely obscured them here.</p>
<p><img alt="11" src="http://3rdline.files.wordpress.com/2011/11/113.png?w=450&#038;h=339" width="450" height="339" /></p>
<p>I go with a Typical setup</p>
<p><img alt="12" src="http://3rdline.files.wordpress.com/2011/11/122.png?w=450&#038;h=339" width="450" height="339" /></p>
<p>&nbsp;</p>
<p>Then click Install to begin</p>
<p><img alt="13" src="http://3rdline.files.wordpress.com/2011/11/133.png?w=450&#038;h=339" width="450" height="339" /></p>
<p>Once installation completes, the Apache service should start, if not, do it manually via the Services MMC</p>
<p><img alt="14" src="http://3rdline.files.wordpress.com/2011/11/142.png?w=450&#038;h=100" width="450" height="100" /></p>
<p>&nbsp;</p>
<p><strong>IMPORTANT</strong> – by default, the Apache service will be set to run as LocalSystem. I strongly advise you to run with a less privileged account (as do Apache). If you don’t know how to do this, see the relevant part of <a href="http://unixhelp.ed.ac.uk/manual/platform/windows.html">http://unixhelp.ed.ac.uk/manual/platform/windows.html</a> – or wait for my post on it later this week.</p>
<p>Assuming you were following this best-practice before, you’ll want to stop the service via the Services MMC and change it to use the correct account.</p>
<p><img alt="15" src="http://3rdline.files.wordpress.com/2011/11/152.png?w=411&#038;h=463" width="411" height="463" /></p>
<p><strong>HELP – Apache wont start!</strong></p>
<p>A useful tip if Apache won’t start – open a command prompt and attempt to start Apache, something like</p>
<p>cd c:\program files\apache software foundation\apache2.2\bin</p>
<p>httpd -t (using -t means it checks your httpd.conf syntax – if all is OK you will get</p>
<p><img alt="16" src="http://3rdline.files.wordpress.com/2011/11/162.png?w=450&#038;h=145" width="450" height="145" /></p>
<p>Here, I have deliberately broken my httpd.conf as an example.</p>
<p><img alt="17" src="http://3rdline.files.wordpress.com/2011/11/172.png?w=450&#038;h=134" width="450" height="134" /></p>
<p><strong>Summary</strong></p>
<p>All in all, a pretty simple upgrade (it took me around five minutes). Like all upgrades, the greater the version jump, the more likely you are to run into problems. It goes without saying that you should test this on your dev servers before upgrading anything in production.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3rdline.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3rdline.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3rdline.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3rdline.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3rdline.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3rdline.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3rdline.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3rdline.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3rdline.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3rdline.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3rdline.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3rdline.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3rdline.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3rdline.wordpress.com/168/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=168&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3rdline.wordpress.com/2011/11/25/upgrading-apache-on-windows-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2190d193bb3d3b6000279fc39561fc8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">markholmes28</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/112.png" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/22.png" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/35.png" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/62.png" medium="image">
			<media:title type="html">6</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/72.png" medium="image">
			<media:title type="html">7</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/113.png" medium="image">
			<media:title type="html">11</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/122.png" medium="image">
			<media:title type="html">12</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/133.png" medium="image">
			<media:title type="html">13</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/142.png" medium="image">
			<media:title type="html">14</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/152.png" medium="image">
			<media:title type="html">15</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/162.png" medium="image">
			<media:title type="html">16</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2011/11/172.png" medium="image">
			<media:title type="html">17</media:title>
		</media:content>
	</item>
		<item>
		<title>Restarting the ESX Virtual Centre management agent</title>
		<link>http://3rdline.wordpress.com/2009/12/28/restarting-the-esx-virtual-centre-management-agent/</link>
		<comments>http://3rdline.wordpress.com/2009/12/28/restarting-the-esx-virtual-centre-management-agent/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 18:13:17 +0000</pubDate>
		<dc:creator>markholmes28</dc:creator>
				<category><![CDATA[VMWare]]></category>
		<category><![CDATA[problem restarting VMWare management]]></category>
		<category><![CDATA[vmware agent]]></category>
		<category><![CDATA[VMWare ESX Server Host Agent Watchdog [FAILED]]]></category>

		<guid isPermaLink="false">http://3rdline.wordpress.com/?p=73</guid>
		<description><![CDATA[If you log into Virtual Centre and all the machines in one host are showing as disconnected (ie in italics), yet the VM&#8217;s on that host are continuing to run normally, the most likely cause is that the ESX management service or the VirtualCentre agent has stopped on the host. To restart it log into [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=73&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you log into Virtual Centre and all the machines in one host are showing as disconnected (ie in italics), yet the VM&#8217;s on that host are continuing to run normally, the most likely cause is that the ESX management service or the VirtualCentre agent has stopped on the host.</p>
<p>To restart it log into the host and run</p>
<p>mgmt-vmware restart [to restart the VMWare management services]</p>
<p>Usually the service will just restart, but occasionally the hostd process gets stuck and you see</p>
<p>&#8220;Stopping VMWare ESX Management services:VMWare ESX Server Host Agent Watchdog [FAILED]&#8220;</p>
<p>If that happens, you will need to kill the hostd process manually as it&#8217;s preventing the management services from restarting.</p>
<p>To do this:-</p>
<p>[Log into host as root/become root]</p>
<p>cd /var/run/vmware</p>
<p>ls-l vmware-hostd.PID watchdog-hostd.PID [this should show the files that contain the PID (process ID's for the hostd and watchdog processes]</p>
<p>cat vmware-hostd.PID [to view the PID for the hostd process]</p>
<p>kill -9 &lt;PID from above command&gt; eg kill -9 1104 [this will kill the process]</p>
<p>rm vmware-hostd.PID watchdog-hostd.PID [to remove the files containing the PID information (these will be re-created with the correct PID when those processes are started]</p>
<p>service mgmt-vmware restart to restart the VMware management services</p>
<p>After a few seconds you should see the VM&#8217;s on the affected host now show as connected in Virtual Centre.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3rdline.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3rdline.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3rdline.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3rdline.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3rdline.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3rdline.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3rdline.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3rdline.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3rdline.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3rdline.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3rdline.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3rdline.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3rdline.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3rdline.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=73&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3rdline.wordpress.com/2009/12/28/restarting-the-esx-virtual-centre-management-agent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2190d193bb3d3b6000279fc39561fc8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">markholmes28</media:title>
		</media:content>
	</item>
		<item>
		<title>Analyzing Windows Server 2003 memory dump files</title>
		<link>http://3rdline.wordpress.com/2009/11/14/analyzing-windows-server-2003-memory-dump-files/</link>
		<comments>http://3rdline.wordpress.com/2009/11/14/analyzing-windows-server-2003-memory-dump-files/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 17:18:26 +0000</pubDate>
		<dc:creator>markholmes28</dc:creator>
				<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[crashdump]]></category>
		<category><![CDATA[debugging tools]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://3rdline.wordpress.com/?p=40</guid>
		<description><![CDATA[When a Windows machine stops unexpectedly, a &#8216;dump file&#8217; of information about the crash is written to %systemroot%\windows .dmp. This file contains information that will assist you in determining the cause of the stop:- List of drivers loaded at the time of the crash Details of the stop message Details of the process that crashed/stopped [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=40&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When a Windows machine stops unexpectedly, a &#8216;dump file&#8217; of information about the crash is written to %systemroot%\windows .dmp.</p>
<p>This file contains information that will assist you in determining the cause of the stop:-</p>
<p>List of drivers loaded at the time of the crash</p>
<p>Details of the stop message</p>
<p>Details of the process that crashed/stopped</p>
<p>There are several types of dumps that Windows can create, these are</p>
<p>a)A complete memory dump, which basically does exactly what it says on the tin.  The entire contents of physical memory at the time of the crash are wrotten to the dump file.  This type of dump is the default on Windows Server.  Your page file must be of a size at least equal to the amount of physical memory in the machine, plus 100mb for the header.  NOTE &#8211; this isn&#8217;t available on machine with more than 2GB, in which case the default is a kernel memory dump, written to the same location.   ADDITIONAL NOTE &#8211; creating a complete memory dump on a machine with at or close to 2GB of physical memory can take several minutes.</p>
<p>b)Kernel memory dump &#8211; Smaller than a complete memory dump, this contains kernel mode pages in physical memory at the time of the stop.  The size of the dump varies as it depends on the amount of memory allocated to kernel mode at the time.</p>
<p>c)Minidump (Small Memory Dump) &#8211; a 64k dump file is created which contains details of loaded drivers, stop code and details of the thread that caused the crash.</p>
<p>You can change what type of dumpfile your server creates by right-clicking My Computer, selecting Properties from the context menu to bring up the System Properties dialog and then clicking the Advanced tab.</p>
<div id="attachment_42" class="wp-caption aligncenter" style="width: 443px"><img class="size-full wp-image-42" title="WindowsRecoveryOptions" src="http://3rdline.files.wordpress.com/2009/11/windowsrecoveryoptions.jpg?w=433&#038;h=544" alt="Windows Recovery Options Dialog" width="433" height="544" /><p class="wp-caption-text">Windows Recovery Options Dialog</p></div>
<p>Which type of dump should you use?  I tend to stick with the defaults &#8211; a full dump on a system with &lt;2GB physical memory, kernel dump on systems with &gt;2GB</p>
<p><strong>Analyzing the dump file</strong></p>
<p>If the file you are analyzing is a MiniDump, you can use dumpchk.exe from the Windows Support Tools.  For the other types, I use the Windows Debugging Tools.</p>
<p>Here&#8217;s how to set the dubugger up and use it to analyze the dump file.</p>
<p>1. Grab the Windows Debugging Tools from <a title="http://www.microsoft.com/whdc/DevTools/Debugging/default.mspx" href="http://www.microsoft.com/whdc/DevTools/Debugging/default.mspx" target="_blank">http://www.microsoft.com/whdc/DevTools/Debugging/default.mspx</a> and install them</p>
<p>2. Find the tools on your start menu (under All Programs..Debugging Tools for Windows)  and open WinDbg</p>
<div id="attachment_63" class="wp-caption aligncenter" style="width: 520px"><img class="size-full wp-image-63" title="WindowsDebuggerSymbolPath" src="http://3rdline.files.wordpress.com/2009/11/windowsdebuggersymbolpath.jpg?w=510&#038;h=268" alt="WindowsDebuggerSymbolPath" width="510" height="268" /><p class="wp-caption-text">Windows Debugger Symbol Path Dialog</p></div>
<p>3. In WinDbg, go to File and choose Symbol File Path.  Enter the following in the box:-</p>
<p>srv*c:\symbols*http://msdl.microsoft.com/download/symbols</p>
<p>and click OK to close</p>
<div id="attachment_64" class="wp-caption aligncenter" style="width: 520px"><img class="size-full wp-image-64" title="DumpAnalysis1" src="http://3rdline.files.wordpress.com/2009/11/dumpanalysis1.jpg?w=510&#038;h=341" alt="Analyzing the dump file" width="510" height="341" /><p class="wp-caption-text">Analyzing the dump file</p></div>
<p>4. In WinDbg, go to File..Open Crash Dump.  Locate the MEMORY.DMP file you want to analyze and click Open.</p>
<div id="attachment_65" class="wp-caption aligncenter" style="width: 520px"><img class="size-full wp-image-65" title="DumpAnalysis2" src="http://3rdline.files.wordpress.com/2009/11/dumpanalysis2.jpg?w=510&#038;h=487" alt="DumpAnalysis2" width="510" height="487" /><p class="wp-caption-text">Analyzing the dump file</p></div>
<p>5. The dump will be loaded and you will see the information recorded at the time of the crash.  To run a bugcheck analysis, type !analyze -v.</p>
<p><img class="aligncenter size-full wp-image-66" title="DumpAnalysis3" src="http://3rdline.files.wordpress.com/2009/11/dumpanalysis3.jpg?w=337&#038;h=334" alt="DumpAnalysis3" width="337" height="334" /></p>
<div id="attachment_70" class="wp-caption aligncenter" style="width: 477px"><img class="size-full wp-image-70" title="DumpAnalysis4" src="http://3rdline.files.wordpress.com/2009/11/dumpanalysis4.jpg?w=467&#038;h=203" alt="DumpAnalysis4" width="467" height="203" /><p class="wp-caption-text">In this case, iostor.sys is the likely cause</p></div>
<p>6. Read the analysis, it will often be able to help you pinpoint the cause of the stop &#8211; look for the MODULE_NAME or IMAGE_NAME, PROCESS_NAME etc for clues.</p>
<p>This is especially helpful for tracking down problem drivers &#8211; if you find a driver is indicated as the cause, make sure you are running the latest version.   If you are, it may be worth contacting the vendor and providing your memory dump for analysis.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3rdline.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3rdline.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3rdline.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3rdline.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3rdline.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3rdline.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3rdline.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3rdline.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3rdline.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3rdline.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3rdline.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3rdline.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3rdline.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3rdline.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=40&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3rdline.wordpress.com/2009/11/14/analyzing-windows-server-2003-memory-dump-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2190d193bb3d3b6000279fc39561fc8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">markholmes28</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2009/11/windowsrecoveryoptions.jpg" medium="image">
			<media:title type="html">WindowsRecoveryOptions</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2009/11/windowsdebuggersymbolpath.jpg" medium="image">
			<media:title type="html">WindowsDebuggerSymbolPath</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2009/11/dumpanalysis1.jpg" medium="image">
			<media:title type="html">DumpAnalysis1</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2009/11/dumpanalysis2.jpg" medium="image">
			<media:title type="html">DumpAnalysis2</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2009/11/dumpanalysis3.jpg" medium="image">
			<media:title type="html">DumpAnalysis3</media:title>
		</media:content>

		<media:content url="http://3rdline.files.wordpress.com/2009/11/dumpanalysis4.jpg" medium="image">
			<media:title type="html">DumpAnalysis4</media:title>
		</media:content>
	</item>
		<item>
		<title>Turn Exchange 2007 circular logging off/on via Powershell</title>
		<link>http://3rdline.wordpress.com/2009/11/02/turn-exchange-2007-circular-logging-offon-via-powershell/</link>
		<comments>http://3rdline.wordpress.com/2009/11/02/turn-exchange-2007-circular-logging-offon-via-powershell/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 23:08:30 +0000</pubDate>
		<dc:creator>markholmes28</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[circular logging]]></category>
		<category><![CDATA[exchange 2007]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://3rdline.wordpress.com/?p=33</guid>
		<description><![CDATA[Although as a rule you want to leave circular logging off, there may be occasions where you need to enable it.  One of these occasions might be during a migration, in my case this was moving mailboxes from an Exchange 2003 server to Exchange 2007. Each mailbox moved generates entries in the transaction logs for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=33&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Although as a rule you want to leave circular logging off, there may be occasions where you need to enable it.  One of these occasions might be during a migration, in my case this was moving mailboxes from an Exchange 2003 server to Exchange 2007.</p>
<p>Each mailbox moved generates entries in the transaction logs for the source and destination storage groups, equivalent to the size of the mailbox &#8211; so if you move a 1GB mailbox, you can expect the logs to grow by up to 1GB.</p>
<p>Microsofts recommendation is to enable circular logging during mass mailbox moves.  To do this on Exchange 2007 via the Powershell, you can use the following command, putting the name of the storage group between the speechmarks.  <em>You will need to dismount and re-mount each database, or restart the Information Store service, for the setting to take effect.</em></p>
<pre>Set-StorageGroup -Identity "First Storage Group" -CircularLoggingEnabled $true
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3rdline.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3rdline.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3rdline.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3rdline.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3rdline.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3rdline.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3rdline.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3rdline.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3rdline.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3rdline.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3rdline.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3rdline.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3rdline.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3rdline.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=33&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3rdline.wordpress.com/2009/11/02/turn-exchange-2007-circular-logging-offon-via-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2190d193bb3d3b6000279fc39561fc8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">markholmes28</media:title>
		</media:content>
	</item>
		<item>
		<title>Changing event logging levels on Exchange 2007</title>
		<link>http://3rdline.wordpress.com/2009/11/02/changing-event-logging-levels-on-exchange-2007/</link>
		<comments>http://3rdline.wordpress.com/2009/11/02/changing-event-logging-levels-on-exchange-2007/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 15:51:21 +0000</pubDate>
		<dc:creator>markholmes28</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[event logging level Exchange 2007 Powershell]]></category>

		<guid isPermaLink="false">http://3rdline.wordpress.com/?p=25</guid>
		<description><![CDATA[From time to time, you&#8217;ll need to increase the verbosity of the event logging to aid troubleshooting in Exchange 2007. You can do this via the GUI, this is the way to do it via Powershell:- Get-EventLogLevel &#8211; will return the current logging levels of the various Exchange components/processes Set-EventLogLevel &#8211; to set the logging [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=25&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>From time to time, you&#8217;ll need to increase the verbosity of the event logging to aid troubleshooting in Exchange 2007.</p>
<p>You can do this via the GUI, this is the way to do it via Powershell:-</p>
<p>Get-EventLogLevel &#8211; will return the current logging levels of the various Exchange components/processes</p>
<p>Set-EventLogLevel &#8211; to set the logging level for a specified component/process, e.g:-</p>
<p>Set-EventLogLevel MSExchangeTransport\SMTPSend  -Level High</p>
<p>Will set the logging for the specified process to High</p>
<p>If the name of the process you want to change the logging on has a space in it, for example</p>
<p>MSExchange Web Services\Core</p>
<p>the  you will need to put speech marks round it, like so</p>
<p>Set-EventLogLevel “MSEXchange Web Services\Core” –Level High</p>
<p>NOTE:Remember to turn the logging back down when you have finished troubleshooting!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3rdline.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3rdline.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3rdline.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3rdline.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3rdline.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3rdline.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3rdline.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3rdline.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3rdline.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3rdline.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3rdline.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3rdline.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3rdline.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3rdline.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=25&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3rdline.wordpress.com/2009/11/02/changing-event-logging-levels-on-exchange-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2190d193bb3d3b6000279fc39561fc8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">markholmes28</media:title>
		</media:content>
	</item>
		<item>
		<title>Get list of dormant mailboxes using Powershell</title>
		<link>http://3rdline.wordpress.com/2009/10/24/get-list-of-dormant-mailboxes-using-powershell/</link>
		<comments>http://3rdline.wordpress.com/2009/10/24/get-list-of-dormant-mailboxes-using-powershell/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 17:04:39 +0000</pubDate>
		<dc:creator>markholmes28</dc:creator>
				<category><![CDATA[Exchange]]></category>

		<guid isPermaLink="false">http://3rdline.wordpress.com/?p=10</guid>
		<description><![CDATA[A quick Powershell command that returns a list of all the mailboxes on your Exchange server not accessed in 90 days Get-MailboxStatistics &#124; where {$_.Lastlogontime -lt (get-date).AddDays(-90)}&#124; Select displayName,LastLoggedOnUserAccount,LastLogonTime You could also write the results to a csv using the Export-CSV cmdlet :- Get-MailboxStatistics &#124; where {$_.Lastlogontime -lt (get-date).AddDays(-90)}&#124; Select displayName,LastLoggedOnUserAccount,LastLogonTime &#124; Export-CSV c:\NoLogon30Days.csv<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=10&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A quick Powershell command that returns a list of all the mailboxes on your Exchange server not accessed in 90 days</p>
<p>Get-MailboxStatistics | where {$_.Lastlogontime -lt (get-date).AddDays(-90)}| Select displayName,LastLoggedOnUserAccount,LastLogonTime</p>
<p>You could also write the results to a csv using the Export-CSV cmdlet :-</p>
<p>Get-MailboxStatistics | where {$_.Lastlogontime -lt (get-date).AddDays(-90)}| Select displayName,LastLoggedOnUserAccount,LastLogonTime | Export-CSV c:\NoLogon30Days.csv</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3rdline.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3rdline.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3rdline.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3rdline.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3rdline.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3rdline.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3rdline.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3rdline.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3rdline.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3rdline.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3rdline.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3rdline.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3rdline.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3rdline.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=10&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3rdline.wordpress.com/2009/10/24/get-list-of-dormant-mailboxes-using-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2190d193bb3d3b6000279fc39561fc8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">markholmes28</media:title>
		</media:content>
	</item>
		<item>
		<title>Exchange migration &#8211; A simple mailbox move script using Powershell</title>
		<link>http://3rdline.wordpress.com/2009/10/24/exchange-migration-a-simple-mailbox-move-script/</link>
		<comments>http://3rdline.wordpress.com/2009/10/24/exchange-migration-a-simple-mailbox-move-script/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 16:47:39 +0000</pubDate>
		<dc:creator>markholmes28</dc:creator>
				<category><![CDATA[Exchange]]></category>

		<guid isPermaLink="false">http://3rdline.wordpress.com/?p=3</guid>
		<description><![CDATA[I&#8217;m doing a migration from Exchange 2003 to Exchange 2007 at the moment. Many of the mailboxes are large (over 2GB), to keep user inconvenience to a minimum I&#8217;ve been running the moves overnight a few boxes at a time, using a simple Powershell script I wrote. The script reads the alias of the mailbox [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=3&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m doing a migration from Exchange 2003 to Exchange 2007 at the moment.</p>
<p>Many of the mailboxes are large (over 2GB), to keep user inconvenience to a minimum I&#8217;ve been running the moves overnight a few boxes at a time, using a simple Powershell script I wrote.</p>
<p>The script reads the alias of the mailbox to be moved and destination database from a CSV file.  I populate that file each evening with the details of the ones I want to move overnight, then kik the script off.  It logs sucess/failures to a text file which I check in the morning (it would be easy to modify the script to send this to you as a mail attachment using the Net.Mail.SmtpClient object in Powershell).</p>
<p>Here&#8217;s the script &#8211; to use it, save in your Exchange\Scripts folder as MigrateMail.ps, edit the $logfilepath and $sourcefile variables to suit, set up the csv and then run migratemail from a Powershell console.</p>
<p>#Mailbox migration script</p>
<p>#Oct 2009</p>
<p>#Set logfile location and filename<br />
$LogFilePath = &#8220;c:\MailboxMoveLog.txt&#8221;</p>
<p>#Set source CSV location and filename<br />
$SourceFile = &#8220;c:\MailboxesToMove.csv&#8221;</p>
<p>$users = import-csv $sourcefile</p>
<p>foreach($entry in $users) {<br />
$mailbox = $entry.mailbox<br />
$targetdatabase = $entry.targetdatabase<br />
$error.clear()</p>
<p>$logmessage = “Moving Mailbox -&gt; ” + $mailbox<br />
Add-Content $LogFilePath $message</p>
<p>move-mailbox -Identity $mailbox -TargetDatabase $TargetDatabase -BadItemLimit 50 -PreserveMailboxSizeLimit:$true -Confirm: $false</p>
<p>#Sucessfull move action</p>
<p>if ($error.count -eq 0){<br />
$logmessage = “Moved User Mailbox  ” + $Mailbox + &#8221; Sucessfully&#8221;<br />
Add-Content $LogFilePath $message<br />
}</p>
<p>else</p>
<p>#Failed move action</p>
<p>{$logmessage = “Moved User Mailbox ” + $Mailbox + &#8221; FAILED&#8221;<br />
Add-Content $LogFilePath $message}<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3rdline.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3rdline.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3rdline.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3rdline.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3rdline.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3rdline.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3rdline.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3rdline.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3rdline.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3rdline.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3rdline.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3rdline.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3rdline.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3rdline.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3rdline.wordpress.com&amp;blog=10094233&amp;post=3&amp;subd=3rdline&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3rdline.wordpress.com/2009/10/24/exchange-migration-a-simple-mailbox-move-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2190d193bb3d3b6000279fc39561fc8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">markholmes28</media:title>
		</media:content>
	</item>
	</channel>
</rss>
