<?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>Yellow Bricks &#187; service console</title>
	<atom:link href="http://www.yellow-bricks.com/tag/service-console/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yellow-bricks.com</link>
	<description>Building blocks for virtualization...</description>
	<lastBuildDate>Fri, 10 Feb 2012 11:12:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to show load balancing policy in the COS?</title>
		<link>http://www.yellow-bricks.com/2009/06/05/how-to-show-loadbalancing-policy-in-the-cos/</link>
		<comments>http://www.yellow-bricks.com/2009/06/05/how-to-show-loadbalancing-policy-in-the-cos/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 15:33:45 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[service console]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=3311</guid>
		<description><![CDATA[<p>Kelly Olivier had a good question on the VMTN Communities. How can I check from the Service Console which network load balancing I&#8217;m using? Of course his first bet was &#8220;vmware-vim-vmd&#8221; but unfortunately there doesn&#8217;t seem to be an option to show which load balancing policy is being used. As far as I know there&#8217;s another way to show this: [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/06/05/how-to-show-loadbalancing-policy-in-the-cos/">How to show load balancing policy in the COS?</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>Kelly Olivier had a <a href="http://communities.vmware.com/message/1274206">good question</a> on the VMTN Communities. How can I check from the Service Console which network load balancing I&#8217;m using? Of course his first bet was &#8220;vmware-vim-vmd&#8221; but unfortunately there doesn&#8217;t seem to be an option to show which load balancing policy is being used.</p>
<p>As far as I know there&#8217;s another way to show this:</p>
<pre style="padding-left: 30px;">cat /etc/vmware/esx.conf | grep "teamPolicy\/team"</pre>
<p style="padding-left: 30px;">This would return the following:</p>
<pre style="padding-left: 30px;">/net/vswitch/child<span class="jive-link-adddocument">0001</span>/teamPolicy/team = "lb_srcid"</pre>
<p style="padding-left: 30px;">Possible load balancing policies:<br />
lb_srcid = Virtual port id<br />
lb_ip = IP Hash<br />
lb_srcmac = MAC Address</p>
<p>If anyone knows of any other methods of showing this info let me know and/or contribute to the <a href="http://communities.vmware.com/message/1274206">topic</a> on VMTN.</p>
<p>Update:</p>
<p>@lamw just posted that it is possible to get this info from vmware-vim-cmd:</p>
<blockquote>
<pre>
vmware-vim-cmd hostsvc/net/vswitch_info | grep -E '(policy|name)'
      name = "vSwitch0",
         policy = (vim.host.NetworkPolicy) {
               policy = "loadbalance_ip",
      name = "vSwitch1",
         policy = (vim.host.NetworkPolicy) {
               policy = "loadbalance_srcid",
      name = "vSwitch5",
         policy = (vim.host.NetworkPolicy) {
               policy = "loadbalance_srcid",</pre>
</blockquote>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/06/05/how-to-show-loadbalancing-policy-in-the-cos/">How to show load balancing policy in the COS?</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/06/05/how-to-show-loadbalancing-policy-in-the-cos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change the license server from the Service Console</title>
		<link>http://www.yellow-bricks.com/2009/05/13/change-the-license-server-from-the-service-console/</link>
		<comments>http://www.yellow-bricks.com/2009/05/13/change-the-license-server-from-the-service-console/#comments</comments>
		<pubDate>Wed, 13 May 2009 07:40:02 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[service console]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=3099</guid>
		<description><![CDATA[<p>Got a question today on how to change the licensing server from the Service Console or how to add the license server via a scripted install. Of course &#8220;vmware-vim-cmd&#8221; is the keyword here. If you want to use a license server you will need to use the first option, if you want to add a license file you will need [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/05/13/change-the-license-server-from-the-service-console/">Change the license server from the Service Console</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>Got a question today on how to change the licensing server from the Service Console or how to add the license server via a scripted install. Of course &#8220;vmware-vim-cmd&#8221; is the keyword here. If you want to use a license server you will need to use the first option, if you want to add a license file you will need to use the second option:</p>
<ol>
<li>
<pre>vmware-vim-cmd vimsvc/license --source server</pre>
</li>
<li>
<pre>vmware-vim-cmd vimsvc/license --source file</pre>
</li>
</ol>
<p>Don&#8217;t you just love &#8220;vmware-vim-cmd&#8221;&#8230;.</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/05/13/change-the-license-server-from-the-service-console/">Change the license server from the Service Console</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/05/13/change-the-license-server-from-the-service-console/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The Basics: How to kill a VM that&#8217;s stuck during shutdown?</title>
		<link>http://www.yellow-bricks.com/2009/04/15/the-basics-how-to-kill-a-vm-thats-stuck-during-shutdown/</link>
		<comments>http://www.yellow-bricks.com/2009/04/15/the-basics-how-to-kill-a-vm-thats-stuck-during-shutdown/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 11:52:12 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[basics]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[service console]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=2847</guid>
		<description><![CDATA[<p>I just replied to a topic on the VMTN forums and thought it might be useful to write it down here as well. (I thought I already did, but a search didn&#8217;t turn up anything.) When a VM gets stuck during shutdown or isn&#8217;t responding anymore you can easily kill the VM. First option is the command line version of [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/04/15/the-basics-how-to-kill-a-vm-thats-stuck-during-shutdown/">The Basics: How to kill a VM that&#8217;s stuck during shutdown?</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>I just replied to a topic on the VMTN forums and thought it might be useful to write it down here as well. (I thought I already did, but a search didn&#8217;t turn up anything.)</p>
<p>When a VM gets stuck during shutdown or isn&#8217;t responding anymore you can easily kill the VM. First option is the command line version of vCenter&#8217;s &#8220;shutdown vm&#8221;, first list all the VMs running on the host so you can copy and paste the &lt;config&gt; in to the next command. The command &#8220;vmware-cmd &lt;config&gt; stop trysoft&#8221; will try to initiate a soft shutdown first, in other words a shutdown via the Guest OS, if that doesn&#8217;t work it will do a power off. Now, as most of you probably already experienced, sometimes it&#8217;s impossible to shutdown the VMs in a normal way. This is where 2nd, 3rd and 4th option come in to place. Option two uses vm-support to kill the VM, use &#8220;-x&#8221; to list the VM id&#8217;s and kill it with &#8220;-X&#8221;. The third option uses vimsh, in this case we use vmware-vim-cmd, &#8220;vmsvc/getallvms&#8221; lists all VMs and the id&#8217;s and with &#8220;vmsvc/poweroff&#8221; you can specify the VM that needs to be powered off. The fourth option is the Linux/Unix way of doing it, find the process id of the VM via &#8220;ps -auxwww&#8221; and just kill it.</p>
<ol>
<li>
<pre>vmware-cmd -l</pre>
<pre>vmware-cmd &lt;config&gt; stop trysoft</pre>
</li>
<li>
<pre>vm-support -x</pre>
<pre>vm-support -X &lt;vmid&gt;</pre>
</li>
<li>
<pre>vmware-vim-cmd vmsvc/getallvms</pre>
<pre>vmware-vim-cmd vmsvc/poweroff &lt;vm id&gt;</pre>
</li>
<li>
<pre>ps -auxwww | grep &lt;vm name&gt;</pre>
<pre>kill &lt;process id&gt;</pre>
</li>
<li>if option three isn&#8217;t successful do the following:
<pre>kill -9 &lt;process id&gt;</pre>
</li>
</ol>
<p>As VMwareWolf points out, there&#8217;s an excellent KB article on this subject to be found here: <a href="http://kb.vmware.com/kb/1004340">http://kb.vmware.com/kb/1004340</a></p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/04/15/the-basics-how-to-kill-a-vm-thats-stuck-during-shutdown/">The Basics: How to kill a VM that&#8217;s stuck during shutdown?</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/04/15/the-basics-how-to-kill-a-vm-thats-stuck-during-shutdown/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Revised: Service Console Redundancy</title>
		<link>http://www.yellow-bricks.com/2009/02/17/revised-service-console-redundancy/</link>
		<comments>http://www.yellow-bricks.com/2009/02/17/revised-service-console-redundancy/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 16:05:12 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[3.5]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[ha]]></category>
		<category><![CDATA[service console]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=1759</guid>
		<description><![CDATA[<p>I have been requested by several people to do an update of my original Service Console Redundancy article. Although personally, I am still of the opinion that the three options stated in the article are still valid I have rewritten them and dropped one option, as now a days the majority of companies now have a decent infrastructure with vlan&#8217;s. [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/02/17/revised-service-console-redundancy/">Revised: Service Console Redundancy</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>I have been requested by several people to do an update of my original <a href="http://www.yellow-bricks.com/2008/01/14/service-console-redundancy/">Service Console Redundancy</a> article. Although personally, I am still of the opinion that the three options stated in the article are still valid I have rewritten them and dropped one option, as now a days the majority of companies now have a decent infrastructure with vlan&#8217;s.<span id="more-1759"></span></p>
<p>Both configurations are supported by VMware and each has their own pros and cons:</p>
<ol>
<li>Requirements: 2 physical nics, vlan&#8217;s and <a href="http://www.lanarchitect.net/Articles/VLANTrunking/Introduction/">vlan trunking</a>:
<ul>
<li>vSwitch0: 2 Physical nics(vmnic0 &amp; vmnic2)</li>
<li>2 Portgroups(Service Console &amp; VMkernel)</li>
<li>Service Console active on vmnic0 and standby on vmnic2</li>
<li>VMkernel active on vmnic2 and standby on vmnic0</li>
</ul>
<p>Each portgroup has a vlan ID assigned and runs dedicated on its own physical NIC, only in the case of a fault it&#8217;s switched over to the standby NIC. It will return to the original NIC when the physical NIC is up and running again. This is achieved by setting &#8220;Failback&#8221; to Yes!</p>
<p><span style="text-decoration: underline;">Pros</span>: Only need 2 NICs in total for the Service Console and VMkernel, especially useful in Blade environments. Simple setup.</p>
<p><span style="text-decoration: underline;">Cons</span>: If the connection is dropped several times it will cause the NIC to fail-over each time which can cause HA to kick in eventually. You will need to set the Failure Detection Time (das.failuredetectiontime)  to 60 seconds opposed to the default of 15 seconds. (According to VMware best practices.)</li>
<li>Requirements: 3 physical NICs, vlan&#8217;s and vlan trunking:
<ul>
<li> vSwitch0 &#8211; 1 Physical NIC(vmnic0) &#8211; 1 Portgroup(Service Console)</li>
<li> vSwitch1 &#8211; 2 Physical NICs(vmnic1 &amp; vmnic3)</li>
<li> 2 Portgroups (VMkernel &amp; Secondary Service Console)</li>
</ul>
<p>The primary Service Console runs dedicated on a physical NIC, vmnic0, with a vlan assigned on either the physical switch port or the portgroup. (I would prefer portgroup for consistency).</p>
<p>The second vSwitch, vSwitch1, will run the VMkernel active on vmnic1 and standby on vmnic3. The secondary Service Console will be active on vmnic3. For the secondary Service Console I would prefer to set the vmnic1 to &#8220;unused&#8221;, this way you are 100% sure that the Service Console will run only on vmnic0 and vmnic3.</p>
<p><span style="text-decoration: underline;">Pros</span>: a lower “failure detection time”(das.failuredetectiontime) can be defined this is because of the fact that the service console is already active. Here the Failure Detection Time can be set to 20 seconds, further no Spanning Tree problems will occur as the setup contains two service consoles, and subsequently 2 MAC addresses. (This is also the reason why I would set vmnic1 to unused for this portgroup)</p>
<p><span style="text-decoration: underline;">Cons</span>: Need to set extra isolation addresses(das.isolationaddress), and secondary Service Console preferably in a different subnet.</li>
</ol>
<p>Thanks goes out to mr <a href="http://planetvm.net/blog/">Tom Howarth</a> for a sanity/grammar check.</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/02/17/revised-service-console-redundancy/">Revised: Service Console Redundancy</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/02/17/revised-service-console-redundancy/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>RE: ESXTOP Drilldown (Jason Boche)</title>
		<link>http://www.yellow-bricks.com/2009/01/29/re-esxtop-drilldown-jason-boche/</link>
		<comments>http://www.yellow-bricks.com/2009/01/29/re-esxtop-drilldown-jason-boche/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 17:33:43 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[service console]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=1711</guid>
		<description><![CDATA[<p>I was working on an ESXTOP post when Jason Boche published his blog post &#8220;ESXTOP Drilldown&#8220;. My post was similar so I decided to dump the post and start over again within a few weeks or so. Yesterday I encountered a performance issue at a customer site. One thing I&#8217;ve learned over the last couple of years is that &#8220;ESXTOP&#8221; [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/01/29/re-esxtop-drilldown-jason-boche/">RE: ESXTOP Drilldown (Jason Boche)</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>I was working on an ESXTOP post when Jason Boche published his blog post &#8220;<a href="http://www.boche.net/blog/?p=960">ESXTOP Drilldown</a>&#8220;. My post was similar so I decided to dump the post and start over again within a few weeks or so.</p>
<p>Yesterday I encountered a performance issue at a customer site. One thing I&#8217;ve learned over the last couple of years is that &#8220;ESXTOP&#8221; can be very useful in pinpointing performance issues, so writing this article happened sooner than I expected. The customer measured all sorts of counters within the VM and all the symptoms made the customer conclude that the problem was related to the virtual SCSI controller and / or the virtual harddisks(vmdk&#8217;s). The symptoms were high &#8220;Physical Disk\Avg. Disk sec/Transfer&#8221; and peak &#8220;Physical Disk\Avg. Disk Writes/Sec&#8221; behaviour. In other words, transferring data to and from the disk took too long and there wasn&#8217;t a constant stream of I/O.</p>
<p><span id="more-1711"></span></p>
<p>The initial conclusion that it was VMDK / SCSI Controller related isn&#8217;t weird at all. Looking at the values of the VM itself I would also suspect that this was the case. But ESXTOP revealed something totally different. There wasn&#8217;t a high &#8220;disk queue&#8221; or heavy I/O for this particular VM or host.</p>
<p>The &#8220;C&#8221; shows all the CPU information with a breakdown in worlds and groups. For more info on this check this <a href="http://communities.vmware.com/docs/DOC-9279">Community Document</a>. CPU revealed a high %RDY value. %RDY is also explained in the community document, besides all the other relevant values. In short what %RDY represents:</p>
<blockquote><p>A world in a run queue is waiting for CPU scheduler to let it run on a PCPU. %RDY accounts the percentage of this time. So, it is always smaller than 100%.</p></blockquote>
<p>Best practice would be values of around 5%, an occasional max of 10-20% wouldn&#8217;t hurt most VM&#8217;s / Applications. In this case the value was at least 50% all of the time.</p>
<p>Next question of course was &#8220;what causes this high ready times&#8221;. This one was easy to answer/explain: overprovisioning. The host had 8 cores (2 x quad core) and currently running on the host: 8 VM&#8217;s with a total of 18 vCPU&#8217;s. In other words, most VM&#8217;s were provisioned with multiple vCPU&#8217;s which makes scheduling even more difficult. Especially when you&#8217;ve got multiple 4 vCPU VM&#8217;s running. And when scheduling is successful the task would still have to wait for the complete socket to be available when there are no &#8220;idle loops&#8221; running within the VM vCPU&#8217;s.</p>
<p>One socket indeed, that&#8217;s based on the <a href="http://communities.vmware.com/docs/DOC-5501">scheduler cell</a> size which is 4 by default. In other words:<br />
2 x dual core = 1 cell<br />
1 x quad core = 1 cell<br />
2 x quad core = 2 cell&#8217;s (each proc = 1 cell, vm&#8217;s can&#8217;t span multiple cell&#8217;s)</p>
<p>Each vCPU will be tied to a core, meaning that with 4 vCPU&#8217;s one would need 4 Cores, 1 complete cell available. (For those thinking I&#8217;ve got 6-core processors, there&#8217;s a way to increase the <a href="http://kb.vmware.com/kb/1007361">scheduler cell size</a>! In short set vmkernel.boot.cpucellsize to 6) Conclusion of this very usefull day, be very careful when provisioning your VM&#8217;s. Do they really need 4 vCPU&#8217;s, or even 2 vCPU&#8217;s&#8230; and when you do provision them with multiple vCPU&#8217;s monitor these VM&#8217;s. Claim the vcpu&#8217;s back when these aren&#8217;t used or you don&#8217;t get the expected performance results.</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/01/29/re-esxtop-drilldown-jason-boche/">RE: ESXTOP Drilldown (Jason Boche)</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/01/29/re-esxtop-drilldown-jason-boche/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>VMReference Card 1.3</title>
		<link>http://www.yellow-bricks.com/2009/01/25/vmreference-card-13/</link>
		<comments>http://www.yellow-bricks.com/2009/01/25/vmreference-card-13/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 03:05:40 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Various]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[service console]]></category>
		<category><![CDATA[whitepaper]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=1629</guid>
		<description><![CDATA[<p>Forbes just released version 1.3 of his VMReference Card.This card can be very useful for those studying for VCP/VCDX. But it might also come in handy when doing troubleshooting on the Service Console: I’ve just finished updating my reference card.  The biggest change is that I’ve moved everything to the latest update of 3.5 as the default. Updated the details [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/01/25/vmreference-card-13/">VMReference Card 1.3</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>Forbes just released version 1.3 of his VMReference Card.This card can be very useful for those studying for VCP/VCDX. But it might also come in handy when doing troubleshooting on the Service Console:</p>
<blockquote><p>I’ve just finished updating my reference card.  The biggest change is that I’ve moved everything to the latest update of 3.5 as the default.</p>
<ul>
<li>Updated the details to the latest Confuguration Maximiums PDF.</li>
<li>Updated it to include 3.5 update 3 release notes.</li>
<li>Changed the versioning to include the latest VMware release, so its more obvious how up to date (or not) your card is.</li>
<li>Some minor additions (NAS maximums) and corrections.</li>
</ul>
<p>Many thanks to all the readers who have written in with comments.  Always welcome.</p>
<p>Go and grab it here: <a href="http://www.vmreference.com/vi3-card/">http://www.vmreference.com/vi3-card</a></p></blockquote>
<p>Go to <a href="http://www.vmreference.com">VMReference.com</a> and download the Card. Leave a comment while you are there!</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/01/25/vmreference-card-13/">VMReference Card 1.3</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/01/25/vmreference-card-13/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Orphaned vmdk&#8217;s</title>
		<link>http://www.yellow-bricks.com/2009/01/16/orphaned-vmdks/</link>
		<comments>http://www.yellow-bricks.com/2009/01/16/orphaned-vmdks/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 08:01:13 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[service console]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[vmdk]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=1543</guid>
		<description><![CDATA[<p>While doing a &#8220;mini-healthcheck&#8221; at a customer site I noticed a specific Datastore with less than 2% of free diskspace. After a bit of research an orphaned VMDK was found. Orphaned vmdk&#8217;s are virtual hard-disks that are not connected to a VM. Probably because they were removed from the inventory without deleting the files. You can easily find these orphaned [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/01/16/orphaned-vmdks/">Orphaned vmdk&#8217;s</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>While doing a &#8220;mini-healthcheck&#8221; at a customer site I noticed a specific Datastore with less than 2% of free diskspace. After a bit of research an orphaned VMDK was found. Orphaned vmdk&#8217;s are virtual hard-disks that are not connected to a VM. Probably because they were removed from the inventory without deleting the files.</p>
<p>You can easily find these orphaned vmdk&#8217;s via the Service Console:</p>
<p style="padding-left: 30px;">find -iname &#8220;*-flat.vmdk&#8221; -mtime +7</p>
<p>For those that don&#8217;t like using the Service Console you can also check this with <a href="http://communities.vmware.com/docs/DOC-6960">Powershell</a> Ad van Bokhoven created a nice script which he describes as follows:</p>
<blockquote><p>This script asks the virtual center what the disk are of each VM and puts this into an array. After this, it reads all files on all datastores. If the file is a vmdk file, it will check wheter this file is in the array. If it&#8217;s not, you&#8217;ve found a orphaned vmd.</p></blockquote>
<p>I would advise to regularly check your environment on orphaned disks, it can save precious diskspace.</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/01/16/orphaned-vmdks/">Orphaned vmdk&#8217;s</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/01/16/orphaned-vmdks/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Tripwire Configcheck</title>
		<link>http://www.yellow-bricks.com/2009/01/12/tripwire-configcheck/</link>
		<comments>http://www.yellow-bricks.com/2009/01/12/tripwire-configcheck/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 08:17:14 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[healthcheck]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[service console]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=1509</guid>
		<description><![CDATA[<p>When I published my article on tools/scripts I use during a VMware Healthcheck I received a couple of emails on Tripwire&#8217;s Configcheck. I&#8217;ve been on a holiday for a couple of weeks so it took me a bit longer than usual to check out the product. Configcheck can be downloaded for free. Configcheck is a Java Application so you will [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/01/12/tripwire-configcheck/">Tripwire Configcheck</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>When I published my article on <a href="http://www.yellow-bricks.com/2008/12/18/health-check-tools-i-use/">tools/scripts</a> I use during a VMware Healthcheck I received a couple of emails on Tripwire&#8217;s Configcheck. I&#8217;ve been on a holiday for a couple of weeks so it took me a bit longer than usual to check out the product.</p>
<p><a href="http://www.tripwire.com/configcheck/configcheckdownload.cfm">Configcheck </a>can be downloaded for free. Configcheck is a Java Application so you will need to install JRE. Installing JRE can be a bit of a pain sometimes on a server so this is one of the reasons for me that will make it hard to actively use Configcheck at customer sites. (This depends on the customers policy.) Installing the product is fairly easy though:</p>
<ol>
<li>Download <a href="http://www.java.com/en/download/manual.jsp">Java JRE</a>.</li>
<li>Download the file <a href="http://www.tripwire.com/configcheck/configcheckdownload.cfm">configcheck.zip</a> to a Windows machine that has Java Runtime Environment (JRE) version 1.5, or higher.</li>
<li>Unzip the configcheck.zip file</li>
</ol>
<p>That&#8217;s it, fairly easy. Now you can run &#8220;configcheck.cmd&#8221; to check the specified ESX host on security issues. Once the check is complete you can click the test results to view remediation steps. The test results will look like this:</p>
<p><img class="colorbox-1509"  src="http://farm4.static.flickr.com/3115/3190103675_a53cca3718_m.jpg"></p>
<p>As you can see, 37 Passed and 40 Failed. Not really surprising considering the fact that I ran this against a newly build ESX 3.5 U3 host. No modifications whatsoever. Clicking the test results didn&#8217;t work on my test servers because of the lack of an internet connection. Unfortunately it&#8217;s also not possible to export the data in this version. It&#8217;s free and Tripwire&#8217;s Enterprise edition does give you this capability, if you need export and a whole lot more check it out. You can find a data-sheet with a comparison between Configcheck and enterprise <a href="http://www.tripwire.com/files/datasheets/Tripwire_ConfigCheck_Upgrade_Datasheet.pdf">here</a>.</p>
<p>Luckily Tripwire also provides the remediation steps in <a href="http://www.tripwire.com/configcheck/tw_remediation_guide.cfm">pdf form</a>. For instance the remediation steps for 1.2.2 &#8220;Verify the log files to keep is equal to 10&#8243;:</p>
<blockquote><p><strong>Description:</strong> <br />
This test determines if virtual machines are configured to keep 10 log files when the recommended log rotate size of 100KB is exceeded. Virtual machines log activity in their respective vmware.log files. If growth of these log files is not limited, it is possible for virtual machines to cause a denial of service on the ESX Server by filling up the VMFS volume. There are two options for preventing virtual machines from flooding the hard disk of the host: size-based log file rotation or disabling logging for the virtual machine. This policy checks for size-based log file rotation because disabling logging altogether limits troubleshooting options.</p>
<p><strong>Remediation:</strong><br />
To remediate failure of this policy test, configure the virtual machine to keep 10 log files when the recommended log rotate size of 100KB is exceeded. Configuring the virtual machine to keep 10 log files when the recommended log rotate size of 100KB is exceeded:</p>
<p>Login to the VirtualCenter or use the VI Client to connect directly to the ESX Server hosting the improperly configured virtual machine.</p>
<ol>
<li>Power off the virtual machine if needed.</li>
<li>Right click the virtual machine and click Edit Settings.</li>
<li>Select the Options tab.</li>
<li>Select Advanced &gt; General, and click the Configuration Parameters button.</li>
<li>Look for a row with log.keepOld and set the value to 10.</li>
<li>If the row does not exist, then click the Add Row button.</li>
<li>In the Name field type log.keepOld.</li>
<li>In the Value field type the value to 10.</li>
<li>Click OK to close the Configuration Parameters dialog.</li>
<li>Click OK to close the Virtual Machine Properties dialog.</li>
</ol>
</blockquote>
<div>As you can see, the description and remediation explain why and what to do in a fairly extensive manner. Which is great cause not does this make solving the &#8220;problem&#8221; really easy, <span style="text-decoration: underline;">Tripwire&#8217;s Configcheck also educates the SysAdmin!</span></div>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/01/12/tripwire-configcheck/">Tripwire Configcheck</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/01/12/tripwire-configcheck/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Old School: Label your Hardware</title>
		<link>http://www.yellow-bricks.com/2009/01/05/old-school-label-your-hardware/</link>
		<comments>http://www.yellow-bricks.com/2009/01/05/old-school-label-your-hardware/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 18:10:31 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[service console]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=1443</guid>
		<description><![CDATA[<p>So you were used to labelling your hardware with the name of the System running on it. But when running everything virtual you can label your ESX hosts but never know which VM resides at which Server without checking your console and/or vCenter. Wouldn&#8217;t it be cool if you would have a magic Label that updated itself every once in [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/01/05/old-school-label-your-hardware/">Old School: Label your Hardware</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>So you were used to labelling your hardware with the name of the System running on it. But when running everything virtual you can label your ESX hosts but never know which VM resides at which Server without checking your console and/or vCenter.</p>
<p>Wouldn&#8217;t it be cool if you would have a magic Label that updated itself every once in a while. This way one would be able so see within just a glance which VM runs on which host.As you know there&#8217;s no such thing as a magic &#8220;label&#8221;, or maybe there is&#8230;</p>
<p>Yesterday I received an email from Nick Weaver(<a href="http://www.twitter.com/lynxbat ">@lynxbat</a>). He emailed me about a very very very cool script he wrote. No this script isn&#8217;t going to update your printed label off course. This script displays the VM&#8217;s running on your host on the front panel LCD. Most servers these days have frontpanel LCD&#8217;s and they can be updated with a couple simple ipmi commands.</p>
<p>Nick wrote an <a href="http://nickapedia.com/2009/01/03/dell-server-lcd-update-script/">extensive article</a> on how-to create a self updating magic label <img src='http://www.yellow-bricks.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley colorbox-1443' />  in short:</p>
<ol>
<li>Install <a href="http://www.dell.com/downloads/global/solutions/installing_dell_openmanage_on_esx.pdf" target="_blank">Dell OpenManage</a> and run it on the ESX host (needed for ipmi drivers)</li>
<li>Install <a href="http://ipmitool.sourceforge.net/" target="_blank">ipmitool 1.8.10</a>(SCP over, ./configure, make, make install….)</li>
<li>Run <a href="http://www.nickapedia.com/files/lcd_update.sh" target="_blank">lcd_update.sh</a> script</li>
</ol>
<p>Now walk over to your Dell server and check the result in the display, isn&#8217;t that amazing. Probably one of the most inventive scripts I&#8217;ve seen the last few months, it&#8217;s simple and gets the job done. Great job Nick, and I&#8217;m really curious what you will come up with next.</p>
<p><span style="text-decoration: line-through;">If I can find a Dell Machine this week I will definitely test it and post a screenshot!</span><br />
I just received a link to a <a href="http://www.youtube.com/watch?v=Slm3MDMD7Dc">youtube</a> video that shows it&#8217;s actually working!</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/01/05/old-school-label-your-hardware/">Old School: Label your Hardware</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/01/05/old-school-label-your-hardware/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>vimsh, what can I do with it?</title>
		<link>http://www.yellow-bricks.com/2009/01/05/vimsh-what-can-i-do-with-it/</link>
		<comments>http://www.yellow-bricks.com/2009/01/05/vimsh-what-can-i-do-with-it/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 11:34:01 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[service console]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=1437</guid>
		<description><![CDATA[<p>Vimsh(and vmware-vim-cm) is probably one of the worst documented commands out there. At the same time it&#8217;s one of the most powerful commands(I know it&#8217;s a shell&#8230;) out there. You name it and &#8220;vimsh&#8221; does it. Most of you ran into the &#8220;enabling vmotion&#8221; from the Service Console problem when first starting out with scripted install. Vimsh solves this: /usr/bin/vmware-vim-cmd [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/01/05/vimsh-what-can-i-do-with-it/">vimsh, what can I do with it?</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>Vimsh(and vmware-vim-cm) is probably one of the worst documented commands out there. At the same time it&#8217;s one of the most powerful commands(I know it&#8217;s a shell&#8230;) out there. You name it and &#8220;vimsh&#8221; does it. Most of you ran into the &#8220;enabling vmotion&#8221; from the Service Console problem when first starting out with scripted install. Vimsh solves this:</p>
<p style="padding-left: 30px;"><code>/usr/bin/vmware-vim-cmd “hostsvc/vmotion/vnic_set vmk0″</code></p>
<p>As you can see &#8220;vimsh&#8221; is very powerful, but most of the other command-line stuff can be handled with the &#8220;esxcfg-*&#8221; commands. Well almost, for instance we talked about enabling autostart in my <a href="http://www.yellow-bricks.com/2009/01/01/check-if-autostart-is-enabled-from-the-cos/">previous post</a>. According to the KB article you must edit the file &#8220;/etc/vmware/hostd/vmAutoStart.xml&#8221;. Editing this file can be dangerous, I guess this goes for most ESX configuration files. During the Dutch VMUG I had a short chat with Wil van Antwerpen, Wil told me he was busy documenting the &#8220;vimsh&#8221; &#8220;command&#8221; in a wiki. After I published the enabling autostart blog Wil emailed me that this could and should be done with &#8220;vimsh&#8221;. I fully agree with Wil:</p>
<p style="padding-left: 30px;"><code>vmware-vim-cmd /hostsvc/autostartmanager/enable_autostart true</code></p>
<p>This enables the autostart functionality without manually editing the files. But I guess you would like to check if it&#8217;s enabled or disabled:</p>
<p style="padding-left: 30px;"><code>vmware-vim-cmd /hostsvc/autostartmanager/get_defaults</code></p>
<p>The big question remains, how do I know what I can and can&#8217;t do with &#8220;vimsh&#8221;. Well that&#8217;s the main reason for this post, as I said Wil has been very busy documenting &#8220;vimsh&#8221;. Wil created <a href="http://www.vi-toolkit.com/">VI-Toolkit.com</a>. <a href="http://www.vi-toolkit.com/">VI-Toolkit.com</a> contains a section on <a href="http://www.vi-toolkit.com/wiki/index.php/Vimsh">vimsh</a>. Besides the the info that the vimsh command provices Wil added sample code. The sample code can be very usefull, but the search function is even more useful. Searching the vimsh documentation provides you with a fast way to check if a specific configuration action can be scripted with &#8220;vimsh&#8221;. For instance a search on &#8220;vimsh role&#8221; returns the <a href="http://www.vi-toolkit.com/wiki/index.php?title=Special%3ASearch&amp;search=vimsh+role&amp;ns0=1&amp;fulltext=Search">following</a>:</p>
<p style="padding-left: 30px;">* Vimsvc/auth/role add<br />
==== vimsh vimsvc/auth/role_add ==== Usage: role_add roleName [priv0] [priv1] [priv2] [priv3] [priv4]<br />
171 B (24 words) &#8211; 14:32, 26 December 2008<br />
* Vimsvc/auth/role permissions<br />
==== vimsh vimsvc/auth/role_permissions ==== Usage: role_permissions roleName<br />
1 KB (118 words) &#8211; 22:26, 28 December 2008<br />
* Vimsvc/auth/role remove<br />
==== vimsh vimsvc/auth/role_remove ==== Usage: role_remove roleName [failIfUsed]<br />
123 B (16 words) &#8211; 14:34, 26 December 2008<br />
* Vimsvc/auth/roles<br />
==== vimsh vimsvc/auth/roles ==== Usage: roles<br />
7 KB (550 words) &#8211; 21:50, 28 December 2008</p>
<p>I guess I can sum up this blog post in just one line:&#8221;Bookmark <a href="http://www.vi-toolkit.com/">VI-Toolkit.com</a> and add it to your RSS reader!&#8221;. Be sure to not miss out on anything regarding &#8220;vimsh&#8221; or any of the VI Toolkits that Wil be be describing and aggregating source code for. The &#8220;vimsh&#8221; section alone is already 345 pages large and it will continue to grow even more. Keep up the great work Wil and it was nice meeting you in person!</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/01/05/vimsh-what-can-i-do-with-it/">vimsh, what can I do with it?</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/01/05/vimsh-what-can-i-do-with-it/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

