<?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>vmdude</title>
	<atom:link href="http://www.vmdude.fr/en/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vmdude.fr/en/</link>
	<description>&#34;ESXi pwned me&#34; ~ESX</description>
	<lastBuildDate>Tue, 11 Jun 2013 12:45:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
		<item>
		<title>Viva la HashTable</title>
		<link>http://www.vmdude.fr/en/scripts-en/viva-la-hashtable/</link>
		<comments>http://www.vmdude.fr/en/scripts-en/viva-la-hashtable/#comments</comments>
		<pubDate>Tue, 11 Jun 2013 10:46:17 +0000</pubDate>
		<dc:creator>Ammesiah</dc:creator>
				<category><![CDATA[How-To @en]]></category>
		<category><![CDATA[Scripts @en]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[get-view @en]]></category>
		<category><![CDATA[hashtable @en]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[powercli @en]]></category>

		<guid isPermaLink="false">http://www.vmdude.fr/?p=3194</guid>
		<description><![CDATA[We always tried to fully optimize scripts and applications that we developed because as soon as the infrastructure is quite large, the gain will not be insignificant (as we have seen previously with vCheck optimizations). While we were looking to &#8230; <a href="http://www.vmdude.fr/en/scripts-en/viva-la-hashtable/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">We always tried to fully optimize scripts and applications that we developed because as soon as the infrastructure is quite large, the gain will not be insignificant (as we have seen previously with vCheck optimizations).</p>
<p style="text-align: justify;">While we were looking to reduce execution time of some script (<del>or should I say OneLiner</del>), we found a new way for script enhancement, in the same spirit as <a href="https://en.wikipedia.org/wiki/NoSQL">NoSQL</a>, based on a key-value association rather than a complex relational schema.</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-3176" title="_scaled_keyvalue" src="http://www.vmdude.fr/wp-content/uploads/2013/06/scaled_keyvalue.jpg" alt="" width="400" height="215" /></p>
<p style="text-align: justify;">This is done using <a href="http://en.wikipedia.org/wiki/Hash_table">hash tables</a> that will be populated at the beginning of the script and be used afterward. The hash table structure is very useful for search operations, because the time consumption is very low, with an average of O(1) in <a href="http://en.wikipedia.org/wiki/Big_O_notation">BigO notation</a> (aka no time wasted):</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-3173" title="2013-06-11_11-40-04" src="http://www.vmdude.fr/wp-content/uploads/2013/06/2013-06-11_11-40-04.png" alt="" width="255" height="214" /></p>
<p style="text-align: justify;">For instance, we had a relatively simple OneLiner which listed virtual machines that were not in a resource pool (ie with &#8216;Resources&#8217; resource pool as parent, you can find more information on <a href="http://pubs.vmware.com/vsphere-50/topic/com.vmware.ICbase/PDF/vsphere-esxi-vcenter-server-50-resource-management-guide.pdf">page 43 of VMware vSphere Resource Management document</a>) and their cluster:</p>
<pre class="brush: powershell; title: ; notranslate">get-view -ViewType virtualmachine -Property ResourcePool, Name | ?{(Get-View $_.ResourcePool -Property Name).Name -eq &quot;Resources&quot;} | Select @{n=&quot;Cluster&quot;;e={(get-view (Get-View $_.ResourcePool -Property Parent).Parent -Property Name).Name}}, Name</pre>
<p style="text-align: justify;">This OneLiner filters already all Get-View calls to minimize execution time but is still taking a lot of time&#8230;</p>
<p style="text-align: justify;">So we tried to look into hash tables in order to see what could be done with it. We created several hash tables in order to get rid of Get-View calls (except of course for the first one retrieving virtual machines).</p>
<pre class="brush: powershell; title: ; notranslate">$htabResourcePool = @{}
$htabResourcePoolParent = @{}
$htabCluster = @{}</pre>
<p style="text-align: justify;">Once hash tables were declared, we filled them up with needed data (using MoRef as key) :</p>
<pre class="brush: powershell; title: ; notranslate">get-view -viewtype resourcepool -property name -Filter @{&quot;name&quot;=&quot;Resources&quot;} | %{$htabResourcePool.Add($_.MoRef,$_.Name)}
get-view -viewtype resourcepool -property parent -Filter @{&quot;name&quot;=&quot;Resources&quot;} | %{$htabResourcePoolParent.Add($_.MoRef,$_.Parent)}
get-view -viewtype clustercomputeresource -property name | %{$htabCluster.Add($_.MoRef,$_.Name)}</pre>
<p>Finally we use these tables in the OneLiner, replacing Get-View calls by hash tables search operations:</p>
<pre class="brush: powershell; title: ; notranslate">get-view -ViewType virtualmachine -Property ResourcePool, Name | ?{$htabResourcePool[$_.ResourcePool] -eq &quot;Resources&quot;} | Select @{n=&quot;Cluster&quot;;e={$htabCluster[$htabResourcePoolParent[$_.ResourcePool]]}}, Name</pre>
<p style="text-align: justify;">For now, we reach the same results as the method without hash tables but now we have to look into the execution time :p</p>
<p style="text-align: justify;">So we created a sample script which will run process using both methods:</p>
<ol>
<li>the first method will use Get-View calls only</li>
<li>the second method will populate hash tables and will use them afterward (the hash table filling will be part of the process to fit the exact same perimeter).</li>
</ol>
<p style="text-align: justify;">The script will display the two methods&#8217; results&#8217; count (to ensure the similarity of the returned content) also with the duration. In our example, we had a little less than 2200 VMs on the platform and here are the results:</p>
<p><img class="aligncenter size-full wp-image-3185" title="2013-06-11_11-56-56" src="http://www.vmdude.fr/wp-content/uploads/2013/06/2013-06-11_11-56-56.png" alt="" width="537" height="200" /></p>
<p style="text-align: justify;">In order to not mess with <a href="http://www.hypervisor.fr">hypervisor.fr</a> (we&#8217;re already hearing him shouting &#8220;Don&#8217;t touch my OneLiner!&#8221;, the chosen example is actually very meaningful because of the Get-View calls overlaping so the transition to hash tables were very effective :p</p>
<p style="text-align: justify;">It is possible though that depending on the script used, the gain of using hash tables will not be as obvious as it were in this example. However, we invite you to test and compare the execution time.</p>
<p style="text-align: justify;">Here is the script used to perform benchmark using both methods:</p>
<pre class="brush: powershell; title: ; notranslate">Write-Host -ForegroundColor Yellow &quot;Benchmarking starting...&quot;

Write-Host &quot;`nMethod 1 (with regular filtered Get-View)&quot;
$startMethod1 = Get-Date
$resultMethod1 = get-view -ViewType virtualmachine -Property ResourcePool, Name | ?{(Get-View $_.ResourcePool -Property Name).Name -eq &quot;Resources&quot;} | Select @{n=&quot;Cluster&quot;;e={(get-view (Get-View $_.ResourcePool -Property Parent).Parent -Property Name).Name}}, Name
$endMethod1 = Get-Date

Write-Host -ForegroundColor Green &quot;Found&quot;(($resultMethod1 | Measure-Object).Count)&quot;records in&quot;(($endMethod1 - $startMethod1).TotalSeconds)&quot;seconds&quot;

Write-Host &quot;`nMethod 2 (with hashtable)&quot;
$startMethod2 = Get-Date
$htabResourcePool = @{}
$htabResourcePoolParent = @{}
$htabCluster = @{}

get-view -viewtype resourcepool -property name -Filter @{&quot;name&quot;=&quot;Resources&quot;} | %{$htabResourcePool.Add($_.MoRef,$_.Name)}
get-view -viewtype resourcepool -property parent -Filter @{&quot;name&quot;=&quot;Resources&quot;} | %{$htabResourcePoolParent.Add($_.MoRef,$_.Parent)}
get-view -viewtype clustercomputeresource -property name | %{$htabCluster.Add($_.MoRef,$_.Name)}

$resultMethod2 = get-view -ViewType virtualmachine -Property ResourcePool, Name | ?{$htabResourcePool[$_.ResourcePool] -eq &quot;Resources&quot;} | Select @{n=&quot;Cluster&quot;;e={$htabCluster[$htabResourcePoolParent[$_.ResourcePool]]}}, Name
$endMethod2 = Get-Date

Write-Host -ForegroundColor Green &quot;Found&quot;(($resultMethod2 | Measure-Object).Count)&quot;records in&quot;(($endMethod2 - $startMethod2).TotalSeconds)&quot;seconds&quot;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.vmdude.fr/en/scripts-en/viva-la-hashtable/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>vExpert 2013</title>
		<link>http://www.vmdude.fr/en/news-en/vexpert-2013/</link>
		<comments>http://www.vmdude.fr/en/news-en/vexpert-2013/#comments</comments>
		<pubDate>Wed, 29 May 2013 08:02:13 +0000</pubDate>
		<dc:creator>Ammesiah</dc:creator>
				<category><![CDATA[News @en]]></category>
		<category><![CDATA[vexpert @en]]></category>
		<category><![CDATA[vmware @en]]></category>

		<guid isPermaLink="false">http://www.vmdude.fr/?p=3164</guid>
		<description><![CDATA[Early this morning John Troyer had release the vExpert 2013 list and we had the pleasure to be in it! We would like to thanks again all the readers for everything and give a big hurray to John Troyer for the vExpert &#8230; <a href="http://www.vmdude.fr/en/news-en/vexpert-2013/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Early this morning John Troyer had release the vExpert 2013 list and we had the pleasure to be in it!</p>
<p><a href="http://www.vmdude.fr/wp-content/uploads/2013/05/2013-05-29_09-46-59.png"><img class="aligncenter size-full wp-image-3161" title="2013-05-29_09-46-59" src="http://www.vmdude.fr/wp-content/uploads/2013/05/2013-05-29_09-46-59.png" alt="" width="519" height="109" /></a></p>
<p style="text-align: justify;">We would like to thanks again all the readers for everything and give a big hurray to <a href="https://twitter.com/jtroyer">John Troyer</a> for the vExpert program and what it means!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vmdude.fr/en/news-en/vexpert-2013/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hail to the vOpenData baby !</title>
		<link>http://www.vmdude.fr/en/news-en/hail-to-the-vopendata-baby/</link>
		<comments>http://www.vmdude.fr/en/news-en/hail-to-the-vopendata-baby/#comments</comments>
		<pubDate>Fri, 12 Apr 2013 20:05:45 +0000</pubDate>
		<dc:creator>Ammesiah</dc:creator>
				<category><![CDATA[News @en]]></category>
		<category><![CDATA[perl @en]]></category>
		<category><![CDATA[powercli @en]]></category>
		<category><![CDATA[stats @en]]></category>
		<category><![CDATA[vmware @en]]></category>
		<category><![CDATA[vopendata @en]]></category>

		<guid isPermaLink="false">http://www.vmdude.fr/?p=3137</guid>
		<description><![CDATA[Here is a quick post talking about vOpenData project on which we had the chance to offer our assistance with hypervisor.fr I will not detail all the project history (you can get it in the must-read posts from William Lam vOpenData: An Open &#8230; <a href="http://www.vmdude.fr/en/news-en/hail-to-the-vopendata-baby/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Here is a quick post talking about <a href="http://www.vopendata.org">vOpenData</a> project on which we had the chance to offer our assistance with <a href="http://hypervisor.fr">hypervisor.fr</a></p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-3139" title="vopen-data-0" src="http://www.vmdude.fr/wp-content/uploads/2013/04/vopen-data-0.png" alt="" width="250" height="53" /></p>
<p style="text-align: justify;">I will not detail all the project history (you can get it in the must-read posts from William Lam <a href="http://www.virtuallyghetto.com/2013/04/vopendata-open-virtualization-community.html">vOpenData: An Open Virtualization Community Database</a> or from Ben Thomas <a href="http://www.beyondvm.com/vopendata-crunching-everyones-data-for-fun-and-knowledge/">vOpenData – Crunching Everyone’s Data For Fun And Knowledge</a>), but basically, vOpenData is a community based statistics database (giving us some answers for eternal questions as &#8220;What is the average size of VMDK?&#8221; or &#8220;What is the average consolidation ratio?&#8221;)</p>
<p style="text-align: justify;">The project is composed with a small script (Perl or PowerCLI, pick one!) available from GitHub (<a href="https://github.com/vopendata/scripts">https://github.com/vopendata/scripts</a>) which will gather some statistics from your environnement (<strong>fully anonymously</strong>, there is no name, only UUID are reported), and the <a href="http://www.vopendata.org">www.vopendata.org</a> website which will let you upload the gathered data.</p>
<p style="text-align: justify;">In the end, the result is just amazing, in just a few minute you&#8217;ll have uploaded your stats which will be displayed on a huge dashboard (combining all data gathered from community) available on <a href="http://dash.vopendata.org/public">http://dash.vopendata.org/public</a> :</p>
<p style="text-align: justify;"><a href="http://www.vmdude.fr/wp-content/uploads/2013/04/vopendata-dashboard.png"><img class="aligncenter size-medium wp-image-3132" title="vopendata-dashboard" src="http://www.vmdude.fr/wp-content/uploads/2013/04/vopendata-dashboard-300x253.png" alt="" width="300" height="253" /></a></p>
<p style="text-align: justify;">As you guessed out, all the project is based on community effort, so we count on you to participate, come visit and support <a href="http://www.vopendata.org">www.vopendata.org</a> !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vmdude.fr/en/news-en/hail-to-the-vopendata-baby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List of ESXi servers with their IP</title>
		<link>http://www.vmdude.fr/en/memento-en/list-of-esxi-servers-with-their-ip/</link>
		<comments>http://www.vmdude.fr/en/memento-en/list-of-esxi-servers-with-their-ip/#comments</comments>
		<pubDate>Wed, 20 Mar 2013 19:05:21 +0000</pubDate>
		<dc:creator>Ammesiah</dc:creator>
				<category><![CDATA[Memento @en]]></category>
		<category><![CDATA[dns @en]]></category>
		<category><![CDATA[esxi @en]]></category>
		<category><![CDATA[ip @en]]></category>
		<category><![CDATA[powercli @en]]></category>
		<category><![CDATA[sdk @en]]></category>
		<category><![CDATA[vc-sdk @en]]></category>

		<guid isPermaLink="false">http://www.vmdude.fr/?p=3100</guid>
		<description><![CDATA[Here is a little memento we forgot to post a while ago, in order to get name and IP of all ESXi servers. There are several ways of getting these data, you can use only vSphere SDK properties: Or you &#8230; <a href="http://www.vmdude.fr/en/memento-en/list-of-esxi-servers-with-their-ip/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Here is a little memento we forgot to post a while ago, in order to get name and IP of all ESXi servers. There are several ways of getting these data, you can use only vSphere SDK properties:</p>
<pre class="brush: powershell; title: ; notranslate">Get-View -ViewType HostSystem -Property Name,Config | Select Name, @{n=&quot;IP&quot;;e={$_.config.network.vnic.spec.ip.ipaddress}}</pre>
<p style="text-align: justify;">Or you can use DNS resolve:</p>
<pre class="brush: powershell; title: ; notranslate">Get-View -ViewType HostSystem -Property Name | Select Name, @{n=&quot;IP&quot;;e={[System.Net.Dns]::GetHostAddresses($_.Name)}}</pre>
<p style="text-align: justify;">Even if the results are the same, execution time differ widely. With ~200 serveurs ESXi, the vSphere SDK method takes around 26s to complete (even with the use of <strong>Property</strong> filter for the <strong>Get-View</strong> cmdlet) instead of 0,3s for the DNS one:</p>
<p style="text-align: justify;"><a href="http://www.vmdude.fr/wp-content/uploads/2013/02/esxi_ip.png"><img class="aligncenter size-medium wp-image-3094" title="esxi_ip" src="http://www.vmdude.fr/wp-content/uploads/2013/02/esxi_ip-300x206.png" alt="" width="300" height="206" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vmdude.fr/en/memento-en/list-of-esxi-servers-with-their-ip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Powershell v3 and PowerCLI</title>
		<link>http://www.vmdude.fr/en/news-en/powershell-v3-and-powercli/</link>
		<comments>http://www.vmdude.fr/en/news-en/powershell-v3-and-powercli/#comments</comments>
		<pubDate>Tue, 12 Feb 2013 11:12:44 +0000</pubDate>
		<dc:creator>Ammesiah</dc:creator>
				<category><![CDATA[News @en]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[dvs @en]]></category>
		<category><![CDATA[powercli @en]]></category>
		<category><![CDATA[powershell @en]]></category>
		<category><![CDATA[powershell v3 @en]]></category>
		<category><![CDATA[psdr]]></category>
		<category><![CDATA[viclient @en]]></category>

		<guid isPermaLink="false">http://www.vmdude.fr/?p=3079</guid>
		<description><![CDATA[Yesterday evening, we heard about a great news, a new PowerCLI release (5.1 Release 2): Alan Renouf published a post about it, explaining what&#8217;s new with Distributed Switches cmdlets: PowerCLI 5.1 R2 Released As we were reading the release note (available here, there is always &#8230; <a href="http://www.vmdude.fr/en/news-en/powershell-v3-and-powercli/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Yesterday evening, we heard about a great news, a new PowerCLI release (<strong>5.1 Release 2</strong>):</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-3071" title="powercli_twitter" src="http://www.vmdude.fr/wp-content/uploads/2013/02/powercli_twitter.png" alt="" width="512" height="105" /></p>
<p style="text-align: justify;">Alan Renouf published a post about it, explaining what&#8217;s new with <em>Distributed Switches</em> cmdlets: <a href="http://www.virtu-al.net/2013/02/11/powercli-5-1-r2-released/">PowerCLI 5.1 R2 Released</a></p>
<p style="text-align: justify;">As we were reading the release note (available <a href="http://www.vmware.com/support/developer/PowerCLI/PowerCLI51R2/powercli51r2-releasenotes.html">here</a>, there is always good information in it!), we <del>finally</del> saw Powershell v3 support for PowerCLI !!!</p>
<p style="text-align: justify;"><a href="http://www.vmdude.fr/wp-content/uploads/2013/02/demotivationnal_powercli.jpg"><img class="aligncenter size-medium wp-image-3074" title="demotivationnal_powercli" src="http://www.vmdude.fr/wp-content/uploads/2013/02/demotivationnal_powercli-300x240.jpg" alt="" width="300" height="240" /></a></p>
<p style="text-align: justify;">This will allow a lot of good stuff, including performance enhancement of <strong>Get-ChildItem</strong> cmdlet. We will make further tests in order to try again the use of PSDrive in order to get some VM files (like .vmx).</p>
<p style="text-align: justify;">We also saw new way for server connection (this method is quite the same VIClient plugin used) :</p>
<blockquote><p>vSphere PowerCLI introduces an improvement in PowerCLI views.<br />
With the <strong>VimClient.Connect()</strong> method, you can now connect to a server by server session ID.</p></blockquote>
<p style="text-align: justify;">Finally, this release is awesome, let&#8217;s play ^^ The update is available on the VMware website: <a href="http://blogs.vmware.com/vipowershell/2013/02/powercli-5-1-release-2-now-available.html">http://blogs.vmware.com/vipowershell/2013/02/powercli-5-1-release-2-now-available.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vmdude.fr/en/news-en/powershell-v3-and-powercli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VM/Host/Cluster load in PowerCLI</title>
		<link>http://www.vmdude.fr/en/scripts-en/vmhostcluster-load-in-powercli/</link>
		<comments>http://www.vmdude.fr/en/scripts-en/vmhostcluster-load-in-powercli/#comments</comments>
		<pubDate>Mon, 28 Jan 2013 09:34:29 +0000</pubDate>
		<dc:creator>Ammesiah</dc:creator>
				<category><![CDATA[Scripts @en]]></category>
		<category><![CDATA[cluster @en]]></category>
		<category><![CDATA[esxi @en]]></category>
		<category><![CDATA[powercli @en]]></category>
		<category><![CDATA[vmware @en]]></category>

		<guid isPermaLink="false">http://www.vmdude.fr/?p=3053</guid>
		<description><![CDATA[In order to follow up our previous post about cluster load in PowerCLI, a chat with Alan Renouf convince us to add support for other vCenter objects, the basic idea was to build a universal Get-Load function that will display the load of &#8230; <a href="http://www.vmdude.fr/en/scripts-en/vmhostcluster-load-in-powercli/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">In order to follow up our previous post about <a title="Cluster load in PowerCLI" href="http://www.vmdude.fr/en/scripts-en/cluster-load-in-powercli/">cluster load in PowerCLI</a>, a chat with <a href="http://www.virtu-al.net/">Alan Renouf</a> convince us to add support for other vCenter objects, the basic idea was to build a universal <strong>Get-Load</strong> function that will display the load of pipelined or explicit objects, <em>Piece Of Cake</em> !</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-3038" title="graph_cake" src="http://www.vmdude.fr/wp-content/uploads/2013/01/graph_cake.jpg" alt="" width="500" height="267" /></p>
<p style="text-align: justify;">Thinking about it, what we wanted to do is quite similar as the <strong>Get-View</strong> behavior, for instance the possibility to use it like:</p>
<pre class="brush: powershell; title: ; notranslate">Get-View -ViewType VirtualMachines
Get-VM | Get-View
Get-View -ViewType HostSystem
Get-VMHost | Get-View</pre>
<p style="text-align: justify;">Thanks to the <a href="http://blogs.msdn.com/b/powershell/archive/2009/01/04/extending-and-or-modifing-commands-with-proxies.aspx">proxies commands</a>, we looked at the Get-View cmdlet definition, for instance with the following command:</p>
<pre class="brush: powershell; title: ; notranslate">[System.Management.Automation.ProxyCommand]::create((New-Object System.Management.Automation.CommandMetaData(Get-Command Get-View)))</pre>
<p style="text-align: justify;">Our PowerCLI function will display <del>graphical</del> ASCII art load in console for several object types (virtual machine, ESX host or vSphere cluster). This function can be used in 2 ways, first as standalone cmdlet:</p>
<pre class="brush: powershell; title: ; notranslate">Get-Load -LoadType VirtualMachine
Get-Load -LoadType HostSystem
Get-Load -LoadType ClustercomputeResource</pre>
<p style="text-align: justify;">Then you can pass objects to it through pipeline:</p>
<pre class="brush: powershell; title: ; notranslate">Get-VM &quot;vm*&quot; | Get-Load
Get-VMHost | Get-Load
Get-Cluster -Location &quot;folder01&quot; | Get-Load</pre>
<p style="text-align: justify;">Right now, there is only 3 object types supported (it&#8217;ll be remember to you if you try to think out the box :p )</p>
<p><img class="aligncenter" title="get-load-help" src="http://www.vmdude.fr/wp-content/uploads/2013/01/get-load-help.png" alt="" width="516" height="85" /></p>
<p style="text-align: justify;">Here are samples for ASCII art load for different objects:</p>
<p style="text-align: justify;"><a href="http://www.vmdude.fr/wp-content/uploads/2013/01/get-load-vm.png"><img class="aligncenter size-medium wp-image-3048" title="get-load-vm" src="http://www.vmdude.fr/wp-content/uploads/2013/01/get-load-vm-300x185.png" alt="" width="300" height="185" /></a></p>
<p style="text-align: justify;"><a href="http://www.vmdude.fr/wp-content/uploads/2013/01/get-load-vmhost.png"><img class="aligncenter size-medium wp-image-3049" title="get-load-vmhost" src="http://www.vmdude.fr/wp-content/uploads/2013/01/get-load-vmhost-300x41.png" alt="" width="300" height="41" /></a></p>
<p style="text-align: justify;"><div class="green-box">The script is available for download here (<em>rename the extension in .ps1</em>) : <strong><a href="http://vmdude.free.fr/scripts/Get-Load.ps1.txt">Get-Load.ps1</a></strong></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vmdude.fr/en/scripts-en/vmhostcluster-load-in-powercli/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Cluster load in PowerCLI</title>
		<link>http://www.vmdude.fr/en/scripts-en/cluster-load-in-powercli/</link>
		<comments>http://www.vmdude.fr/en/scripts-en/cluster-load-in-powercli/#comments</comments>
		<pubDate>Fri, 04 Jan 2013 11:04:27 +0000</pubDate>
		<dc:creator>Ammesiah</dc:creator>
				<category><![CDATA[Scripts @en]]></category>
		<category><![CDATA[cluster @en]]></category>
		<category><![CDATA[esxi @en]]></category>
		<category><![CDATA[powercli @en]]></category>
		<category><![CDATA[vmware @en]]></category>

		<guid isPermaLink="false">http://www.vmdude.fr/?p=2987</guid>
		<description><![CDATA[Edit 01.04.2013 : A few script modification following a very nice observation by hypervisor (as usual :p) It&#8217;s been a while we wanted to make a PowerCLI fancy display for vSphere cluster load, in a kind of way VIClient does for &#8230; <a href="http://www.vmdude.fr/en/scripts-en/cluster-load-in-powercli/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="color: #ff0000;">Edit 01.04.2013 : A few script modification following a very nice observation by hypervisor (as usual :p)</span></p>
<p style="text-align: justify;">It&#8217;s been a while we wanted to make a PowerCLI fancy display for vSphere cluster load, in a kind of way VIClient does for server load:</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-2965" title="get-clusterload_04" src="http://www.vmdude.fr/wp-content/uploads/2013/01/get-clusterload_041.png" alt="" width="554" height="153" /></p>
<p style="text-align: justify;">So here is a PowerCLI script that will display your cluster load in CLI:</p>
<p style="text-align: justify;"><a href="http://www.vmdude.fr/wp-content/uploads/2013/01/get-clusterload_01.png"><img class="aligncenter size-medium wp-image-2961" title="get-clusterload_01" src="http://www.vmdude.fr/wp-content/uploads/2013/01/get-clusterload_01-300x99.png" alt="" width="300" height="99" /></a></p>
<p style="text-align: justify;">We had as much fun making the <del>graphical</del> <a href="http://en.wikipedia.org/wiki/ASCII_art">ascii art</a> display as getting the statistics data (especially with the quest of perfect character in order to display filling bar ^^). This PowerCLI script is a <strong>Get-ClusterLoad</strong> function that took some non-mandatory parameters:</p>
<pre class="brush: plain; title: ; notranslate">.PARAMETER ClusterName
 The cluster name or names separated by coma
 .PARAMETER Quickstat
 Switch, when true the method to get stats is based on quickstats through summary child properties. If not, the method will use PerfManager instance with QueryPerf method in order to get non computed stats. The default for this switch is $true.</pre>
<p style="text-align: justify;">So this function can be used to display the load of all your clusters (default behavior with no argument):</p>
<pre class="brush: powershell; title: ; notranslate">Get-ClusterLoad</pre>
<p style="text-align: justify;">You can also display specific cluster load (by giving cluster name separated by comma):</p>
<pre class="brush: powershell; title: ; notranslate">Get-ClusterLoad -ClusterName vCluster01,vCluster02</pre>
<p style="text-align: justify;">You can also force reals stats usage instead of quick stats:</p>
<pre class="brush: powershell; title: ; notranslate">Get-ClusterLoad -Quickstat:$false</pre>
<p style="text-align: justify;">The 2 ways of retrieving statistics data are pretty much different regarding execution time. First of all, the default method will retrieve quick stats available with <strong>runtime.memory</strong> and <strong>runtime.cpu</strong> properties from cluster root resource pool (named <strong>Resources</strong>, with<em> ManagedObjectReference:ResourcePool</em> type) :</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-2973" title="get-clusterload_05" src="http://www.vmdude.fr/wp-content/uploads/2013/01/get-clusterload_05.png" alt="" width="509" height="362" /></p>
<p style="text-align: justify;">This method is fast as it&#8217;ll only retrieve already computed values in order to get cluster load (just a few seconds for almost 200 ESXi servers):</p>
<p style="text-align: justify;"><a href="http://www.vmdude.fr/wp-content/uploads/2013/01/get-clusterload_02.png"><img class="aligncenter size-medium wp-image-2962" title="get-clusterload_02" src="http://www.vmdude.fr/wp-content/uploads/2013/01/get-clusterload_02-300x152.png" alt="" width="300" height="152" /></a></p>
<p style="text-align: justify;">The second method (using <strong>-QuickStat:$false</strong> switch) will retrieve <strong>mem.consumed.average</strong> and <strong>cpu.usagemhz.average</strong> statistic counters from each cluster. This load will be an average one (so it can be slightly different from the load generated with the first method) and will be longer to compute (a little more than 2 minutes for almost 200 ESXi servers):</p>
<p style="text-align: justify;"><a href="http://www.vmdude.fr/wp-content/uploads/2013/01/get-clusterload_03.png"><img class="aligncenter size-medium wp-image-2963" title="get-clusterload_03" src="http://www.vmdude.fr/wp-content/uploads/2013/01/get-clusterload_03-300x152.png" alt="" width="300" height="152" /></a></p>
<p style="text-align: justify;">This function is not extremely useful as-is (except for the fun part with ASCII art ^^), but we&#8217;re working on a plugin that could be added to <a title="vCheck 6.0 est disponible" href="http://www.vmdude.fr/scripts/vcheck-6-0-est-disponible/">vCheck</a> in order to have these information in the sent report. We&#8217;ll update this post when it&#8217;ll be finished.</p>
<p style="text-align: justify;">The function displaying graph bar with  percentage input is the sub-function <strong>Show-PercentageGraph</strong> (line 37 to 50):</p>
<pre class="brush: powershell; title: ; notranslate">function Show-PercentageGraph([int]$percent, [int]$maxSize=20) {
	if ($percent -gt 100) { $percent = 100 }
	$warningThreshold = 60 # percent
	$alertThreshold = 80 # percent
	[string]$g = [char]9632 #this is the graph character, use [char]9608 for full square character
	if ($percent -lt 10) { write-host -nonewline &quot;0$percent [ &quot; } else { write-host -nonewline &quot;$percent [ &quot; }
	for ($i=1; $i -le ($barValue = ([math]::floor($percent * $maxSize / 100)));$i++) {
		if ($i -le ($warningThreshold * $maxSize / 100)) { write-host -nonewline -foregroundcolor darkgreen $g }
		elseif ($i -le ($alertThreshold * $maxSize / 100)) { write-host -nonewline -foregroundcolor yellow $g }
		else { write-host -nonewline -foregroundcolor red $g }
	}
	for ($i=1; $i -le ($traitValue = $maxSize - $barValue);$i++) { write-host -nonewline &quot;-&quot; }
	write-host -nonewline &quot; ]&quot;
}</pre>
<p style="text-align: justify;">You can modify the graph width in the sub-function <strong>Show-PercentageGraph</strong> (line 37):</p>
<pre class="brush: powershell; title: ; notranslate">[int]$maxSize=20</pre>
<p style="text-align: justify;">You can modify the threshold for color change for warning/alert in the sub-function <strong>Show-PercentageGraph</strong> (line 39/40):</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-2994" title="get-clusterload_06" src="http://www.vmdude.fr/wp-content/uploads/2013/01/get-clusterload_061.png" alt="" width="476" height="109" /></p>
<pre class="brush: powershell; title: ; notranslate">$warningThreshold = 60 # percent
$alertThreshold = 80 # percent</pre>
<p style="text-align: justify;"><div class="green-box">The script is available for download here (<em>just rename the extension in .ps1</em>) : <strong><a href="http://vmdude.free.fr/scripts/Get-ClusterLoad.ps1.txt">Get-ClusterLoad.ps1</a></strong></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vmdude.fr/en/scripts-en/cluster-load-in-powercli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HP ESXi driver vs Dropped packets</title>
		<link>http://www.vmdude.fr/en/how-to-en/hp-esxi-driver-vs-dropped-packets/</link>
		<comments>http://www.vmdude.fr/en/how-to-en/hp-esxi-driver-vs-dropped-packets/#comments</comments>
		<pubDate>Mon, 10 Dec 2012 08:57:46 +0000</pubDate>
		<dc:creator>Ammesiah</dc:creator>
				<category><![CDATA[How-To @en]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[alarm @en]]></category>
		<category><![CDATA[bl465c @en]]></category>
		<category><![CDATA[esxi @en]]></category>
		<category><![CDATA[esxtop @en]]></category>
		<category><![CDATA[esxupdate @en]]></category>
		<category><![CDATA[flexfabric @en]]></category>
		<category><![CDATA[tcpdump @en]]></category>
		<category><![CDATA[vCenter @en]]></category>
		<category><![CDATA[vib @en]]></category>

		<guid isPermaLink="false">http://www.vmdude.fr/?p=2924</guid>
		<description><![CDATA[As we were about to use some new BL465c G7 blades hosting ESXi servers installed with HP custom ISO image (available here, this image is built with needed drivers for G7/Gen8 hardware support, especially for FCoE onboard FlexFabric card), we started to receive some alert mail &#8230; <a href="http://www.vmdude.fr/en/how-to-en/hp-esxi-driver-vs-dropped-packets/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">As we were about to use some new <a href="http://h18000.www1.hp.com/products/quickspecs/13654_na/13654_na.pdf">BL465c G7 blades</a> hosting ESXi servers installed with HP custom ISO image (available <a href="https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPVM08">here</a>, this image is built with needed drivers for G7/Gen8 hardware support, especially for FCoE onboard FlexFabric card), we started to receive some alert mail on dropped packets (thanks to the famous &#8221;croissants-baguette&#8221; alarm from hypervisor available here: <a href="http://www.hypervisor.fr/?p=3877">Alarmes vCenter pour les network packets dropped</a>) :</p>
<p><a href="http://www.vmdude.fr/wp-content/uploads/2012/11/packets_dropped_01.png"><img class="aligncenter size-medium wp-image-2898" title="packets_dropped_01" src="http://www.vmdude.fr/wp-content/uploads/2012/11/packets_dropped_01-300x171.png" alt="" width="300" height="171" /></a></p>
<p style="text-align: justify;">We received theses alerts as there was no VM hosted on theses servers, so obviously no network load. As every troubleshooting should use <a href="http://communities.vmware.com/docs/DOC-9279"><strong>esxtop</strong></a>, we ran it and used the network context (key &#8216;n&#8217;):</p>
<p><a href="http://www.vmdude.fr/wp-content/uploads/2012/11/packets_dropped_02.png"><img class="aligncenter size-medium wp-image-2899" title="packets_dropped_02" src="http://www.vmdude.fr/wp-content/uploads/2012/11/packets_dropped_02-300x89.png" alt="" width="300" height="89" /></a></p>
<p style="text-align: justify;">What was weird is that we didn&#8217;t saw any Transmit Dropped Packet (<strong>%DRPTX</strong>) or Received Dropped Packet (<strong>%DRPRX</strong>) while vCenter performance graph displayed a lot of them.</p>
<p style="text-align: justify;">The vCenter counter is a <em>summation</em> one (i.e. a computed counter based on values retrieved from a time range), we wanted to check that <strong>esxtop</strong> counters stays null. So we ran <strong>esxtop</strong> in batch mode and redirect the results in a CSV file, and by <a href="http://communities.vmware.com/docs/DOC-5100">importing it in perfmon</a>, we were able to confirm that these counters stayed at 0&#8230;</p>
<p style="text-align: justify;">We spare you all the failed tests about finding the reason for the misinterpretation between esxtop counters and vCenter performance graph. In an ultimate try in order to understand the origin of this issue, we captured some network traffic on an ESXi server (there was still no VM running on this server and was in maintenance mode) using the command <a href="http://kb.vmware.com/kb/1031186"><strong>tcpdump-uw</strong></a> :</p>
<p><a href="http://www.vmdude.fr/wp-content/uploads/2012/11/packets_dropped_03.png"><img class="aligncenter size-medium wp-image-2900" title="packets_dropped_03" src="http://www.vmdude.fr/wp-content/uploads/2012/11/packets_dropped_03-300x122.png" alt="" width="300" height="122" /></a></p>
<pre class="brush: plain; title: ; notranslate">tcpdump-uw -i vmk0 -s 1514 -w traffic.pcap</pre>
<p style="text-align: justify;">This command will run some packet capture, listening on vmk0 interface (-i vmk0), saving all frames (-s 1514 for regular packet, or -s 9014 with Jumbo Frames) in <em><a href="http://wiki.wireshark.org/FileFormatReference/libpcap">pcap</a> </em>format in order to be able to analyze them in WireShark.</p>
<p style="text-align: justify;">Unfortunately, nothing seems to be strange/wrong or with bad destination which could explain why they&#8217;re dropped by vmnic&#8230;</p>
<p style="text-align: justify;">Last but not least, as HP ESXi image was quite new (just a few weeks), we thought may be embedded driver could be troublesome. OK they were supported by HP, but we had some painful past experiences with Flex10 driver resulting in PSOD or lost connection, so why not :p</p>
<p style="text-align: justify;">Using command <a href="http://kb.vmware.com/kb/1027206"><em>ethtool</em></a> on blades already in production and on new ones (with the same hardware configuration), we did saw differences regarding driver version (firmware was the same though). On older blades, version was 2.102.518.0 :</p>
<p><a href="http://www.vmdude.fr/wp-content/uploads/2012/11/packets_dropped_05.png"><img class="aligncenter size-medium wp-image-2902" title="packets_dropped_05" src="http://www.vmdude.fr/wp-content/uploads/2012/11/packets_dropped_05-300x139.png" alt="" width="300" height="139" /></a></p>
<p style="text-align: justify;">Since on new blades, version was 4.1.334.0 :</p>
<p><a href="http://www.vmdude.fr/wp-content/uploads/2012/11/packets_dropped_04.png"><img class="aligncenter size-medium wp-image-2901" title="packets_dropped_04" src="http://www.vmdude.fr/wp-content/uploads/2012/11/packets_dropped_04-300x139.png" alt="" width="300" height="139" /></a></p>
<p style="text-align: justify;">So we decided to downgrade ESXi driver for theses FlexFabric onboard card in order to get the same driver version as the old blades to be able to compare.</p>
<p style="text-align: justify;">You can do it with the <em>esxupdate </em>command, first, you have to get the installed package name:</p>
<pre class="brush: plain; title: ; notranslate">esxupdate query --vib-view | grep -i be2net</pre>
<p style="text-align: justify;">Then, you have to delete this package:</p>
<pre class="brush: plain; title: ; notranslate">esxupdate -b cross_oem-vmware-esx-drivers-net-be2net_400.4.1.334.0-1vmw.2.17.249663 remove</pre>
<p style="text-align: justify;">Finally, you install requested version (the bundle has been uploaded on a datastore in order to have an easy access from the ESXi):</p>
<pre class="brush: plain; title: ; notranslate">esxupdate --bundle=/vmfs/volumes/d3a29a6f-aa4be900/SVE-be2net-2.102.518.0-offline_bundle-329992.zip update</pre>
<p><a href="http://www.vmdude.fr/wp-content/uploads/2012/11/packets_dropped_06.png"><img class="aligncenter size-medium wp-image-2903" title="packets_dropped_06" src="http://www.vmdude.fr/wp-content/uploads/2012/11/packets_dropped_06-300x176.png" alt="" width="300" height="176" /></a></p>
<p style="text-align: justify;"><div class="yellow-box"><span style="text-decoration: underline;">Note:</span> You have to reboot ESXi server to load the new driver.</div></p>
<p style="text-align: justify;">Once the server rebooted, we didn&#8217;t see dropped packets anymore, even under heavy load!</p>
<p style="text-align: justify;">So we can never overemphasize the need of testing, testing, and always testing before starting production load (all components need to be stressed, CPU, memory, hard drives, etc&#8230;)! And having a good knowledge of your infrastructure is mandatory in order to know what&#8217;s going on (again thanks to the &#8220;croissants-baguette&#8221; alarm from <a href="http://www.hypervisor.fr">Super Hypervisor</a> !)</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-2945" title="super-visor_01" src="http://www.vmdude.fr/wp-content/uploads/2012/12/super-visor_012.png" alt="" width="500" height="420" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vmdude.fr/en/how-to-en/hp-esxi-driver-vs-dropped-packets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vCenter HTTP503 Service Unavailable error</title>
		<link>http://www.vmdude.fr/en/how-to-en/erreur-vcenter-http503-service-unavailable/</link>
		<comments>http://www.vmdude.fr/en/how-to-en/erreur-vcenter-http503-service-unavailable/#comments</comments>
		<pubDate>Wed, 21 Nov 2012 08:51:21 +0000</pubDate>
		<dc:creator>Ammesiah</dc:creator>
				<category><![CDATA[How-To @en]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[mob @en]]></category>
		<category><![CDATA[powercli @en]]></category>
		<category><![CDATA[sdk @en]]></category>
		<category><![CDATA[vCenter @en]]></category>
		<category><![CDATA[vmdk @en]]></category>
		<category><![CDATA[vmx @en]]></category>

		<guid isPermaLink="false">http://www.vmdude.fr/?p=2889</guid>
		<description><![CDATA[As we were working on a vCenter diff files plugin for *.vmx and *.vmdk (only for the descriptor, not the full -flat) in order to easily track changes made on theses files (as we wanted to know precisely what&#8217;s going on &#8230; <a href="http://www.vmdude.fr/en/how-to-en/erreur-vcenter-http503-service-unavailable/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">As we were working on a vCenter diff files plugin for *.vmx and *.vmdk (only for the descriptor, not the full -flat) in order to easily track changes made on theses files (as we wanted to know precisely what&#8217;s going on under the &#8220;Reconfigure Virtual Machine&#8221; tasks), we encountered some issues regarding vCenter Web Services.</p>
<p style="text-align: justify;">Aside, just for the fun, here is a little teaser of the <del>unfinished</del> plugin:</p>
<p style="text-align: justify;"><a href="http://www.vmdude.fr/wp-content/uploads/2012/11/vmxDiff_01.png"><img class="aligncenter size-medium wp-image-2867" title="vmxDiff_01" src="http://www.vmdude.fr/wp-content/uploads/2012/11/vmxDiff_01-300x228.png" alt="" width="300" height="228" /></a></p>
<p style="text-align: justify;">The issue we had started as we were running the script that get the *.vmx and *.vmdk files. The script started to get the files just well, but at some point (as we have a lot of VM) some errors showed up like this one:</p>
<p style="text-align: justify;"><a href="http://www.vmdude.fr/wp-content/uploads/2012/11/error_http503_01.png"><img class="aligncenter size-medium wp-image-2870" title="error_http503_01" src="http://www.vmdude.fr/wp-content/uploads/2012/11/error_http503_01-300x8.png" alt="" width="300" height="8" /></a></p>
<p style="text-align: justify;">In the same time, we had other problems, like vCenter MOB being unavailable or being unable to get VM console:</p>
<p style="text-align: justify;"><a href="http://www.vmdude.fr/wp-content/uploads/2012/11/error_http503_02.png"><img class="aligncenter size-medium wp-image-2871" title="error_http503_02" src="http://www.vmdude.fr/wp-content/uploads/2012/11/error_http503_02-300x92.png" alt="" width="300" height="92" /></a></p>
<p style="text-align: justify;"><a href="http://www.vmdude.fr/wp-content/uploads/2012/11/error_http503_03.png"><img class="aligncenter size-medium wp-image-2872" title="error_http503_03" src="http://www.vmdude.fr/wp-content/uploads/2012/11/error_http503_03-300x298.png" alt="" width="300" height="298" /></a></p>
<p style="text-align: justify;">After a quick search in VMware KB, we found the KB 2033822 : <a href="http://kb.vmware.com/kb/2033822">vCenter Server returns &#8220;503 Service Unavailable&#8221; errors</a></p>
<p style="text-align: justify;">Here is an excerpt of the KB that explain what was happening:</p>
<blockquote><p>The vpxd log files contain entries that indicate that a socket connection attempt failed because it timed out. If you run netstat -an on the vCenter Server host machine immediately after the error, you will see many connections where one end is port 8085 on the loopback and the other end is another port on the loopback. Some of these connections will be in the TIME_WAIT state.</p>
<p>vCenter Server uses TCP connections on the loopback (localhost) for Remote Procedure Calls (RPC) to dispatch client requests and to communicate with vCenter Server companion services. As a result, under heavy loads, vCenter Server creates many local TCP connections, then closes them and opens new ones. Some of the closed connections remain open at the server side in theTIME_WAIT state for some time (four minutes with default Windows settings). Because the number of client-side ports is limited, if vCenter Server uses the connections fast enough, at some point the client side tries to reuse a port while the server side still has a connection for this client port in the TIME_WAIT state.</p></blockquote>
<p style="text-align: justify;">As we checked the vCenter server for TIME_WAIT connections on 8085th port (with the command <strong>netstat -an | findstr &#8220;8085.*TIME_WAIT&#8221;</strong>), we saw that there was a lot of them:</p>
<p style="text-align: justify;"><a href="http://www.vmdude.fr/wp-content/uploads/2012/11/error_http503_04.png"><img class="aligncenter size-medium wp-image-2875" title="error_http503_04" src="http://www.vmdude.fr/wp-content/uploads/2012/11/error_http503_04-246x300.png" alt="" width="246" height="300" /></a></p>
<p style="text-align: justify;">The KB 1030246 : <a id="permalink-content" href="http://kb.vmware.com/kb/1030246" rel="bookmark">Port 8085 in VMware vCenter Server</a> give some explanation about port 8085 in vCenter:</p>
<blockquote>
<p style="text-align: justify;">This means that 8085 is the port where all the SDK connections to vCenter Server are being made, which in turn means that vSphere Client and any scripts built on vCenter Server SDK use this port.</p>
</blockquote>
<p style="text-align: justify;">And we can find the same alert as in the previous KB about heavy load:</p>
<blockquote>
<p style="text-align: justify;">If there are a lot of scripts or applications making connections with vCenter Server, it is possible to see a large number of ports in a TIME_WAIT state. This is normal because Windows keeps a socket in TIME_WAIT state for certain period of time (Twice Maximum Segment Lifetime, so this wait could be 4 minutes) before recycling it back for use.</p>
</blockquote>
<p style="text-align: justify;">As we have around 2000VM in this vCenter, and as we automate everything we can, we  had reach the limit for SDK connections ports. The KB gives the workaround in order to change that limit:</p>
<blockquote><p>By default, vCenter Server has 3976 ephemeral ports. If you are running out, you can increase the limit.</p>
<p>To allow more local ports to be available:</p>
<ul>
<li>Open Registry Editor (Regedt32.exe).</li>
<li>Locate this key in the registry:</li>
<li>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters</li>
<li>Right-click Parameters and choose New DWORD Value.</li>
<li>Enter MaxUserPort in the Name data box, enter 65534 (Decimal) in the Value data box, then click OK.</li>
<li>Note: The default setting for the MaxUserPort value is 5000 (Decimal).The maximum value for Windows Server 2003 is 65534 (Decimal).</li>
<li>Close Registry Editor.</li>
<li>Restart the machine for the new setting to take effect.</li>
</ul>
</blockquote>
<p style="text-align: justify;">If you want to fix this HTTP503 error without changing this value, you can wait for the 4 minutes delay in order to let Windows cleaning up the <strong>TIME_WAIT</strong> remaining connections, or you can restart the Windows service <strong>VMware VirtualCenter Management Webservices</strong> (for the most hurried ones).</p>
<p style="text-align: justify;">Finally, we were able to change this settings in order to keep using massive PowerCLI <del>scripts</del> OneLiner ^^</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vmdude.fr/en/how-to-en/erreur-vcenter-http503-service-unavailable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMworld 2012</title>
		<link>http://www.vmdude.fr/en/news-en/vmworld-2012/</link>
		<comments>http://www.vmdude.fr/en/news-en/vmworld-2012/#comments</comments>
		<pubDate>Wed, 07 Nov 2012 11:21:25 +0000</pubDate>
		<dc:creator>Ammesiah</dc:creator>
				<category><![CDATA[News @en]]></category>
		<category><![CDATA[vmware @en]]></category>
		<category><![CDATA[vmworld @en]]></category>

		<guid isPermaLink="false">http://www.vmdude.fr/?p=2847</guid>
		<description><![CDATA[Here is a late review from Europe VMworld 2012 that took place at Barcelona from october 9th to 11th. First we wanted to thank John Troyer and all VMware community for letting us attend to this VMworld! This is the second VMworld we &#8230; <a href="http://www.vmdude.fr/en/news-en/vmworld-2012/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Here is a <del>late</del> review from Europe VMworld 2012 that took place at Barcelona from october 9th to 11th. First we wanted to thank <a href="https://twitter.com/jtroyer">John Troyer</a> and all VMware community for letting us attend to this VMworld!</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-2806" style="margin-top: 0.4em;" title="VMworld2012" src="http://www.vmdude.fr/wp-content/uploads/2012/11/VMworld2012.jpg" alt="" width="600" height="206" /></p>
<p style="text-align: justify;">This is the second VMworld we assist to and this time we&#8217;d the chance of going with our pal <a href="http://www.hypervisor.fr">hypervisor.fr</a> and to meet <a href="https://twitter.com/tsugliani">Timo</a> there !</p>
<p style="text-align: justify;">This year was radically different from the last one. Maybe because we were not alone this time, or because it wasn&#8217;t the first anymore :p In any case, we really enjoyed a lot !</p>
<p style="text-align: justify;">Thanks to the last year experience, we&#8217;re able to better schedule this one, and to better focus on meetings than sessions. What we wanted to say, is that unless you had some questions to ask during a session, you can catch them up with <em>Online</em> <em>Sessions Videos</em>. Of course it&#8217;s not the same thing as living it, but there are so many things to see/do, you have to prioritize :p At the end, there were so many people we wanted to meet we switch on &#8220;<a href="http://en.wikipedia.org/wiki/Where's_Wally%3F">Where is waldo?</a>&#8221; mode :p</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-2813" title="waldo1_xlarge" src="http://www.vmdude.fr/wp-content/uploads/2012/11/waldo1_xlarge.jpg" alt="" width="336" height="226" /></p>
<p style="text-align: justify;">We wanted to focus on <em>Group Discussion</em> and <em>Meet The Expert</em> sessions, basically becauses theses are more &#8220;intimate&#8221; and everything is based on attendees participation (the <em>Meet The Expert</em> session was an awesome 2:1 chat with <a href="https://twitter.com/DuncanYB">Duncan </a>:p ).</p>
<p style="text-align: justify;">One of the nice session we attended to was the one directed by Kit Colbert on <em>Understanding Virtualized Memory Performance Management (<strong>INF-VSP1729</strong>)</em>, we took some pictures:</p>

<a href='http://www.vmdude.fr/en/news/vmworld-2012/attachment/20121010_sessionvmotionvmworld2012_001-img_0317/' title='20121010_SessionVmotionVMworld2012_001-IMG_0317'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121010_SessionVmotionVMworld2012_001-IMG_0317-150x150.jpg" class="attachment-thumbnail" alt="20121010_SessionVmotionVMworld2012_001-IMG_0317" title="20121010_SessionVmotionVMworld2012_001-IMG_0317" /></a>
<a href='http://www.vmdude.fr/en/news/vmworld-2012/attachment/20121010_sessionvmotionvmworld2012_002-img_0318/' title='20121010_SessionVmotionVMworld2012_002-IMG_0318'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121010_SessionVmotionVMworld2012_002-IMG_0318-150x150.jpg" class="attachment-thumbnail" alt="20121010_SessionVmotionVMworld2012_002-IMG_0318" title="20121010_SessionVmotionVMworld2012_002-IMG_0318" /></a>
<a href='http://www.vmdude.fr/en/news/vmworld-2012/attachment/20121010_sessionvmotionvmworld2012_003-img_0319/' title='20121010_SessionVmotionVMworld2012_003-IMG_0319'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121010_SessionVmotionVMworld2012_003-IMG_0319-150x150.jpg" class="attachment-thumbnail" alt="20121010_SessionVmotionVMworld2012_003-IMG_0319" title="20121010_SessionVmotionVMworld2012_003-IMG_0319" /></a>
<a href='http://www.vmdude.fr/en/news/vmworld-2012/attachment/20121010_sessionvmotionvmworld2012_004-img_0320/' title='20121010_SessionVmotionVMworld2012_004-IMG_0320'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121010_SessionVmotionVMworld2012_004-IMG_0320-150x150.jpg" class="attachment-thumbnail" alt="20121010_SessionVmotionVMworld2012_004-IMG_0320" title="20121010_SessionVmotionVMworld2012_004-IMG_0320" /></a>
<a href='http://www.vmdude.fr/en/news/vmworld-2012/attachment/20121010_sessionvmotionvmworld2012_005-img_0321/' title='20121010_SessionVmotionVMworld2012_005-IMG_0321'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121010_SessionVmotionVMworld2012_005-IMG_0321-150x150.jpg" class="attachment-thumbnail" alt="20121010_SessionVmotionVMworld2012_005-IMG_0321" title="20121010_SessionVmotionVMworld2012_005-IMG_0321" /></a>
<a href='http://www.vmdude.fr/en/news/vmworld-2012/attachment/20121010_sessionvmotionvmworld2012_006-img_0323/' title='20121010_SessionVmotionVMworld2012_006-IMG_0323'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121010_SessionVmotionVMworld2012_006-IMG_0323-150x150.jpg" class="attachment-thumbnail" alt="20121010_SessionVmotionVMworld2012_006-IMG_0323" title="20121010_SessionVmotionVMworld2012_006-IMG_0323" /></a>
<a href='http://www.vmdude.fr/en/news/vmworld-2012/attachment/20121010_sessionvmotionvmworld2012_007-img_0324/' title='20121010_SessionVmotionVMworld2012_007-IMG_0324'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121010_SessionVmotionVMworld2012_007-IMG_0324-150x150.jpg" class="attachment-thumbnail" alt="20121010_SessionVmotionVMworld2012_007-IMG_0324" title="20121010_SessionVmotionVMworld2012_007-IMG_0324" /></a>
<a href='http://www.vmdude.fr/en/news/vmworld-2012/attachment/20121010_sessionvmotionvmworld2012_008-img_0325/' title='20121010_SessionVmotionVMworld2012_008-IMG_0325'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121010_SessionVmotionVMworld2012_008-IMG_0325-150x150.jpg" class="attachment-thumbnail" alt="20121010_SessionVmotionVMworld2012_008-IMG_0325" title="20121010_SessionVmotionVMworld2012_008-IMG_0325" /></a>

<p style="text-align: justify;">Then, there was the traditionnal Alan and Luc &#8220;Must-See&#8221; <em>PowerCLI Best Practices: The Return! (<strong>INF-VSP1329</strong>)</em> :</p>

<a href='http://www.vmdude.fr/en/news/vmworld-2012/attachment/20121011_sessionpowerclibestpracticethereturnaveclucdekensetalanrenoufvmworld2012_001-img_0442/' title='20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_001-IMG_0442'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_001-IMG_0442-150x150.jpg" class="attachment-thumbnail" alt="20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_001-IMG_0442" title="20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_001-IMG_0442" /></a>
<a href='http://www.vmdude.fr/en/news/vmworld-2012/attachment/20121011_sessionpowerclibestpracticethereturnaveclucdekensetalanrenoufvmworld2012_003-img_0444/' title='20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_003-IMG_0444'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_003-IMG_0444-150x150.jpg" class="attachment-thumbnail" alt="20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_003-IMG_0444" title="20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_003-IMG_0444" /></a>
<a href='http://www.vmdude.fr/en/news/vmworld-2012/attachment/20121011_sessionpowerclibestpracticethereturnaveclucdekensetalanrenoufvmworld2012_006-img_0447/' title='20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_006-IMG_0447'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_006-IMG_0447-150x150.jpg" class="attachment-thumbnail" alt="20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_006-IMG_0447" title="20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_006-IMG_0447" /></a>
<a href='http://www.vmdude.fr/en/news/vmworld-2012/attachment/20121011_sessionpowerclibestpracticethereturnaveclucdekensetalanrenoufvmworld2012_007-img_0448/' title='20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_007-IMG_0448'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_007-IMG_0448-150x150.jpg" class="attachment-thumbnail" alt="20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_007-IMG_0448" title="20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_007-IMG_0448" /></a>
<a href='http://www.vmdude.fr/en/news/vmworld-2012/attachment/20121011_sessionpowerclibestpracticethereturnaveclucdekensetalanrenoufvmworld2012_008-img_0449/' title='20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_008-IMG_0449'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_008-IMG_0449-150x150.jpg" class="attachment-thumbnail" alt="20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_008-IMG_0449" title="20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_008-IMG_0449" /></a>

<p style="text-align: justify;">We&#8217;re also able to assist the #NotSupported #BrownBag sesssion by <a href="https://twitter.com/lamw">William</a> :</p>

<a href='http://www.vmdude.fr/en/news/vmworld-2012/attachment/20121009_sessionnotsupportedavecwilliamlamvmworld2012_002-img_0289/' title='20121009_SessionNotSupportedAvecWilliamLamVMworld2012_002-IMG_0289'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121009_SessionNotSupportedAvecWilliamLamVMworld2012_002-IMG_0289-150x150.jpg" class="attachment-thumbnail" alt="20121009_SessionNotSupportedAvecWilliamLamVMworld2012_002-IMG_0289" title="20121009_SessionNotSupportedAvecWilliamLamVMworld2012_002-IMG_0289" /></a>
<a href='http://www.vmdude.fr/en/news/vmworld-2012/attachment/20121009_sessionnotsupportedavecwilliamlamvmworld2012_006-img_0293/' title='20121009_SessionNotSupportedAvecWilliamLamVMworld2012_006-IMG_0293'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121009_SessionNotSupportedAvecWilliamLamVMworld2012_006-IMG_0293-150x150.jpg" class="attachment-thumbnail" alt="20121009_SessionNotSupportedAvecWilliamLamVMworld2012_006-IMG_0293" title="20121009_SessionNotSupportedAvecWilliamLamVMworld2012_006-IMG_0293" /></a>

<p style="text-align: justify;">We didn&#8217;t miss the occasion to take some pictures with the PowerCLI Gods <a href="https://twitter.com/alanrenouf">Alan</a> and <a href="https://twitter.com/LucD22">Luc</a> :</p>

<a href='http://www.vmdude.fr/en/?attachment_id=2829' title='20121010_GroupDiscussionPowerCLIAvecAlanRenoufVMworld2012_007-IMG_0314'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121010_GroupDiscussionPowerCLIAvecAlanRenoufVMworld2012_007-IMG_0314-150x150.jpg" class="attachment-thumbnail" alt="20121010_GroupDiscussionPowerCLIAvecAlanRenoufVMworld2012_007-IMG_0314" title="20121010_GroupDiscussionPowerCLIAvecAlanRenoufVMworld2012_007-IMG_0314" /></a>
<a href='http://www.vmdude.fr/en/?attachment_id=2830' title='20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_012-IMG_0455'><img width="150" height="150" src="http://www.vmdude.fr/wp-content/uploads/2012/11/20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_012-IMG_0455-150x150.jpg" class="attachment-thumbnail" alt="20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_012-IMG_0455" title="20121011_SessionPowerCLIBestPracticeTheReturnAvecLucDekensEtAlanRenoufVMworld2012_012-IMG_0455" /></a>

<p>Finally we had the chance to chat with a lot of awesome guys: <a href="https://twitter.com/LucD22">Luc</a>, <a href="https://twitter.com/alanrenouf">Alan</a>, <a href="https://twitter.com/DuncanYB">Duncan</a>, <a href="https://twitter.com/VMwareStorage">Cormak</a>, <a href="https://twitter.com/lamw">William</a>. We didn&#8217;t had the chance to see <a href="https://twitter.com/FrankDenneman">Franck</a>, we&#8217;ll try to catch up on the next belgium VMUG :p</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vmdude.fr/en/news-en/vmworld-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
