<?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>The Lone Sysadmin &#187; How To</title>
	<atom:link href="http://lonesysadmin.net/category/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://lonesysadmin.net</link>
	<description>Virtualization, System Administration, and Technology.</description>
	<lastBuildDate>Sun, 29 Aug 2010 21:54:07 +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>Recover iPod &amp; iPhone Serial Numbers from iTunes</title>
		<link>http://lonesysadmin.net/2009/12/11/recover-ipod-iphone-serial-numbers-from-itunes/</link>
		<comments>http://lonesysadmin.net/2009/12/11/recover-ipod-iphone-serial-numbers-from-itunes/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 18:44:13 +0000</pubDate>
		<dc:creator>Bob Plankers</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[General Rambling]]></category>
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://lonesysadmin.net/?p=2286</guid>
		<description><![CDATA[If you need your iPod or iPhone serial numbers, but haven&#8217;t written them down, iTunes keeps a list of devices it&#8217;s seen in a file called iPodDevices.xml. I found mine in: C:\Users\myusername\AppData\Local\Apple Computer\iTunes\ I&#8217;m running Windows 7 and iTunes 9.0.2, so different versions might have different results. At the very least you can search your [...]

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2008/02/01/serial-consoles-awesome-readers/" rel="bookmark">Serial Consoles, Awesome Readers</a><!-- (45.7576)--></li>
		<li><a href="http://lonesysadmin.net/terms-of-use/" rel="bookmark">Terms of Use</a><!-- (39.4369)--></li>
		<li><a href="http://lonesysadmin.net/2007/11/28/traveling-with-an-iphone-keep-the-firmware-on-your-laptop/" rel="bookmark">Traveling with an iPhone? Keep the firmware on your laptop.</a><!-- (37.6237)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>If you need your iPod or iPhone serial numbers, but haven&#8217;t written them down, iTunes keeps a list of devices it&#8217;s seen in a file called iPodDevices.xml. I found mine in:</p>
<p>C:\Users\myusername\AppData\Local\Apple Computer\iTunes\</p>
<p>I&#8217;m running Windows 7 and iTunes 9.0.2, so different versions might have different results. At the very least you can search your computer for iPodDevices.xml.</p>
<p>Good luck!</p>
<p><hr></p><p>This post written by Bob Plankers for <a href="http://lonesysadmin.net">The Lone Sysadmin</a>. Unless otherwise noted it is &copy; 2010 Bob Plankers and licensed under the <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons BY-NC-SA 3.0 license</a>.</p><img src="http://lonesysadmin.net/?ak_action=api_record_view&id=2286&type=feed" alt="" />

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2008/02/01/serial-consoles-awesome-readers/" rel="bookmark">Serial Consoles, Awesome Readers</a><!-- (45.7576)--></li>
		<li><a href="http://lonesysadmin.net/terms-of-use/" rel="bookmark">Terms of Use</a><!-- (39.4369)--></li>
		<li><a href="http://lonesysadmin.net/2007/11/28/traveling-with-an-iphone-keep-the-firmware-on-your-laptop/" rel="bookmark">Traveling with an iPhone? Keep the firmware on your laptop.</a><!-- (37.6237)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://lonesysadmin.net/2009/12/11/recover-ipod-iphone-serial-numbers-from-itunes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Cancel a Stuck VMware Tools Install from the ESX CLI</title>
		<link>http://lonesysadmin.net/2009/12/11/how-to-cancel-a-stuck-vmware-tools-install-from-the-esx-cli/</link>
		<comments>http://lonesysadmin.net/2009/12/11/how-to-cancel-a-stuck-vmware-tools-install-from-the-esx-cli/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 18:36:29 +0000</pubDate>
		<dc:creator>Bob Plankers</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://lonesysadmin.net/?p=2282</guid>
		<description><![CDATA[Q: I&#8217;m trying to evacuate a machine that is suffering a hardware failure, and one of the VMs thinks it is installing the VMware Tools, so it won&#8217;t VMotion. The error is &#8220;The virtual machine is installing VMware Tools and cannot initiate a migration operation.&#8221; I also cannot right-click the VM in vCenter and choose [...]

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2008/12/08/check-and-upgrade-vmware-tools/" rel="bookmark">Check and Upgrade VMware Tools</a><!-- (38.5411)--></li>
		<li><a href="http://lonesysadmin.net/2008/01/07/keep-your-vmware-tools-up-to-date/" rel="bookmark">Keep Your VMware Tools Up To Date</a><!-- (38.414)--></li>
		<li><a href="http://lonesysadmin.net/2007/10/29/how-to-install-a-tftp-server-on-red-hat-enterprise-linux/" rel="bookmark">How to Install a tftp Server on Red Hat Enterprise Linux</a><!-- (31.4482)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>Q: I&#8217;m trying to evacuate a machine that is suffering a hardware failure, and one of the VMs thinks it is installing the VMware Tools, so it won&#8217;t VMotion. The error is &#8220;The virtual machine is installing VMware Tools and cannot initiate a migration operation.&#8221; I also cannot right-click the VM in vCenter and choose &#8220;End VMware Tools Install.&#8221; Is there a way for me to end the VMware Tools installation from the ESX command line?</p>
<p>A: Yes, it&#8217;s a two-step process once you&#8217;ve logged into the console OS of the ESX server where the VM is executing.</p>
<p>First, you need the ID of the VM (all on one line if it wraps):</p>
<p>/usr/bin/vmware-cmd /vmfs/volumes/datastore-name/vm-folder/vmx-file.vmx getid</p>
<p>Then you can do a:</p>
<p>/usr/bin/vmware-vim-cmd vmsvc/tools.cancelinstall idnumber</p>
<p>Have fun!</p>
<p><hr></p><p>This post written by Bob Plankers for <a href="http://lonesysadmin.net">The Lone Sysadmin</a>. Unless otherwise noted it is &copy; 2010 Bob Plankers and licensed under the <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons BY-NC-SA 3.0 license</a>.</p><img src="http://lonesysadmin.net/?ak_action=api_record_view&id=2282&type=feed" alt="" />

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2008/12/08/check-and-upgrade-vmware-tools/" rel="bookmark">Check and Upgrade VMware Tools</a><!-- (38.5411)--></li>
		<li><a href="http://lonesysadmin.net/2008/01/07/keep-your-vmware-tools-up-to-date/" rel="bookmark">Keep Your VMware Tools Up To Date</a><!-- (38.414)--></li>
		<li><a href="http://lonesysadmin.net/2007/10/29/how-to-install-a-tftp-server-on-red-hat-enterprise-linux/" rel="bookmark">How to Install a tftp Server on Red Hat Enterprise Linux</a><!-- (31.4482)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://lonesysadmin.net/2009/12/11/how-to-cancel-a-stuck-vmware-tools-install-from-the-esx-cli/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Windows Losing its Default Printer</title>
		<link>http://lonesysadmin.net/2009/06/11/windows-losing-its-default-printer/</link>
		<comments>http://lonesysadmin.net/2009/06/11/windows-losing-its-default-printer/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 17:36:22 +0000</pubDate>
		<dc:creator>Bob Plankers</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://lonesysadmin.net/?p=2089</guid>
		<description><![CDATA[For months now my Windows Vista, and now Windows Server 2008 desktop has been losing its default printer every night. I haven&#8217;t been able to figure it out until now: it&#8217;s the Remote Desktop Client remapping my printers when I connect from home. There are three fixes for this: 1. You can tell your RDP [...]

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2008/02/17/ms-rdp-client-console-is-now-admin/" rel="bookmark">MS RDP Client: /console is now /admin</a><!-- (60.2205)--></li>
		<li><a href="http://lonesysadmin.net/2008/02/19/windows-vista-sp1-not-bad/" rel="bookmark">Windows Vista SP1, Not Bad</a><!-- (40.4806)--></li>
		<li><a href="http://lonesysadmin.net/2009/01/13/windows-7-beta-and-vi-client/" rel="bookmark">Windows 7 Beta and VI Client</a><!-- (40.3245)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>For months now my Windows Vista, and now Windows Server 2008 desktop has been losing its default printer every night. I haven&#8217;t been able to figure it out until now: it&#8217;s the Remote Desktop Client remapping my printers when I connect from home.</p>
<p>There are three fixes for this:</p>
<p>1. You can tell your RDP client to not map printers, in the &#8220;Local Resources&#8221; options tab. This is easy but you have to remember to do it.</p>
<p>2. On the host side on Windows Server 2008 you can go into Administrative Tools-&gt;Terminal Services-&gt;Terminal Services Configuration, right click the RDP-TCP connection, pick &#8220;Properties,&#8221; and disable it under the &#8220;Client Settings&#8221; tab.</p>
<p>3. On the host side on Windows Vista you can follow <a href="http://support.microsoft.com/kb/268065">Microsoft KB article 268065</a> and add a registry value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd.</p>
<p>Now you know, and as they say in G.I. Joe, knowing is half the battle.</p>
<p><hr></p><p>This post written by Bob Plankers for <a href="http://lonesysadmin.net">The Lone Sysadmin</a>. Unless otherwise noted it is &copy; 2010 Bob Plankers and licensed under the <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons BY-NC-SA 3.0 license</a>.</p><img src="http://lonesysadmin.net/?ak_action=api_record_view&id=2089&type=feed" alt="" />

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2008/02/17/ms-rdp-client-console-is-now-admin/" rel="bookmark">MS RDP Client: /console is now /admin</a><!-- (60.2205)--></li>
		<li><a href="http://lonesysadmin.net/2008/02/19/windows-vista-sp1-not-bad/" rel="bookmark">Windows Vista SP1, Not Bad</a><!-- (40.4806)--></li>
		<li><a href="http://lonesysadmin.net/2009/01/13/windows-7-beta-and-vi-client/" rel="bookmark">Windows 7 Beta and VI Client</a><!-- (40.3245)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://lonesysadmin.net/2009/06/11/windows-losing-its-default-printer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Reassemble Your Faucet&#8217;s Aerator</title>
		<link>http://lonesysadmin.net/2008/12/26/how-to-reassemble-your-faucets-aerator/</link>
		<comments>http://lonesysadmin.net/2008/12/26/how-to-reassemble-your-faucets-aerator/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 21:32:05 +0000</pubDate>
		<dc:creator>Bob Plankers</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://lonesysadmin.net/?p=1760</guid>
		<description><![CDATA[Took your faucet&#8217;s aerator apart to clean it? Trying to figure out how to put it back together again? Internet absolutely no help because it tells you that you should have noted how it came out in the first place? Yeah, I&#8217;m with you, pal, and you&#8217;ve come to the right place. This is how. [...]

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2007/01/24/set-yourself-up-for-success/" rel="bookmark">Set Yourself Up For Success</a><!-- (17.1461)--></li>
		<li><a href="http://lonesysadmin.net/2007/06/02/water-usage/" rel="bookmark">Water Usage</a><!-- (16.4159)--></li>
		<li><a href="http://lonesysadmin.net/2006/09/23/plumbing-0-me-1/" rel="bookmark">Plumbing 0, Me 1</a><!-- (13.5792)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>Took your faucet&#8217;s aerator apart to clean it? Trying to figure out how to put it back together again? Internet absolutely no help because it tells you that you should have noted how it came out in the first place? Yeah, I&#8217;m with you, pal, and you&#8217;ve come to the right place. This is how. Click on the photos for larger versions.</p>
<p>First, I numbered everything so I could refer to them (this is also the order they go back into #1):</p>
<p><a href="http://lonesysadmin.net/wp-content/uploads/2008/12/aerator-parts.jpg"><img class="alignnone size-medium wp-image-1761" title="aerator-parts" src="http://lonesysadmin.net/wp-content/uploads/2008/12/aerator-parts-300x110.jpg" alt="aerator-parts" width="300" height="110" /></a></p>
<p>The part I got hung up on was where you put part #3 into part #2 first, because it seems like it&#8217;d block all the water. It goes in like this:</p>
<p><a href="http://lonesysadmin.net/wp-content/uploads/2008/12/aerator-screen.jpg"><img class="alignnone size-medium wp-image-1762" title="aerator-screen" src="http://lonesysadmin.net/wp-content/uploads/2008/12/aerator-screen-300x228.jpg" alt="aerator-screen" width="300" height="228" /></a></p>
<p>Then stick that in part #1:</p>
<p><a href="http://lonesysadmin.net/wp-content/uploads/2008/12/aerator-semi-assembled.jpg"><img class="alignnone size-medium wp-image-1763" title="aerator-semi-assembled" src="http://lonesysadmin.net/wp-content/uploads/2008/12/aerator-semi-assembled-300x123.jpg" alt="aerator-semi-assembled" width="300" height="123" /></a></p>
<p>Top it all off with part #4:</p>
<p><a href="http://lonesysadmin.net/wp-content/uploads/2008/12/aerator-mostly-assembled.jpg"><img class="alignnone size-medium wp-image-1764" title="aerator-mostly-assembled" src="http://lonesysadmin.net/wp-content/uploads/2008/12/aerator-mostly-assembled-300x165.jpg" alt="aerator-mostly-assembled" width="300" height="165" /></a></p>
<p>Put part #5 on top, screw it all back into the faucet, and you&#8217;re done.</p>
<p><hr></p><p>This post written by Bob Plankers for <a href="http://lonesysadmin.net">The Lone Sysadmin</a>. Unless otherwise noted it is &copy; 2010 Bob Plankers and licensed under the <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons BY-NC-SA 3.0 license</a>.</p><img src="http://lonesysadmin.net/?ak_action=api_record_view&id=1760&type=feed" alt="" />

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2007/01/24/set-yourself-up-for-success/" rel="bookmark">Set Yourself Up For Success</a><!-- (17.1461)--></li>
		<li><a href="http://lonesysadmin.net/2007/06/02/water-usage/" rel="bookmark">Water Usage</a><!-- (16.4159)--></li>
		<li><a href="http://lonesysadmin.net/2006/09/23/plumbing-0-me-1/" rel="bookmark">Plumbing 0, Me 1</a><!-- (13.5792)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://lonesysadmin.net/2008/12/26/how-to-reassemble-your-faucets-aerator/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Disabling iPhone Photo Import under Windows Vista</title>
		<link>http://lonesysadmin.net/2008/09/29/disabling-iphone-photo-import-under-windows-vista/</link>
		<comments>http://lonesysadmin.net/2008/09/29/disabling-iphone-photo-import-under-windows-vista/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 22:45:11 +0000</pubDate>
		<dc:creator>Bob Plankers</dc:creator>
				<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://lonesysadmin.net/?p=1537</guid>
		<description><![CDATA[In hindsight this seems obvious, but several Google searches did not reveal the answer so I am documenting it now in the hopes that others who are stymied by this can do something about it, too. As always if there&#8217;s a better way to do this leave me a comment. Thanks! I was being annoyed [...]

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2007/11/28/traveling-with-an-iphone-keep-the-firmware-on-your-laptop/" rel="bookmark">Traveling with an iPhone? Keep the firmware on your laptop.</a><!-- (57.934)--></li>
		<li><a href="http://lonesysadmin.net/2007/01/29/windows-vista-performance-tip-enable-write-caching/" rel="bookmark">Windows Vista Performance Tip: Enable Write Caching</a><!-- (48.3131)--></li>
		<li><a href="http://lonesysadmin.net/2007/10/04/how-to-play-podcasts-back-to-back-on-the-ipodiphone/" rel="bookmark">How to Play Podcasts Back to Back on The iPod/iPhone</a><!-- (38.0289)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p><em>In hindsight this seems obvious, but several Google searches did not reveal the answer so I am documenting it now in the hopes that others who are stymied by this can do something about it, too. As always if there&#8217;s a better way to do this leave me a comment. Thanks!</em></p>
<p><a href="http://lonesysadmin.net/wp-content/uploads/2008/09/import.png"><img class="alignnone size-full wp-image-1540" title="Vista Photo Import Dialog" src="http://lonesysadmin.net/wp-content/uploads/2008/09/import.png" alt="" width="396" height="169" /></a></p>
<p>I was being annoyed by Windows importing and tagging the photos on my iPhone, often several times per sync. I want to be able to plug my iPhone in, have it sync, and then leave. Instead I&#8217;d get &#8220;No new pictures or videos were found on this device&#8221; dialogs, requiring that I click OK. If I didn&#8217;t click OK fast enough I&#8217;d get &#8220;This device is already being used by &#8216;Windows&#8217;&#8221; as it tried syncing a second time:</p>
<p><a href="http://lonesysadmin.net/wp-content/uploads/2008/09/conflict.png"><img class="alignnone size-full wp-image-1539" title="This device already being used by Windows" src="http://lonesysadmin.net/wp-content/uploads/2008/09/conflict.png" alt="" width="466" height="257" /></a></p>
<p>Turns out the fix is easy. With your phone connected to the PC go into Control Panel, then into AutoPlay. Scroll down to the bottom, under Devices, and change the action from &#8220;Import pictures using Windows&#8221; to &#8220;Take no action&#8221; (or whatever you want it to do). Then click Save:</p>
<p><a href="http://lonesysadmin.net/wp-content/uploads/2008/09/autoplay.png"><img class="alignnone size-full wp-image-1538" title="iPhone Autoplay Settings" src="http://lonesysadmin.net/wp-content/uploads/2008/09/autoplay.png" alt="" width="500" height="386" /></a></p>
<p>That&#8217;s it. Like I said, easy to do once you know where to look.</p>
<p><hr></p><p>This post written by Bob Plankers for <a href="http://lonesysadmin.net">The Lone Sysadmin</a>. Unless otherwise noted it is &copy; 2010 Bob Plankers and licensed under the <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons BY-NC-SA 3.0 license</a>.</p><img src="http://lonesysadmin.net/?ak_action=api_record_view&id=1537&type=feed" alt="" />

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2007/11/28/traveling-with-an-iphone-keep-the-firmware-on-your-laptop/" rel="bookmark">Traveling with an iPhone? Keep the firmware on your laptop.</a><!-- (57.934)--></li>
		<li><a href="http://lonesysadmin.net/2007/01/29/windows-vista-performance-tip-enable-write-caching/" rel="bookmark">Windows Vista Performance Tip: Enable Write Caching</a><!-- (48.3131)--></li>
		<li><a href="http://lonesysadmin.net/2007/10/04/how-to-play-podcasts-back-to-back-on-the-ipodiphone/" rel="bookmark">How to Play Podcasts Back to Back on The iPod/iPhone</a><!-- (38.0289)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://lonesysadmin.net/2008/09/29/disabling-iphone-photo-import-under-windows-vista/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How To Configure Linux Serial Consoles</title>
		<link>http://lonesysadmin.net/2008/01/31/how-to-configure-linux-serial-consoles/</link>
		<comments>http://lonesysadmin.net/2008/01/31/how-to-configure-linux-serial-consoles/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 02:17:34 +0000</pubDate>
		<dc:creator>Bob Plankers</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://lonesysadmin.net/2008/01/31/how-to-configure-linux-serial-consoles/</guid>
		<description><![CDATA[Need a serial console on your Linux box, just in case something happens to the network? Yeah, me too. It&#8217;s fairly simple to get it running (at least on Red Hat Enterprise Linux 4), if you have the right steps. This is not an in-depth tutorial on serial consoles, it&#8217;s just designed to get you [...]

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2008/02/01/serial-consoles-awesome-readers/" rel="bookmark">Serial Consoles, Awesome Readers</a><!-- (65.9424)--></li>
		<li><a href="http://lonesysadmin.net/2007/06/21/how-to-configure-ipmi-on-a-dell-poweredge-running-red-hat-enterprise-linux/" rel="bookmark">How to Configure IPMI on a Dell PowerEdge running Red Hat Enterprise Linux</a><!-- (47.3039)--></li>
		<li><a href="http://lonesysadmin.net/2009/12/11/recover-ipod-iphone-serial-numbers-from-itunes/" rel="bookmark">Recover iPod &#038; iPhone Serial Numbers from iTunes</a><!-- (29.6369)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>Need a serial console on your Linux box, just in case something happens to the network? Yeah, me too. It&#8217;s fairly simple to get it running (at least on Red Hat Enterprise Linux 4), if you have the right steps.</p>
<p>This is not an in-depth tutorial on serial consoles, it&#8217;s just designed to get you moving faster. I assume you know how to install packages, edit files, etc., or are at least resourceful enough to figure it out. I also assume you&#8217;re s-m-r-t enough to try this on a machine you can get to easily, if you mess it up the first time.</p>
<p>On newer machines there are often BIOS serial redirection options, too, which might be useful. Conveniently, check your BIOS! :-)</p>
<p>1. Figure out what speed your terminal server wants to go, as well as the number of data, parity, and stop bits. 9600 is a common default, and the other parameters are often 8, N, and 1. Faster speeds generally mean it&#8217;s less annoying to work on them, but it has to be set the same on both sides, and you can go too fast for the cables you have.</p>
<p>You can verify the settings with &#8220;/usr/bin/screen /dev/ttyS0&#8243; (as suggested by <a href="http://rejectreality.net/">Greg</a> in the comments), or /usr/bin/minicom (installed as the &#8220;minicom&#8221; package from Red Hat). If you ever used Telix for DOS you&#8217;ll be right at home with minicom. Hit Ctrl-A, then O to get to the configuration menu. Once it is set up properly you should be able to type in Minicom and have it appear on the terminal server, and vice versa. Don&#8217;t go on until you can do that.</p>
<p>/dev/ttyS0 is COM1, /dev/ttyS1 is COM2, etc.</p>
<p>From here on out replace 9600, 8N1, and ttyS0 in my examples with the right parameters for your setup.</p>
<p>2. Add the following to /etc/inittab, remembering to substitute the right serial port, and the terminal type you want:</p>
<p><code># Serial Console Access<br />
S0:2345:respawn:/sbin/agetty ttyS0 9600 vt100</code></p>
<p>Have &#8216;init&#8217; reread inittab by issuing the command &#8220;sudo /sbin/telinit q&#8221; and you should be able to see something via the terminal server. You might need to hit enter a couple of times to get its attention.</p>
<p>3. If you want to see stuff at boot, edit /etc/grub.conf. Add the following, substituting the proper serial port in &#8220;unit&#8221;:</p>
<p><code>serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1<br />
terminal --timeout=10 serial console</code></p>
<p>(two lines, &#8220;serial&#8221; and &#8220;terminal,&#8221; if it wraps)</p>
<p>4. Comment out any line in /etc/grub.conf that starts with &#8220;splashimage.&#8221; The splash image doesn&#8217;t work so well with character-only interfaces.</p>
<p>5. Add &#8220;console=ttyS0,9600n8&#8243; to the proper kernel entry in /etc/grub.conf. So your original entry:</p>
<p><code>title Red Hat Enterprise Linux AS (2.6.9-67.EL)<br />
&nbsp;&nbsp;root (hd0,0)<br />
&nbsp;&nbsp;kernel /vmlinuz-2.6.9-67.EL ro root=/dev/sda1 rhgb quiet<br />
&nbsp;&nbsp;initrd /initrd-2.6.9-67.EL.img<br />
</code><br />
becomes something like:</p>
<p><code>title Red Hat Enterprise Linux AS (2.6.9-67.EL)<br />
&nbsp;&nbsp;root (hd0,0)<br />
&nbsp;&nbsp;kernel /vmlinuz-2.6.9-67.EL ro root=/dev/sda1 rhgb quiet console=ttyS0,9600n8<br />
&nbsp;&nbsp;initrd /initrd-2.6.9-67.EL.img</code></p>
<p>(that&#8217;s four lines if it&#8217;s wrapping)</p>
<p>6. Reboot and check it out. Party like it&#8217;s 1989.</p>
<p>If it isn&#8217;t working you&#8217;ll have to comment out the inittab line and &#8220;telinit q&#8221; again to free up the serial port, before you try Minicom or screen.</p>
<p>If I have messed something up here let me know in the comments. Thanks!</p>
<p><hr></p><p>This post written by Bob Plankers for <a href="http://lonesysadmin.net">The Lone Sysadmin</a>. Unless otherwise noted it is &copy; 2010 Bob Plankers and licensed under the <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons BY-NC-SA 3.0 license</a>.</p><img src="http://lonesysadmin.net/?ak_action=api_record_view&id=1094&type=feed" alt="" />

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2008/02/01/serial-consoles-awesome-readers/" rel="bookmark">Serial Consoles, Awesome Readers</a><!-- (65.9424)--></li>
		<li><a href="http://lonesysadmin.net/2007/06/21/how-to-configure-ipmi-on-a-dell-poweredge-running-red-hat-enterprise-linux/" rel="bookmark">How to Configure IPMI on a Dell PowerEdge running Red Hat Enterprise Linux</a><!-- (47.3039)--></li>
		<li><a href="http://lonesysadmin.net/2009/12/11/recover-ipod-iphone-serial-numbers-from-itunes/" rel="bookmark">Recover iPod &#038; iPhone Serial Numbers from iTunes</a><!-- (29.6369)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://lonesysadmin.net/2008/01/31/how-to-configure-linux-serial-consoles/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to Install a tftp Server on Red Hat Enterprise Linux</title>
		<link>http://lonesysadmin.net/2007/10/29/how-to-install-a-tftp-server-on-red-hat-enterprise-linux/</link>
		<comments>http://lonesysadmin.net/2007/10/29/how-to-install-a-tftp-server-on-red-hat-enterprise-linux/#comments</comments>
		<pubDate>Mon, 29 Oct 2007 16:18:30 +0000</pubDate>
		<dc:creator>Bob Plankers</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://lonesysadmin.net/2007/10/29/how-to-install-a-tftp-server-on-red-hat-enterprise-linux/</guid>
		<description><![CDATA[I install a tftp server about once every three years. As such I never remember what needs to happen, and this time a Google search didn&#8217;t have a nice answer for me. So, as my latest contribution to the world of HOWTOs, I present the non-idiot&#8217;s concise guide to installing and configuring a tftp server. [...]

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2007/07/31/how-to-install-clamav-on-red-hat-enterprise-linux/" rel="bookmark">How To Install ClamAV On Red Hat Enterprise Linux</a><!-- (62.8576)--></li>
		<li><a href="http://lonesysadmin.net/2007/06/21/how-to-configure-ipmi-on-a-dell-poweredge-running-red-hat-enterprise-linux/" rel="bookmark">How to Configure IPMI on a Dell PowerEdge running Red Hat Enterprise Linux</a><!-- (37.1976)--></li>
		<li><a href="http://lonesysadmin.net/2006/09/27/tivoli-storage-manager-on-esx-server-30/" rel="bookmark">Tivoli Storage Manager on ESX Server 3.0</a><!-- (24.9802)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>I install a tftp server about once every three years. As such I never remember what needs to happen, and this time a Google search didn&#8217;t have a nice answer for me. So, as my latest contribution to the world of HOWTOs, I present the non-idiot&#8217;s concise guide to installing and configuring a tftp server.</p>
<p>As always if you have suggestions or corrections just add them as comments, and I&#8217;ll update the text here.</p>
<p>This will give you the default /tftpboot directory. I assume that if you need a filesystem there you can handle adding one there on your own. :-) If you want to change the filesystem you can do that in /etc/xinetd.d/tftp, in the server_args field. Don&#8217;t forget to reload xinetd after you change it.</p>
<p>1. Install the tftp server software and enable it:</p>
<p><code>/usr/bin/up2date tftp-server<br />
/sbin/chkconfig tftp on</code></p>
<p>3. Because it runs via xinetd reload that to pick up the configuration file change:</p>
<p><code>/sbin/service xinetd reload</code></p>
<p>4. Edit /etc/sysconfig/iptables-config and edit the IPTABLES_MODULES line to read:</p>
<p><code>IPTABLES_MODULES="ip_conntrack_tftp"</code></p>
<p>If you already have something in that line just add the new module with a space as a delimiter, like:</p>
<p><code>IPTABLES_MODULES="ip_conntrack_ftp ip_conntrack_tftp"</code></p>
<p>5. Add firewall rules to /etc/sysconfig/iptables. You probably only need UDP, though I always add the TCP rules, too (they&#8217;re both listed in /etc/services for port 69):</p>
<p><code>-A RH-Firewall-1-INPUT -s 10.1.0.0/16 -m tcp -p tcp --dport 69 -j ACCEPT<br />
-A RH-Firewall-1-INPUT -s 10.1.0.0/16 -m udp -p udp --dport 69 -j ACCEPT</code></p>
<p>(two lines here if it&#8217;s wrapping)</p>
<p>6. Restart iptables to pick up the changes from steps 4 and 5:</p>
<p><code>/sbin/service iptables restart</code></p>
<p>7. Add the proper lines to /etc/hosts.allow:</p>
<p><code>in.tftpd: 10.1.</code></p>
<p>8. Put something in /tftpboot to retrieve with a client, for testing.</p>
<p>9. Use a client from an allowed IP range to test:</p>
<p><code>$ tftp my.tftp.server.com<br />
tftp> get filename.bin<br />
</code></p>
<p>9. If you get an error check /var/log/secure and /var/log/messages on the server, and start eliminating potential problems one at a time (disable iptables, put ALL in hosts.allow, etc.) until you find the problem.</p>
<p>Have fun!</p>
<p><hr></p><p>This post written by Bob Plankers for <a href="http://lonesysadmin.net">The Lone Sysadmin</a>. Unless otherwise noted it is &copy; 2010 Bob Plankers and licensed under the <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons BY-NC-SA 3.0 license</a>.</p><img src="http://lonesysadmin.net/?ak_action=api_record_view&id=939&type=feed" alt="" />

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2007/07/31/how-to-install-clamav-on-red-hat-enterprise-linux/" rel="bookmark">How To Install ClamAV On Red Hat Enterprise Linux</a><!-- (62.8576)--></li>
		<li><a href="http://lonesysadmin.net/2007/06/21/how-to-configure-ipmi-on-a-dell-poweredge-running-red-hat-enterprise-linux/" rel="bookmark">How to Configure IPMI on a Dell PowerEdge running Red Hat Enterprise Linux</a><!-- (37.1976)--></li>
		<li><a href="http://lonesysadmin.net/2006/09/27/tivoli-storage-manager-on-esx-server-30/" rel="bookmark">Tivoli Storage Manager on ESX Server 3.0</a><!-- (24.9802)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://lonesysadmin.net/2007/10/29/how-to-install-a-tftp-server-on-red-hat-enterprise-linux/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How To Use A Linksys Router to Bridge</title>
		<link>http://lonesysadmin.net/2007/09/04/how-to-use-a-linksys-router-to-bridge/</link>
		<comments>http://lonesysadmin.net/2007/09/04/how-to-use-a-linksys-router-to-bridge/#comments</comments>
		<pubDate>Tue, 04 Sep 2007 17:21:12 +0000</pubDate>
		<dc:creator>Bob Plankers</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://lonesysadmin.net/2007/09/04/how-to-use-a-linksys-router-to-bridge/</guid>
		<description><![CDATA[Do you want to use your Linksys wireless access point &#038; router to bridge another wired network to wireless? There isn&#8217;t a mode for it in the Linksys setup. There are firmware hacks, but those are another thing completely. My simple suggestion: instead of using the WAN port for the router&#8217;s uplink, just plug the [...]

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/terms-of-use/" rel="bookmark">Terms of Use</a><!-- (69.2905)--></li>
		<li><a href="http://lonesysadmin.net/2008/12/01/license-changes/" rel="bookmark">License Changes</a><!-- (47.6057)--></li>
		<li><a href="http://lonesysadmin.net/2008/02/16/creative-commons/" rel="bookmark">Creative Commons</a><!-- (46.5517)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>Do you want to use your Linksys wireless access point &#038; router to bridge another wired network to wireless?</p>
<p>There isn&#8217;t a mode for it in the Linksys setup. There are firmware hacks, but those are another thing completely.</p>
<p>My simple suggestion: instead of using the WAN port for the router&#8217;s uplink, <strong>just plug the uplink into one of the switch ports on the Linksys</strong>. Ta-dum! Instant bridging.</p>
<p><hr></p><p>This post written by Bob Plankers for <a href="http://lonesysadmin.net">The Lone Sysadmin</a>. Unless otherwise noted it is &copy; 2010 Bob Plankers and licensed under the <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons BY-NC-SA 3.0 license</a>.</p><img src="http://lonesysadmin.net/?ak_action=api_record_view&id=854&type=feed" alt="" />

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/terms-of-use/" rel="bookmark">Terms of Use</a><!-- (69.2905)--></li>
		<li><a href="http://lonesysadmin.net/2008/12/01/license-changes/" rel="bookmark">License Changes</a><!-- (47.6057)--></li>
		<li><a href="http://lonesysadmin.net/2008/02/16/creative-commons/" rel="bookmark">Creative Commons</a><!-- (46.5517)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://lonesysadmin.net/2007/09/04/how-to-use-a-linksys-router-to-bridge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Install ClamAV On Red Hat Enterprise Linux</title>
		<link>http://lonesysadmin.net/2007/07/31/how-to-install-clamav-on-red-hat-enterprise-linux/</link>
		<comments>http://lonesysadmin.net/2007/07/31/how-to-install-clamav-on-red-hat-enterprise-linux/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 16:48:08 +0000</pubDate>
		<dc:creator>Bob Plankers</dc:creator>
				<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://lonesysadmin.net/2007/07/31/how-to-install-clamav-on-red-hat-enterprise-linux/</guid>
		<description><![CDATA[Want to install ClamAV on your Red Hat Enterprise Linux, CentOS, or Fedora Core box? Their documentation is pretty darn easy to follow, but this fills in some of the missing pieces for RHEL. clamd is the scanning daemon, clamav-milter is the milter, and freshclam is the process that updates the virus definitions. All the [...]

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2007/10/29/how-to-install-a-tftp-server-on-red-hat-enterprise-linux/" rel="bookmark">How to Install a tftp Server on Red Hat Enterprise Linux</a><!-- (60.033)--></li>
		<li><a href="http://lonesysadmin.net/2007/06/21/how-to-configure-ipmi-on-a-dell-poweredge-running-red-hat-enterprise-linux/" rel="bookmark">How to Configure IPMI on a Dell PowerEdge running Red Hat Enterprise Linux</a><!-- (47.9031)--></li>
		<li><a href="http://lonesysadmin.net/2008/01/31/how-to-configure-linux-serial-consoles/" rel="bookmark">How To Configure Linux Serial Consoles</a><!-- (25.7345)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>Want to install ClamAV on your Red Hat Enterprise Linux, CentOS, or Fedora Core box? Their documentation is pretty darn easy to follow, but this fills in some of the missing pieces for RHEL.  </p>
<p>clamd is the scanning daemon, clamav-milter is the milter, and freshclam is the process that updates the virus definitions.</p>
<p>All the commands, in Courier font, should be on one line if they happen to wrap.</p>
<ol>
<li>Install gmp, gmp-devel, sendmail, sendmail-cf, sendmail-devel, zlib, zlib-devel, bzip2, bzip2-devel.</li>
<li>Get the sendmail source from sendmail.org. Extract it, go into the libmilter subdirectory. Run &quot;make&quot; and &quot;make install&quot;. That will install libmilter into /usr, where sendmail can find it. No need to build the whole sendmail.</li>
<li><code>groupadd clamav</code></li>
<li><code>useradd -g clamav -s /bin/false -c &quot;Clam AntiVirus&quot; clamav</code></li>
<li>Get the ClamAV source, extract it, build it, install it (three lines, two are make):
<p><code>./configure --prefix=/usr/local/clamav --disable-zlib-vcheck --enable-milter<br />
make<br />
make install</code></li>
<li>Configure /usr/local/clamav/etc/clamd.conf. I changed the following:
<p><code># Example<br />
    LogTime: yes<br />
    LogSyslog yes<br />
    LogFacility LOG_MAIL<br />
    PidFile /var/run/clamav/clamd.pid<br />
    TemporaryDirectory /tmp<br />
    LocalSocket /var/run/clamav/clamd.socket<br />
    FixStaleSocket yes<br />
    User clamav</code></p>
<p>    I chose to have it log via syslog to the mail facility. Why? Because I&#8217;m lazy and that log gets rotated already. One less thing to have to change &amp; worry about. If you are high-traffic you might want to have logrotate rotate /var/log/maillog daily.</p>
</li>
<li>Configure /usr/local/clamav/etc/freshclam.conf. I changed the following:
<p><code># Example<br />
    LogSyslog yes<br />
    LogFacility LOG_MAIL<br />
    PidFile /var/run/clamav/freshclam.pid<br />
    DatabaseMirror db.us.clamav.net<br />
    NotifyClamd /usr/local/clamav/etc/clamd.conf<br />
    </code></p>
</li>
<li><code>mkdir /var/run/clamav</code></li>
<li><code>chown clamav.clamav /var/run/clamav</code>/</li>
<li><code>chmod 700 /var/run/clamav</code></li>
<li>Start the base services to make sure they work. You may want to &quot;tail -f /var/log/maillog&quot; while you&#8217;re doing this:
<p><code>/usr/local/clamav/sbin/clamd<br />
    /usr/local/clamav/bin/freshclam -d</code></p>
</li>
<li>Configure the milter. Add the following to /etc/mail/sendmail.mc right before the <font face="Courier New">MAILER(smtp)dnl</font> line. It&#8217;s two lines, the second beginning with &#8220;define&#8221;:
<p>    <font face="Courier New">INPUT_MAIL_FILTER(`clamav&#8217;, `S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m;C:30s;E:10m&#8217;)dnl<br />
    define(`confINPUT_MAIL_FILTERS&#8217;, `clamav&#8217;)<br />
    </font></li>
<li>Make the new sendmail.cf by issuing a &quot;<font face="Courier New">make -C /etc/mail</font>&quot; command.</li>
<li>Start the milter process to test it:
<p>    <font face="Courier New">/usr/local/clamav/sbin/clamav-milter -lo /var/run/clamav/clmilter.sock</p>
<p>    </font></li>
<li>Restart sendmail to make it pick up the configuration changes (<font face="Courier New">service sendmail restart</font>).</li>
<li>Send a test email. If everything works make sure you set the services to start at boot, either with the init script that is in the ClamAV contrib directory or just by adding lines to /etc/rc.local.</li>
</ol>
<p><hr></p><p>This post written by Bob Plankers for <a href="http://lonesysadmin.net">The Lone Sysadmin</a>. Unless otherwise noted it is &copy; 2010 Bob Plankers and licensed under the <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons BY-NC-SA 3.0 license</a>.</p><img src="http://lonesysadmin.net/?ak_action=api_record_view&id=795&type=feed" alt="" />

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2007/10/29/how-to-install-a-tftp-server-on-red-hat-enterprise-linux/" rel="bookmark">How to Install a tftp Server on Red Hat Enterprise Linux</a><!-- (60.033)--></li>
		<li><a href="http://lonesysadmin.net/2007/06/21/how-to-configure-ipmi-on-a-dell-poweredge-running-red-hat-enterprise-linux/" rel="bookmark">How to Configure IPMI on a Dell PowerEdge running Red Hat Enterprise Linux</a><!-- (47.9031)--></li>
		<li><a href="http://lonesysadmin.net/2008/01/31/how-to-configure-linux-serial-consoles/" rel="bookmark">How To Configure Linux Serial Consoles</a><!-- (25.7345)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://lonesysadmin.net/2007/07/31/how-to-install-clamav-on-red-hat-enterprise-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Configure IPMI on a Dell PowerEdge running Red Hat Enterprise Linux</title>
		<link>http://lonesysadmin.net/2007/06/21/how-to-configure-ipmi-on-a-dell-poweredge-running-red-hat-enterprise-linux/</link>
		<comments>http://lonesysadmin.net/2007/06/21/how-to-configure-ipmi-on-a-dell-poweredge-running-red-hat-enterprise-linux/#comments</comments>
		<pubDate>Fri, 22 Jun 2007 01:58:01 +0000</pubDate>
		<dc:creator>Bob Plankers</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://lonesysadmin.net/2007/06/21/how-to-configure-ipmi-on-a-dell-poweredge-running-red-hat-enterprise-linux/</guid>
		<description><![CDATA[This is intended to help fairly knowledgeable people get IPMI working on their hosts so they can issue remote commands to their hardware. I focus on Red Hat Enterprise Linux on a Dell, but it is likely to work on other hosts, distributions, and OSes, too. This works for me on Dell PowerEdge 1850, PowerEdge [...]

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2005/09/23/configuring-and-securing-ipmi-on-dell-poweredge-x8xx-hardware/" rel="bookmark">Configuring and Securing IPMI on Dell PowerEdge x8xx Hardware</a><!-- (128.705)--></li>
		<li><a href="http://lonesysadmin.net/2009/03/24/not-running-vmware-capacity-planner-as-root-on-linux/" rel="bookmark">Not Running VMware Capacity Planner as root on Linux</a><!-- (60.9019)--></li>
		<li><a href="http://lonesysadmin.net/2007/07/31/how-to-install-clamav-on-red-hat-enterprise-linux/" rel="bookmark">How To Install ClamAV On Red Hat Enterprise Linux</a><!-- (43.4666)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>This is intended to help fairly knowledgeable people get IPMI working on their hosts so they can issue remote commands to their hardware. I focus on Red Hat Enterprise Linux on a Dell, but it is likely to work on other hosts, distributions, and OSes, too. This works for me on Dell PowerEdge 1850, PowerEdge 2850, Dell PowerEdge 1950, and Dell PowerEdge 2950 hardware.</p>
<p>Dell PowerEdge 1650, 2650, and 1750 servers have an older implementation of IPMI which will let you issue commands locally, but not to these models over the network.</p>
<p><strong>Before you begin</strong>:</p>
<p>The Baseboard Management Controller (BMC) is the thing that implements IPMI. It piggybacks on the first built-in NIC so you have to have that attached to the network on the hosts you wish to manage. It uses its own IP address (so you need an extra one).</p>
<p>If you are new to this get a server that is nearby to act as your test machine. Most of the IPMI commands that shut the host down also kill the BMC. If that happens you&#8217;ll need to go power the machine on manually. Until you figure out exactly what is okay and what isn&#8217;t you&#8217;ll be pushing the power button a lot.</p>
<p>You will need a Linux host to send the IPMI commands from. Undoubtedly there are ways to send these commands from other operating systems, but as I am a Linux guy I&#8217;ll use that as my example. Feel free to post comments addressing other OSes.</p>
<p><strong>Getting the OS prepared</strong>:</p>
<p>1) Install IPMItool and the startup scripts. On Red Hat Enterprise Linux install the OpenIPMI, OpenIPMI-tools, OpenIPMI-libs, and OpenIPMI-devel packages. That will get you everything you need. There are similar packages available for other distributions (SuSE, Ubuntu, CentOS, etc.). You&#8217;ll need IPMItool on any machine you want to configure, and any machine you want to send commands from.</p>
<p>2) Enable the IPMI service:</p>
<p><code>/sbin/chkconfig ipmi on</code></p>
<p>3) Start the IPMI service, which will load the kernel modules for you:</p>
<p><code>/sbin/service ipmi start</code></p>
<p><strong>Configure the BMC for Remote Usage</strong>:</p>
<p>1) There are two ways to configure the BMC. You can configure it through the boot-time menu (Ctrl-E), where you can set the management password and IP address information. Or, you can configure it with ipmitool from the OS. Replace my sample IP address, gateway, and netmask with your own:</p>
<p><code>/usr/bin/ipmitool -I open lan set 1 ipaddr 192.168.40.88<br />
/usr/bin/ipmitool -I open lan set 1 defgw ipaddr 192.168.40.1<br />
/usr/bin/ipmitool -I open lan set 1 netmask 255.255.255.0<br />
/usr/bin/ipmitool -I open lan set 1 access on<br />
</code></p>
<p>2) Secure the BMC, so unauthorized people can&#8217;t power cycle your machines. To do this you want to change the default SNMP community, the &#8220;null&#8221; user password, and the root user password. First, set the SNMP community, either to a random string or something you know:</p>
<p><code>/usr/bin/ipmitool -I open lan set 1 snmp YOURSNMPCOMMUNITY</code></p>
<p>Then set the null user password to something random. Replace CRAPRANDOMSTRING with something random and secure:</p>
<p><code>/usr/bin/ipmitool -I open lan set 1 password CRAPRANDOMSTRING</code></p>
<p>Last, set the root user password to something you know:</p>
<p><code>/usr/bin/ipmitool -I open user set password 2 REMEMBERTHIS</code></p>
<p>Double-check your settings with:</p>
<p><code>/usr/bin/ipmitool -I open lan print 1</code></p>
<p>Trying it:</p>
<p>1) You can set an environment variable, IPMI_PASSWORD, with the password you used above. That will save some typing:</p>
<p><code>export IPMI_PASSWORD="REMEMBERTHIS"</code></p>
<p>If you use this substitute the &#8220;-a&#8221; in the following commands with a &#8220;-E&#8221;.</p>
<p>2) From another machine issue the following command, obviously replacing the IP with the target BMC&#8217;s IP:</p>
<p><code>/usr/bin/ipmitool -I lan -U root -H 192.168.40.88 -a chassis power status</code></p>
<p>You should get something like:</p>
<p><code>Chassis Power is on</code></p>
<p>If you get anything else, or nothing, double-check to make sure the BMC is set right, you entered the right password, and the IP it has is reachable from the machine you’re on. You can double-check your work via the Ctrl-E boot menu, too.</p>
<p>Beyond that, get familiar with:</p>
<p><code>/usr/bin/ipmitool -I lan -U root -H 192.168.40.88 -a chassis power off</code></p>
<p><code>/usr/bin/ipmitool -I lan -U root -H 192.168.40.88 -a chassis power cycle<br />
</code><br />
<code>/usr/bin/ipmitool -I lan -U root -H 192.168.40.88 -a sel list<br />
</code><br />
For me, a &#8220;chassis power off&#8221; command kills the box. &#8220;SEL&#8221; is the system event log.</p>
<p>You can issue all of these commands locally, too:</p>
<p><code>/usr/bin/ipmitool sel list</code></p>
<p>Hopefully this helps a little. If you find any errors in this please leave me a comment or send me an email. Thanks!</p>
<p><hr></p><p>This post written by Bob Plankers for <a href="http://lonesysadmin.net">The Lone Sysadmin</a>. Unless otherwise noted it is &copy; 2010 Bob Plankers and licensed under the <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons BY-NC-SA 3.0 license</a>.</p><img src="http://lonesysadmin.net/?ak_action=api_record_view&id=724&type=feed" alt="" />

<h3>Related Posts</h3>
<ol>
		<li><a href="http://lonesysadmin.net/2005/09/23/configuring-and-securing-ipmi-on-dell-poweredge-x8xx-hardware/" rel="bookmark">Configuring and Securing IPMI on Dell PowerEdge x8xx Hardware</a><!-- (128.705)--></li>
		<li><a href="http://lonesysadmin.net/2009/03/24/not-running-vmware-capacity-planner-as-root-on-linux/" rel="bookmark">Not Running VMware Capacity Planner as root on Linux</a><!-- (60.9019)--></li>
		<li><a href="http://lonesysadmin.net/2007/07/31/how-to-install-clamav-on-red-hat-enterprise-linux/" rel="bookmark">How To Install ClamAV On Red Hat Enterprise Linux</a><!-- (43.4666)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://lonesysadmin.net/2007/06/21/how-to-configure-ipmi-on-a-dell-poweredge-running-red-hat-enterprise-linux/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
