<?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>cyborgworkshop.org</title>
	<atom:link href="http://cyborgworkshop.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://cyborgworkshop.org</link>
	<description>Blurring the line</description>
	<lastBuildDate>Wed, 25 Aug 2010 16:53:34 +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>Get the PID of an application pool in iis 6.0</title>
		<link>http://cyborgworkshop.org/2010/08/25/get-the-pid-of-an-application-pool-in-iis-6-0/</link>
		<comments>http://cyborgworkshop.org/2010/08/25/get-the-pid-of-an-application-pool-in-iis-6-0/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 16:52:49 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Best Tools]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://cyborgworkshop.org/?p=641</guid>
		<description><![CDATA[All of the IIS process&#8217;s show up as the same process name, which makes it really challenging to figure out which of your websites has lost it&#8217;s mind.  In order to trace an IIS website or application pool back to a PID, you just need to open a command prompt and run the iisapp utility. [...]]]></description>
			<content:encoded><![CDATA[<p>All of the IIS process&#8217;s show up as the same process name, which makes it really challenging to figure out which of your websites has lost it&#8217;s mind.  In order to trace an IIS website or application pool back to a PID, you just need to open a command prompt and run the iisapp utility.<br />
<code><br />
iisapp<br />
</code><br />
Outputs<br />
W3WP.exe PID: 7424   AppPoolId: Site1<br />
W3WP.exe PID: 8096   AppPoolId: JoesSite<br />
W3WP.exe PID: 13080   AppPoolId: Wookielove.com</p>
<p>And now you can just use taskmanager to track resource usage to a site. </p>
]]></content:encoded>
			<wfw:commentRss>http://cyborgworkshop.org/2010/08/25/get-the-pid-of-an-application-pool-in-iis-6-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling SNMP on an ESXi 4 free edition</title>
		<link>http://cyborgworkshop.org/2010/08/01/enabling-snmp-on-an-esxi-4-free-edition/</link>
		<comments>http://cyborgworkshop.org/2010/08/01/enabling-snmp-on-an-esxi-4-free-edition/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 18:05:05 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://cyborgworkshop.org/?p=633</guid>
		<description><![CDATA[ESXi doesn&#8217;t include a lot of the management functions that the licensed product carries (see my previous post on doing backups in ESXi) but most of those functions are already installed, just disabled.   Here is how to enable SNMP queries and traps on an ESXi server. Enable ssh on your server I&#8217;m assuming you have [...]]]></description>
			<content:encoded><![CDATA[<p>ESXi doesn&#8217;t include a lot of the management functions that the licensed product carries (see my previous post on doing <a href="http://cyborgworkshop.org/2010/07/31/backing-up-an-esxi-4-server/">backups in ESXi</a>) but most of those functions are already installed, just disabled.   Here is how to enable SNMP queries and traps on an ESXi server.</p>
<ol>
<li><a href="http://www.vm-help.com/esx40i/ESXi_enable_SSH.php">Enable ssh</a> on your server</li>
<li>I&#8217;m assuming you have already licensed your server, we&#8217;re going to need to back that out so ssh to the server as root</li>
<li>run the following commands</li>
<p><code>mv /etc/vmware/vmware.lic /etc/vmware/vmware.lic.orig<br />
mv /etc/vmware/license.cfg /etc/vmware/license.cfg.orig<br />
services.sh restart<br />
</code></p>
<li>That will temporarily put you back into an eval license, you will be disconnected from your vsphere client while the services restart</li>
<li>Now you need access to the ESX remote command line. You can do that by either downloading and installing the <a href="http://www.vmware.com/downloads/eula.do">appliance</a> or you can install it locally on your machine.</li>
<li>Configure SNMP for your environment. -c is the snmp community you want to set for queries and -t is the trap destination</li>
<p><code>vicfg-snmp.pl –server 192.168.1.1 -c public -t 192.168.1.2@162/public</code></p>
<li>enable snmp</li>
<p><code>vicfg-snmp.pl –server 192.168.1.1 -E</code></p>
<li>Test your new snmp config</li>
<p><code>vicfg-snmp –server 192.168.1.1 -T </code></p>
<li> and lastly, download the <a href="http://downloads.vmware.com/d/details/esx40_snmp_mib_dt/ZHcqYmQqaCViZHdlZQ==">snmp MIBs</a> for your management platform</li>
<li>Now move your license keys back</li>
<p>         <code>mv /etc/vmware/vmware.lic.orig /etc/vmware/vmware.lic<br />
mv /etc/vmware/license.cfg.orig /etc/vmware/license.cfg<br />
services.sh restart
</ol>
<p>And that's it, you have snmp queries and traps on your ESXi server now. </p>
]]></content:encoded>
			<wfw:commentRss>http://cyborgworkshop.org/2010/08/01/enabling-snmp-on-an-esxi-4-free-edition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing up an ESXi 4 server</title>
		<link>http://cyborgworkshop.org/2010/07/31/backing-up-an-esxi-4-server/</link>
		<comments>http://cyborgworkshop.org/2010/07/31/backing-up-an-esxi-4-server/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 15:21:17 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://cyborgworkshop.org/?p=630</guid>
		<description><![CDATA[ESXi is one of my favorite products on the market and is really excellent for home use. It&#8217;s missing out on a few enterprise features like SNMP (I&#8217;ll show you how to get around that in a later post) but is otherwise very complete. I had previously been using a separate storage server using iscsi [...]]]></description>
			<content:encoded><![CDATA[<p>ESXi is one of my favorite products on the market and is really excellent for home use.  It&#8217;s missing out on a few enterprise features like SNMP (I&#8217;ll show you how to get around that in a later post) but is otherwise very complete.  I had previously been using a separate storage server using iscsi for my vmfs, but the dependency of the two boxes kept me from shutting down either server as needed. So, I converted everything back to local SATA storage (another post) and went on a hunt for how to backup my VMDKs.  My iSCSI SAN had dual power supplies, 2 hot standby drives and I could do snapshot based backups whenever I wanted. My ESXi server has two SATA drives, one power supply and no easy way to backup. Enter <a href="http://communities.vmware.com/docs/DOC-8760">GhettoVCB</a>. <a href="http://communities.vmware.com/docs/DOC-8760">GhettoVCB</a> is a brilliant little shell script that runs on the ESXi server and performs backups of your vms using snapshots that can be stored on local, attached or network storage.  Getting <a href="http://communities.vmware.com/docs/DOC-8760">GhettoVCB</a> up and running isn&#8217;t difficult at all, you just need to make sure you have a few things in place first.</p>
<ul>
<li>A place to store the backups (NFS, iSCSI, Local storage and potentially DAS)</li>
<li>Decide how many backups you want to have available</li>
<li>Decide How you want to store the files (thin, thick, etc) This consideration will impact how many backups you have available because of the different space requirements.</li>
<li>And lastly when you want your backups to run.</li>
</ul>
<p>I&#8217;ve decided to take thin copies of my vmdks at midnight every night and store them on an NFS share with 5 backups available before the older ones get replaced.  I&#8217;m not going to try to replicate the excellent instructions that already exist for <a href="http://communities.vmware.com/docs/DOC-8760">GhettoVCB</a>,  but here is how I did it.</p>
<ol>
<li>Create an NFS mount on my <a href="https://help.ubuntu.com/community/SettingUpNFSHowTo">NFS server</a> with the following options</li>
<p><code>/mnt/raid5/VMWare       10.0.0.0/24(rw,async,all_squash,anonuid=99,anongid=99)</code></p>
<li>Mount the NFS share in vSphere and call it Backups</li>
<li><a href="http://www.vm-help.com/esx40i/ESXi_enable_SSH.php">enable ssh </a>on your ESXi server</li>
<li>scp ghettovcb.tar.gz to your ESXi server</li>
<li>untar ghettovcb.tar.gz to /usr/ghettovcb</li>
<li>edit ghettoVCB.sh and change VM_BACKUP_VOLUME to be VM_BACKUP_VOLUME=/vmfs/volumes/Backups</li>
<li>edit DISK_BACKUP_FORMAT to be DISK_BACKUP_FORMAT=thin</li>
<li>edit VM_BACKUP_ROTATION_COUNT to VM_BACKUP_ROTATION_COUNT=5</li>
<li>edit EMAIL_LOG to EMAIL_LOG=0  unless you want to setup logs to be emailed to you.</li>
<li>edit cron by running this command</li>
<p><code>echo "0 6 * * * /usr/ghettoVCB/ghettoVCB.sh -a &gt; /var/log/ghettoVCB-backup-$(date +\%s).log" &gt;&gt; /var/spool/cron/crontabs/root<br />
kill $(cat /var/run/crond.pid)<br />
busybox crond </code></p>
<li>My cron is set for 6am because my clock is set to UTC, to 6am is midnight for me</li>
<li>Wait until midnight for the cron to run or run it by hand yourself.</li>
</ol>
<p>Logs will be stored in /var/log/  .  I&#8217;m backing up 8 VMs in roughly an hour using about 60GB of space (thin provisioned) and have tested restores successfully. Good luck and let me know if you have any issues!</p>
]]></content:encoded>
			<wfw:commentRss>http://cyborgworkshop.org/2010/07/31/backing-up-an-esxi-4-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get a windows hostname from an IP using netbios</title>
		<link>http://cyborgworkshop.org/2010/07/23/get-a-windows-hostname-from-an-ip-using-netbios/</link>
		<comments>http://cyborgworkshop.org/2010/07/23/get-a-windows-hostname-from-an-ip-using-netbios/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 13:35:15 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://cyborgworkshop.org/?p=627</guid>
		<description><![CDATA[I&#8217;ve run into a situation a couple of times now where DNS hasn&#8217;t been setup correctly and I have no idea what hostname an IP resolves to. For better or worse, windows has the netbios system that keeps it&#8217;s own naming services and can be queried from the command line using nbtstat. nbtstat -A XXX.XXX.XXX.XXX [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve run into a situation a couple of times now where DNS hasn&#8217;t been setup correctly and I have no idea what hostname an IP resolves to.  For better or worse, windows has the netbios system that keeps it&#8217;s own naming services and can be queried from the command line using nbtstat.<br />
<code><br />
nbtstat -A XXX.XXX.XXX.XXX<br />
</code><br />
Where XXX is the IP address that you are trying to resolve. </p>
]]></content:encoded>
			<wfw:commentRss>http://cyborgworkshop.org/2010/07/23/get-a-windows-hostname-from-an-ip-using-netbios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WHIA goal achieved</title>
		<link>http://cyborgworkshop.org/2010/06/17/whia-goal-achieved/</link>
		<comments>http://cyborgworkshop.org/2010/06/17/whia-goal-achieved/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 02:55:49 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cyborgworkshop.org/2010/06/17/whia-goal-achieved/</guid>
		<description><![CDATA[Right as I started rebuilding WHIA, I realized my goal had been achieved. My loft was now within 2 degrees of my main floor at all times and humidity was flat across the house, excluding the basement! What was the magic bullet you ask? I killed all of the return vents on the main floor [...]]]></description>
			<content:encoded><![CDATA[<p>Right as I started rebuilding WHIA, I realized my goal had been achieved.  My loft was now within 2 degrees of my main floor at all times and humidity was flat across the house, excluding the basement!  What was the magic bullet you ask?  I killed all of the return vents on the main floor forcing return air to only come from upstairs and then installed a 70 inch (!) ceiling fan on the main floor pushing air up into the upstairs.  That took care of it, WHIA is still doing it&#8217;s thing, but it&#8217;s pretty much just running all vents wide open all of the time now. Somewhat of a let down to be real honest.  I still have all of the parts and would still like to move on to v2, but it&#8217;s hard to say when that is going to happen now. </p>
]]></content:encoded>
			<wfw:commentRss>http://cyborgworkshop.org/2010/06/17/whia-goal-achieved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
