<?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>Branden&#039;s Blog</title>
	<atom:link href="http://snednarb.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://snednarb.wordpress.com</link>
	<description>I.T. support and trivial findings</description>
	<lastBuildDate>Sat, 14 May 2011 11:36:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='snednarb.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Branden&#039;s Blog</title>
		<link>http://snednarb.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://snednarb.wordpress.com/osd.xml" title="Branden&#039;s Blog" />
	<atom:link rel='hub' href='http://snednarb.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Get HP Disk+Array Health from ESXi</title>
		<link>http://snednarb.wordpress.com/2010/02/02/get-hp-array-health-from-esxi-4-0/</link>
		<comments>http://snednarb.wordpress.com/2010/02/02/get-hp-array-health-from-esxi-4-0/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 21:31:56 +0000</pubDate>
		<dc:creator>snednarb</dc:creator>
				<category><![CDATA[ESXi]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[wbem]]></category>

		<guid isPermaLink="false">http://snednarb.wordpress.com/?p=20</guid>
		<description><![CDATA[David Ligeret wrote a Python script for monitoring the status of a server running ESXi. We are running ESXi on HP hardware and his script wouldn&#8217;t catch the disk or array failures. So the attached script is my updated version that will catch the HealthState codes from the HP hardware. #!/usr/bin/python # # Script for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=snednarb.wordpress.com&amp;blog=11395114&amp;post=20&amp;subd=snednarb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>David Ligeret wrote a Python script for monitoring the status of a server running ESXi. We are running ESXi on HP hardware and his script wouldn&#8217;t catch the disk or array failures. So the attached script is my updated version that will catch the HealthState codes from the HP hardware. </p>
<p><code><br />
#!/usr/bin/python<br />
#<br />
# Script for checking global health of host running VMware ESX/ESXi<br />
#<br />
# Licence : GNU General Public Licence (GPL) http://www.gnu.org/<br />
# Pre-req : pywbem<br />
#<br />
#@---------------------------------------------------<br />
#@ History<br />
#@---------------------------------------------------<br />
#@ Date   : 20080820<br />
#@ Author : David Ligeret<br />
#@ Reason : Initial release<br />
#@---------------------------------------------------<br />
#@ Date   : 20080821<br />
#@ Author : David Ligeret<br />
#@ Reason : Add verbose mode<br />
#@---------------------------------------------------<br />
#@ Date   : 20100202<br />
#@ Author : Branden Schneider<br />
#@ Reason : Added HP Support (HealthState)<br />
#@---------------------------------------------------<br />
#</p>
<p>import sys<br />
import time<br />
import pywbem</p>
<p>NS = 'root/cimv2'</p>
<p># define classes to check 'OperationStatus' instance<br />
ClassesToCheck = [<br />
	'CIM_ComputerSystem',<br />
	'CIM_NumericSensor',<br />
	'CIM_Memory',<br />
	'CIM_Processor',<br />
	'CIM_RecordLog',<br />
	'OMC_DiscreteSensor',<br />
	'VMware_StorageExtent',<br />
	'VMware_Controller',<br />
	'VMware_StorageVolume',<br />
	'VMware_Battery',<br />
	'VMware_SASSATAPort'<br />
]</p>
<p># define exit codes<br />
ExitOK = 0<br />
ExitWarning = 1<br />
ExitCritical = 2<br />
ExitUnknown = 3</p>
<p>def verboseoutput(message, verbose) :<br />
	if verbose == 1:<br />
		print "%s %s" % (time.strftime("%Y%m%d %H:%M:%S"), message)</p>
<p># check input arguments<br />
if len(sys.argv) &lt; 4:<br />
	sys.stderr.write(&#039;Usage   : &#039; + sys.argv[0] + &#039; hostname user password\n&#039;)<br />
	sys.stderr.write(&#039;Example : &#039; + sys.argv[0] + &#039; https://myesxi:5989 root password\n&#039;)<br />
	sys.exit(1)<br />
verbose = 0<br />
if len(sys.argv) == 5 :<br />
	if sys.argv[4] == &quot;verbose&quot; :<br />
		verbose = 1</p>
<p># connection to host<br />
verboseoutput(&quot;Connection to &quot;+sys.argv[1], verbose)<br />
wbemclient = pywbem.WBEMConnection(sys.argv[1], (sys.argv[2], sys.argv[3]), NS)</p>
<p># run the check for each defined class<br />
GlobalStatus = ExitOK<br />
ExitMsg = &quot;&quot;<br />
for classe in ClassesToCheck :<br />
	verboseoutput(&quot;Check classe &quot;+classe, verbose)<br />
	instance_list = wbemclient.EnumerateInstances(classe)<br />
	for instance in instance_list :<br />
		elementName = instance[&#039;ElementName&#039;]<br />
		verboseoutput(&quot;Element Name = &quot;+elementName, verbose)</p>
<p>                if instance[&#039;HealthState&#039;] is not None :<br />
                        elementStatus = instance[&#039;HealthState&#039;]<br />
                        verboseoutput(&quot;Element HealthState = %d&quot; % elementStatus, verbose)<br />
                        interpretStatus = {<br />
                                0  : ExitOK,            # Unknown<br />
                                5  : ExitOK,            # OK<br />
                                10 : ExitWarning,       # Degraded<br />
                                15 : ExitWarning,       # Minor<br />
                                20 : ExitCritical,      # Major<br />
                                25 : ExitCritical,      # Critical<br />
                                30 : ExitCritical,      # Non-recoverable Error<br />
			}[elementStatus]<br />
			if (interpretStatus == ExitCritical) :<br />
				verboseoutput(&quot;GLobal exit set to CRITICAL&quot;, verbose)<br />
				GlobalStatus = ExitCritical<br />
				ExitMsg += &quot;CRITICAL : %s<br />" % elementName<br />
			if (interpretStatus == ExitWarning and GlobalStatus != ExitCritical) :<br />
				verboseoutput("GLobal exit set to WARNING", verbose)<br />
				GlobalStatus = ExitWarning<br />
				ExitMsg += "WARNING : %s<br />" % elementName</p>
<p>		if instance['OperationalStatus'] is not None :<br />
			elementStatus = instance['OperationalStatus'][0]<br />
			verboseoutput("Element Op Status = %d" % elementStatus, verbose)<br />
			interpretStatus = {<br />
				0  : ExitOK,		# Unknown<br />
				1  : ExitCritical,	# Other<br />
				2  : ExitOK,		# OK<br />
				3  : ExitWarning,	# Degraded<br />
				4  : ExitWarning,	# Stressed<br />
				5  : ExitWarning,	# Predictive Failure<br />
				6  : ExitCritical,	# Error<br />
				7  : ExitCritical,	# Non-Recoverable Error<br />
				8  : ExitWarning,	# Starting<br />
				9  : ExitWarning,	# Stopping<br />
				10 : ExitCritical,	# Stopped<br />
				11 : ExitOK,		# In Service<br />
				12 : ExitWarning,	# No Contact<br />
				13 : ExitCritical,	# Lost Communication<br />
				14 : ExitCritical,	# Aborted<br />
				15 : ExitOK,		# Dormant<br />
				16 : ExitCritical,	# Supporting Entity in Error<br />
				17 : ExitOK,		# Completed<br />
				18 : ExitOK,		# Power Mode<br />
				19 : ExitOK,		# DMTF Reserved<br />
				20 : ExitOK		# Vendor Reserved<br />
			}[elementStatus]<br />
			if (interpretStatus == ExitCritical) :<br />
				verboseoutput("GLobal exit set to CRITICAL", verbose)<br />
				GlobalStatus = ExitCritical<br />
				ExitMsg += "CRITICAL : %s<br />" % elementName<br />
			if (interpretStatus == ExitWarning and GlobalStatus != ExitCritical) :<br />
				verboseoutput("GLobal exit set to WARNING", verbose)<br />
				GlobalStatus = ExitWarning<br />
				ExitMsg += "WARNING : %s<br />" % elementName</p>
<p>if GlobalStatus == 0 :<br />
	print "OK"<br />
else :<br />
	print ExitMsg<br />
sys.exit (GlobalStatus)<br />
</code></p>
<p>See <a href="http://communities.vmware.com/docs/DOC-7170;jsessionid=C2C44A337152750E3B2850354DAE8EC6">David Ligeret&#8217;s post on VMware Communities</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/snednarb.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/snednarb.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/snednarb.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/snednarb.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/snednarb.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/snednarb.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/snednarb.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/snednarb.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/snednarb.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/snednarb.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/snednarb.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/snednarb.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/snednarb.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/snednarb.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=snednarb.wordpress.com&amp;blog=11395114&amp;post=20&amp;subd=snednarb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://snednarb.wordpress.com/2010/02/02/get-hp-array-health-from-esxi-4-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a87e06e3062d8dda68ecf48a70ba448d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snednarb</media:title>
		</media:content>
	</item>
		<item>
		<title>Apply Driver Package &#8211; Operation failed with 0&#215;80070002</title>
		<link>http://snednarb.wordpress.com/2010/01/15/apply-driver-package-operation-failed-with-0x80070002/</link>
		<comments>http://snednarb.wordpress.com/2010/01/15/apply-driver-package-operation-failed-with-0x80070002/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 21:54:22 +0000</pubDate>
		<dc:creator>snednarb</dc:creator>
				<category><![CDATA[HP Insight Control Suite]]></category>
		<category><![CDATA[System Center Configuration Manager]]></category>
		<category><![CDATA[0x80070002]]></category>
		<category><![CDATA[boot.wim]]></category>
		<category><![CDATA[SCCM]]></category>
		<category><![CDATA[WAIK]]></category>

		<guid isPermaLink="false">http://snednarb.wordpress.com/?p=18</guid>
		<description><![CDATA[I&#8217;ve been using SCCM coupled with the HP Insight Control Suite to deploy our server images on bare-metal HP servers and blades. Recently, I have been working to deploy Windows Server 2008 R2. If you get the message &#8220;[Windows Package Manager] Operation failed with 0&#215;80070002; The system cannot find the file specified&#8221;, this is caused [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=snednarb.wordpress.com&amp;blog=11395114&amp;post=18&amp;subd=snednarb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using SCCM coupled with the HP Insight Control Suite to deploy our server images on bare-metal HP servers and blades. Recently, I have been working to deploy Windows Server 2008 R2. If you get the message &#8220;[Windows Package Manager] Operation failed with 0&#215;80070002; The system cannot find the file specified&#8221;, this is caused by using an older/wrong version of a boot image. I installed the latest WAIK, re-configured the winpe.wim, imported and redistributed the new boot.wim, and finally pointed my Task Sequence to use the new boot image.</p>
<p>Here is a <a href="http://technet.microsoft.com/en-us/library/dd744533(WS.10).aspx">walkthrough from technet</a> on how to update the boot image to add needed drivers and packages.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/snednarb.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/snednarb.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/snednarb.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/snednarb.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/snednarb.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/snednarb.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/snednarb.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/snednarb.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/snednarb.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/snednarb.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/snednarb.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/snednarb.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/snednarb.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/snednarb.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=snednarb.wordpress.com&amp;blog=11395114&amp;post=18&amp;subd=snednarb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://snednarb.wordpress.com/2010/01/15/apply-driver-package-operation-failed-with-0x80070002/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a87e06e3062d8dda68ecf48a70ba448d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snednarb</media:title>
		</media:content>
	</item>
		<item>
		<title>Welcome</title>
		<link>http://snednarb.wordpress.com/2010/01/12/welcome/</link>
		<comments>http://snednarb.wordpress.com/2010/01/12/welcome/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 17:00:09 +0000</pubDate>
		<dc:creator>snednarb</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Welcome]]></category>

		<guid isPermaLink="false">http://snednarb.wordpress.com/2010/01/12/welcome/</guid>
		<description><![CDATA[Greetings! My name is Branden and I will be posting about various technologies and solutions to the day-to-day issues I come across. Every so often I have a I.T. related problem and cannot find a solution online. I will try to post my solution here for your benefit. From time to time I will post [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=snednarb.wordpress.com&amp;blog=11395114&amp;post=1&amp;subd=snednarb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Greetings! My name is Branden and I will be posting about various technologies and solutions to the day-to-day issues I come across. Every so often I have a I.T. related problem and cannot find a solution online. I will try to post my solution here for your benefit.</p>
<p>From time to time I will post about random other subjects and post some of my <a href="http://www.flickr.com/photos/brandens/">photos</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/snednarb.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/snednarb.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/snednarb.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/snednarb.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/snednarb.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/snednarb.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/snednarb.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/snednarb.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/snednarb.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/snednarb.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/snednarb.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/snednarb.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/snednarb.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/snednarb.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=snednarb.wordpress.com&amp;blog=11395114&amp;post=1&amp;subd=snednarb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://snednarb.wordpress.com/2010/01/12/welcome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a87e06e3062d8dda68ecf48a70ba448d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snednarb</media:title>
		</media:content>
	</item>
	</channel>
</rss>
