<?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>laurensdekoning.nl &#187; vCenter</title>
	<atom:link href="http://laurensdekoning.nl/category/vmware/vcenter/feed/" rel="self" type="application/rss+xml" />
	<link>http://laurensdekoning.nl</link>
	<description>All about VMware, NetApp, PowerShell, Windows, Microsoft and Linux in general.</description>
	<lastBuildDate>Thu, 19 Jan 2012 13:22:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PowerCLI: Unfreeze/Resume Your Virtual Machines</title>
		<link>http://laurensdekoning.nl/powercli-unfreezeresume-your-virtual-machines/</link>
		<comments>http://laurensdekoning.nl/powercli-unfreezeresume-your-virtual-machines/#comments</comments>
		<pubDate>Tue, 17 May 2011 12:25:31 +0000</pubDate>
		<dc:creator>laez</dc:creator>
				<category><![CDATA[ESX]]></category>
		<category><![CDATA[NetApp]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[freeze]]></category>
		<category><![CDATA[nas]]></category>
		<category><![CDATA[paused]]></category>
		<category><![CDATA[posh]]></category>
		<category><![CDATA[san]]></category>
		<category><![CDATA[stalled]]></category>
		<category><![CDATA[unpause]]></category>
		<category><![CDATA[vi toolkit]]></category>

		<guid isPermaLink="false">http://laez.nl/?p=255</guid>
		<description><![CDATA[NOTE: I published this article a bit earlier, but due to the fact that this was a not-yet-released feature I removed this post once again. Since this feature is released for a long time already I deciced to re-publish it, enjoy! &#8211; Last night I got a message from our monitoring system that one of [...]]]></description>
			<content:encoded><![CDATA[<p>NOTE: <em>I published this article a bit earlier, but due to the fact that this was a not-yet-released feature I removed this post once again. Since this feature is released for a long time already I deciced to re-publish it, enjoy!</em><br />
&#8211;</p>
<p>Last night I got a message from our monitoring system that one of our NFS-volumes on our NetApp SAN was almost full but at this particular moment I was driving home and by the time I got home the NFS volume was completely full which resulted in the Virtual Machines freezing up.</p>
<p>After sizing up the NFS volume the machines do not automatically start to &#8216;unfreeze&#8217; again, and they were waiting for me to answer the question in the vSphere client to &#8220;Retry&#8221; or &#8220;Abort&#8221;. Ofcourse I could&#8217;ve just answered &#8220;Retry&#8221; on each machine to get them going again, but I thought it would be nicer to solve this with the almighty PowerCLI since it were like 30 Virtual Machines.</p>
<pre><span style="color: #5f9ea0; font-weight: bold;">Get-Cluster</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">Your Cluster</span><span style="color: #800000;">"</span><span style="color: #000000;"> | </span><span style="color: #5f9ea0; font-weight: bold;">Get-VM</span><span style="color: #000000;"> | </span><span style="color: #5f9ea0; font-weight: bold;">Sort</span><span style="color: #000000;"> | </span><span style="color: #5f9ea0; font-weight: bold;">Get-VMQuestion</span><span style="color: #000000;"> | </span><span style="color: #5f9ea0; font-weight: bold;">`</span><span style="color: #000000;">
</span><span style="color: #5f9ea0; font-weight: bold;">Set-VMQuestion</span><span style="color: #000000;"> </span><span style="color: #5f9ea0; font-style: italic;">-Option</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">Retry</span><span style="color: #800000;">"</span><span style="color: #000000;"> </span><span style="color: #5f9ea0; font-style: italic;">-Confirm</span><span style="color: #000000;">:</span><span style="color: #800080;">$false</span></pre>
<p>This will result in answering all machines waiting to continue with the &#8220;Retry&#8221; option in your cluster (in this example I used &#8220;Your Cluster&#8221; as clustername).</p>
<p>I hope you won&#8217;t be needing it much, but if you do it will be handy <img src='http://laurensdekoning.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://laurensdekoning.nl/powercli-unfreezeresume-your-virtual-machines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware vCenter Server Heartbeat</title>
		<link>http://laurensdekoning.nl/vmware-vcenter-server-heartbeat-full-article/</link>
		<comments>http://laurensdekoning.nl/vmware-vcenter-server-heartbeat-full-article/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 07:11:54 +0000</pubDate>
		<dc:creator>laez</dc:creator>
				<category><![CDATA[ESX]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Heartbeat]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[availability]]></category>
		<category><![CDATA[beat]]></category>
		<category><![CDATA[center]]></category>
		<category><![CDATA[channel]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[drs]]></category>
		<category><![CDATA[ha]]></category>
		<category><![CDATA[heart]]></category>
		<category><![CDATA[heartbeat]]></category>
		<category><![CDATA[high]]></category>
		<category><![CDATA[primary]]></category>
		<category><![CDATA[secondary]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[virtual]]></category>

		<guid isPermaLink="false">http://laez.nl/?p=341</guid>
		<description><![CDATA[Introduction: First of all I would like to say I’ve been very busy lately. Therefore I haven’t had much time to spend on my blog. Too bad, cause I really enjoy publishing articles like this. Anyway, in the past few months I’ve done several attempts to convince my manager to acquire a license for vCenter [...]]]></description>
			<content:encoded><![CDATA[<h4><img class="size-full wp-image-365 alignright" style="border: 0pt none;" title="VMW_09Q3_LOGO_Corp_Gray" src="http://laez.nl/wp-content/uploads/2010/07/VMW_09Q3_LOGO_Corp_Gray.gif" alt="" width="172" height="27" /></h4>
<h4>Introduction:</h4>
<p>First of all I would like to say I’ve been very busy lately. Therefore I haven’t had much time to spend on my blog. Too bad, cause I really enjoy publishing articles like this. Anyway, in the past few months I’ve done several attempts to convince my manager to acquire a license for vCenter Server Heartbeat in which in eventually succeeded.</p>
<p>Since the implementation of our vSphere Infrastructure our environment has grown enormously and there are just about 15 datacenters connected to our vCenter Server. Which really makes your ‘single node’ vCenter Server really a single point of failure.</p>
<h4>Why use vCenter Heartbeat?</h4>
<p>There are several reasons why an organization should consider going to use a Heartbeat setup for their VMware vSphere Infrastructure:</p>
<ul>
<li><strong>Continuity of your Clusters</strong><em> (DRS)<br />
Without your vCenter Server your Clusters won’t be able to function</em></li>
<li><strong>Manageability<br />
</strong>It’s really a must with several datacenters in your vCenter Server with their own administrators to be able to manage their virtual infrastructure</li>
<li><strong>Backup</strong><br />
In case your backup software uses your vCenter to index your virtual infrastructure and use it in it’s backup process it’s essential your vCenter Server is reachable.</li>
</ul>
<h4>Installation Methods</h4>
<p>There are several methods of deployment of your Heartbeat setup: V2V (Virtual to Virtual), V2P (Virtual to Physical) or P2P (Physical to Physical).</p>
<p>In our case we chose for the P2P (Physical to Physical) solution because I really insisted the secondary server was just as powerful as the primary in case a failover situation would last longer than just a few hours.</p>
<h4>vCenter Server Hardware</h4>
<p>VMware insists on –when using the Physical to Physical solution- both of your vCenter Servers (Primary and Secondary) have similar hardware. In our case our vCenter Servers consist of the following:</p>
<table style="height: 61px;" border="1" cellspacing="0" cellpadding="0" width="450">
<tbody>
<tr>
<td width="400" valign="top">
<pre>Brand/model: HP ProLiant DL360 G6
Processors: 2x Intel Xeon E5540 2.53GHz
Memory: 12G DDR3 Registered (6GB per CPU)
Disk(s): 2x HP 72GB 15K Dual Port (RAID-1)
My design for vCenter Server Heartbeat</pre>
</td>
</tr>
</tbody>
</table>
<h4>Design for vCenter Server HeartBeat</h4>
<p><a href="../wp-content/uploads/2010/07/vCenter-HeartBeat-Setup.jpg"><img class="size-medium wp-image-343 alignright" title="vCenter HeartBeat Setup" src="../wp-content/uploads/2010/07/vCenter-HeartBeat-Setup-300x199.jpg" alt="" width="300" height="199" /></a>In our infrastructure we have several datacenters spread all of the the country connected to each other by a fiber (WAN) network. Two locations (sites) are really close to each other and are also connected by a separate fiber connection.</p>
<p>The ideal situation of this nearby location is that it’s using the same physical network as our site does and most of the VLAN’s designated for servers are available on both sites. So this location/site is ideal as a backup-location.</p>
<p>When installing vCenter Heartbeat you are able to select if you are installing on a WAN of a LAN infrastructure. Since this is is really a LAN-situation we choose the LAN-setup. Primarily because we are able to use a single Public IP address for our vCenter Server which simplifies management.</p>
<p>For this setup I’m using our default Server VLAN to put our Public IP address in and I’ve created a separate VLAN for the Channel (heartbeat/synchronization) communication of vCenter Heartbeat.</p>
<p>I’ve simplified our infrastructure in the image below so it’s main and only focus is on our vCenter Server Heartbeat setup. In this case the public IP Address is <strong>10.15.1.17</strong> and is in a different subnet/VLAN than our Heartbeat Channel. The primary vCenter Server has <strong>10.15.210.11</strong> and the secondary has <strong>10.15.210.12</strong>.</p>
<p>The channel is used by Heartbeat to synchronize the registry, filesystem of the Heartbeat nodes and to communicate from the primary to the secondary. This channel is also used to check if the other &#8216;node’ is still alive and to eventually initiate a failover if it’s not.</p>
<h4>Packet Filter (Neverfail)</h4>
<p>As you might have seen in the design above is both the primary and the secondary server have the same name and public IP address. There is a really simple explanation for this: when you choose to install Heartbeat with a LAN-setup it will assume both the vCenters will have the same IP address and name. This is because during the setup on the primary node the setup will create a System State backup which you will restore on the secondary  node afterwards. From that moment on the secondary node is equal to the primary node in every way.</p>
<p>To prevent both the primary and the secondary server from having their public adapters active on the network VMware has implemented a &#8220;Neverfail Packet Filter Driver&#8221; which will be installed on the Public network adapters during the installation of Heartbeat.<br />
The idea of the Packet Filter is really simple: Heartbeat will disable the Packet Filter on the node that is currently active. During a failover the Heartbeat software will enable the Packet Filter on the node that will be inactive and disable it on the node that will be the active node from that moment on.</p>
<h4>vCenter Databases</h4>
<p>There are several ways to host your vCenter databases and in our infrastructure we chose to host our databases on a seperate dedicated database server. This database server is currently running Microsoft SQL Server 2005 Standard and we are going to migrate the databases to a Microsoft SQL Server 2008 Cluster soon for the simple reason that if you make your front-end redundant it’s seems just as logic to do the same for your back-end.</p>
<h4>Installing/implementing vCenter Server Heartbeat</h4>
<p>Luckily VMware really thought of this: yes, it is very well possible to implement Heartbeat on your running environment. If this wasn’t possible it really would be an hassle to implement it.</p>
<p>The documentation of Heartbeat comes in two documents: quick setup and the reference guide. In my opinion these documents contain most of the steps you need to take to install Heartbeat so there is no need for me to describe each step. Although in my opinion the Quick guide really misses out on some detail so I would suggest the Reference Guide.</p>
<p>In the global steps below to take to implement Heartbeat I will indicate which action is required on what server by starting the line with “Primary”, “Secondary” or even “Both”:</p>
<ul>
<li><em>Secondary</em>: make sure the hardware (CPU, Memory, Disks) is similar to your primary server</li>
<li><em>Secondary</em>: install the exact same operating system as you have on your primary server. In our case this is Windows Server 2008 x64 Standard. Give it a temporary IP (DHCP if you will) and a bogus hostname. This will be overwritten when Heartbeat sets up your secondary node with your primary node’s data.</li>
<li><em>Both</em>: also make sure you have your ILO configuration on both the primary as the secondary server to be able to reach the servers in some of the steps of the installation</li>
<li><em>Both</em>: make sure the Windows Update level on both servers is the same.</li>
<li><em>Both</em>: in case you are using Windows Server 2008 you need to install some features on the server before you can start the installation: <strong>Backup</strong>, <strong>Backup-Features</strong> and <strong>Backup-Tools</strong>.</li>
<li><em>Both</em>: <em>Very important</em>, installing Heartbeat will <em>NOT</em> work properly when you have NIC Teaming enabled. If you want to use NIC Teaming: set it up when the whole Heartbeat setup<em> is finished</em>!</li>
<li><em>Primary</em>: install Heartbeat and follow the steps on the screen, make sure you have some storage space on the network available to store the temporary backup-files to transfer the backup which contains the identity of your primary server to your secondary.Important: make sure your secondary server is able to reach this location.</li>
<li><em>Secondary</em>: as you probably have followed all of the steps on your primary node the setup will tell you to continue your setup on your Secondary node.</li>
<li><em>Secondary</em>: don’t forget to manually change your Channel IP to the proper IP you have reserved for the secondary node after the Heartbeat setup rebooted your server!</li>
<li><em>Both</em>: this is for both servers, but has to be configured only once in your Heartbeat configuration. You will need to provide a service account to the vCenter Service Plugin of Heartbeat that has enough access on your vCenter Server to monitor if it’s down or up.I would suggest if you are running vCenter Server on a service account like I do you use that account for this purpose.</li>
</ul>
<h4>Final words</h4>
<p>Some of you are eager to try this baby out. Well that’s possible: you are able to use vCenter Server Heartbeat in trial for 60 days. The only problem is: you need to be able to download it from the VMware download site. I’m pretty sure that if you contact customer service they will provide you with a link to do so. The great thing about running the trial is that if you don’t like it or your trial expires without you inserting a permanent license you still able to uninstall it in a nice and easy way and continue with your single vCenter Server.</p>
<p>As I am really curious about your experiences with vCenter Heartbeat: please reply or comment to this post to share your installation experiences/issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://laurensdekoning.nl/vmware-vcenter-server-heartbeat-full-article/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>PowerCLI: Migrate VM&#8217;s to another VLAN/Portgroup</title>
		<link>http://laurensdekoning.nl/powercli-migrate-vms-to-another-vlanportgroup/</link>
		<comments>http://laurensdekoning.nl/powercli-migrate-vms-to-another-vlanportgroup/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 12:57:44 +0000</pubDate>
		<dc:creator>laez</dc:creator>
				<category><![CDATA[ESX]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[migrate]]></category>
		<category><![CDATA[move]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[portgroup]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://laez.nl/powercli-migrate-vms-to-another-vlanportgroup/</guid>
		<description><![CDATA[Scenario: Suppose you have several Virtual Machines running in a VLAN of which you decide they should be migrated to a new VLAN because of infrastructural changes in your network. Mind you this is only handy if the machines you are about to migrate use DHCP to get their network addresses. Approach: First of all [...]]]></description>
			<content:encoded><![CDATA[<h5></h5>
<h5>Scenario:</h5>
<p>Suppose you have several Virtual Machines running in a VLAN of which you decide they should be migrated to a new VLAN because of infrastructural changes in your network. Mind you this is only handy if the machines you are about to migrate use DHCP to get their network addresses.</p>
<h5>Approach:</h5>
<p>First of all you need to make sure all the ESX-servers in your cluster have the ability to use that VLAN so you need to have your your switchports/trunks tagged with it.</p>
<p>Secondly you need to add the new VLAN (portgroup) to the complete cluster, in this example I’m using vSwitch0 as your Virtual Switch name, make sure you change it into what applies to you in case if it’s different.</p>
<pre><span style="color: #5f9ea0; font-weight: bold">Get-Cluster</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">Your Cluster</span><span style="color: #800000">"</span><span style="color: #000000"> | </span><span style="color: #5f9ea0; font-weight: bold">Get-VMHost</span><span style="color: #000000"> | </span><span style="color: #5f9ea0; font-weight: bold">Get-VirtualSwitch</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-Name</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">vSwitch0</span><span style="color: #800000">"</span><span style="color: #5f9ea0; font-weight: bold">`</span><span style="color: #000000">
| </span><span style="color: #5f9ea0; font-weight: bold">New-VirtualPortGroup</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-Name</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">New VLAN</span><span style="color: #800000">"</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-VLanId</span><span style="color: #000000"> </span><span style="color: #000000">123</span></pre>
<p>This will add the “New VLAN” to all of the ESX Servers in “Your Cluster” with VLAN ID 123 on vSwitch0.</p>
<p>Since all the ESX Server are provided with access to the new VLAN to place their Virtual Machines in it’s time to migrate them to the new VLAN. There are two ways you can do this:</p>
<p>The first is to configure all the network adapters of all VM’s from the old to the new VLAN/Portgroup and the second is to do exactly the same but to shortly disconnect/reconnect the network adapters of the Virtual Machines to initiate a DHCP request for your VM’s.</p>
<h6>First method:</h6>
<pre><span style="color: #5f9ea0; font-weight: bold">Get-Cluster</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">Your Cluster</span><span style="color: #800000">"</span><span style="color: #000000"> | </span><span style="color: #5f9ea0; font-weight: bold">Get-VM</span><span style="color: #000000"> | </span><span style="color: #5f9ea0; font-weight: bold">Get-NetworkAdapter</span><span style="color: #000000"> | </span><span style="color: #5f9ea0; font-weight: bold">`</span><span style="color: #000000">
</span><span style="color: #5f9ea0; font-weight: bold">Where</span><span style="color: #000000"> { </span><span style="color: #800080">$_</span><span style="color: #000000">.NetworkName </span><span style="color: #ff0000">-eq</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">Old VLAN</span><span style="color: #800000">"</span><span style="color: #000000"> } | </span><span style="color: #5f9ea0; font-weight: bold">`</span><span style="color: #000000">
</span><span style="color: #5f9ea0; font-weight: bold">Set-NetworkAdapter</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-NetworkName</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">New VLAN</span><span style="color: #800000">"</span></pre>
<h6>Second method:</h6>
<pre><span style="color: #5f9ea0; font-weight: bold">Get-Cluster</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">Your Cluster</span><span style="color: #800000">"</span><span style="color: #000000"> | </span><span style="color: #5f9ea0; font-weight: bold">Get-VM</span><span style="color: #000000"> | </span><span style="color: #5f9ea0; font-weight: bold">Get-NetworkAdapter</span><span style="color: #000000"> | </span><span style="color: #5f9ea0; font-weight: bold">`</span><span style="color: #000000">
</span><span style="color: #5f9ea0; font-weight: bold">Where</span><span style="color: #000000"> { </span><span style="color: #800080">$_</span><span style="color: #000000">.NetworkName </span><span style="color: #ff0000">-eq</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">Old VLAN</span><span style="color: #800000">"</span><span style="color: #000000"> } | </span><span style="color: #5f9ea0; font-weight: bold">`</span><span style="color: #000000">
</span><span style="color: #5f9ea0; font-weight: bold">Set-NetworkAdapter</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-NetworkName</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">New VLAN</span><span style="color: #800000">"</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-Connected</span><span style="color: #000000">:</span><span style="color: #800080">$false</span><span style="color: #000000"> | </span><span style="color: #5f9ea0; font-weight: bold">`</span><span style="color: #000000">
</span><span style="color: #5f9ea0; font-weight: bold">Set-NetworkAdapter</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-Connected</span><span style="color: #000000">:</span><span style="color: #800080">$True</span></pre>
<h5>Note:</h5>
<p>Then again if you do use static addresses for your Virtual Machines you will need to configure them within the Operating Systems afterwards. Although that might be scriptable I haven’t found a way to do this.</p>
]]></content:encoded>
			<wfw:commentRss>http://laurensdekoning.nl/powercli-migrate-vms-to-another-vlanportgroup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vizioncore Releases vRanger v4.1 DPP</title>
		<link>http://laurensdekoning.nl/vizioncore-releases-vranger-v4-1-dpp/</link>
		<comments>http://laurensdekoning.nl/vizioncore-releases-vranger-v4-1-dpp/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 11:03:21 +0000</pubDate>
		<dc:creator>laez</dc:creator>
				<category><![CDATA[ESX]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[Vizioncore]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[center]]></category>
		<category><![CDATA[core]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[crashed]]></category>
		<category><![CDATA[crashes]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[fixed]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[vizion]]></category>
		<category><![CDATA[vranger]]></category>

		<guid isPermaLink="false">http://laez.nl/?p=289</guid>
		<description><![CDATA[Vizioncore finally released the new version of vRanger. The reason why I’m really happy with that is that the issue that vRanger 4.0 DPP crashed Virtual Center at startup has been resolved! Everyone who had or still has this problem is advised to upgrade their vRanger versions to have a proper working environment and to [...]]]></description>
			<content:encoded><![CDATA[<p>Vizioncore finally released the <a href="http://www.vizioncore.com/products/vRangerPro/index.php" target="_blank">new version of vRanger</a>. The reason why I’m really happy with that is that the issue that <a href="http://laez.nl/vizioncore-vranger-4-0-pro-crashes-vcenter-2-5-update-4-update-5/" target="_blank">vRanger 4.0 DPP crashed Virtual Center at startup</a> has been resolved!</p>
<p>Everyone who had or still has this problem is advised to upgrade their vRanger versions to have a proper working environment and to stop your worries about if your Virtual Center would crash at startup.</p>
<p>The new version is <strong>4.1 DPP</strong> and can be found on the <a href="http://downloads.vizioncore.com/" target="_blank"><strong>Vizioncore Download Site</strong></a>.</p>
<p>Other fixes, changes and new features can be found in the <a href="http://www.vizioncore.com/products/vRangerPro/documents/release-notes.php" target="_blank">Release Notes of vRanger</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://laurensdekoning.nl/vizioncore-releases-vranger-v4-1-dpp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Vizioncore vRanger 4.0 Pro Crashes vCenter 2.5 Update 3, 4 and 5</title>
		<link>http://laurensdekoning.nl/vizioncore-vranger-4-0-pro-crashes-vcenter-2-5-update-4-update-5/</link>
		<comments>http://laurensdekoning.nl/vizioncore-vranger-4-0-pro-crashes-vcenter-2-5-update-4-update-5/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 14:19:21 +0000</pubDate>
		<dc:creator>laez</dc:creator>
				<category><![CDATA[vCenter]]></category>
		<category><![CDATA[Vizioncore]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[center]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[crashed]]></category>
		<category><![CDATA[crashes]]></category>
		<category><![CDATA[dpp]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[virtual center]]></category>
		<category><![CDATA[visioncore]]></category>
		<category><![CDATA[vranger]]></category>

		<guid isPermaLink="false">http://laez.nl/vizioncore-vranger-4-0-pro-crashes-vcenter-2-5-update-4-update-5/</guid>
		<description><![CDATA[Update (09/25/2009): Vizioncore&#8217;s new version of vRanger (4.1.0 build 11581) has solved this issue. If you had experienced these issues you are advised to upgrade as soon as Vizioncore has released this new version officially! Update (08/28/2009): Vizioncore announced that the new version where I suppose this problem is fixed in will be released Mid-September. [...]]]></description>
			<content:encoded><![CDATA[<p><strong> </strong></p>
<blockquote><p><span style="color: #ff0000;"><strong>Update (09/25/2009):</strong></span></p>
<p><em>Vizioncore&#8217;s new version of <strong>vRanger </strong>(</em><strong>4.1.0 build 11581</strong>) has <strong><em>solved </em></strong>this issue. If you had experienced these issues you are advised to upgrade as soon as Vizioncore has released this new version officially!</p></blockquote>
<blockquote><p><strong>Update (08/28/2009):<br />
</strong>Vizioncore announced that the new version where I suppose this problem is fixed in will be released Mid-September.</p>
<p>Original <a href="http://twitter.com/vizioncore/statuses/3579608344" target="_blank">Twitter-message</a>:</p>
<p><em>Vizioncore vRanger Pro 4.1 DPP to be released in Mid-Sept. More info @ VMworld 2009 and VirtualVizion <a href="http://tinyurl.com/vc-vvizion">http://tinyurl.com/vc-vvizion</a></em></p></blockquote>
<p>Since not too long I have been having problems with a crashing Virtual Center. The version where the problems started with was 2.5 Update 4. The problem was caused by <strong><em>vRanger Pro 4.0 DPP</em></strong>. Please keep on reading to see the complete story on this problem.</p>
<h6>Problem occurrence and symptoms:</h6>
<p><strong> </strong>In short this is how the problems first occurred: our DBA installed SP3 on our SQL 2005 Server and rebooted our SQL Server afterwards which normally wouldn&#8217;t be much of a problem but in this case our Virtual Center wouldn&#8217;t start anymore. The service starts and crashes after 5 seconds. The vpxd.log shows an Win32_Exception and some debug data and that&#8217;s it.</p>
<h6>Attempts to solve the problem:</h6>
<p>At first the problems appeared to have been caused by the update on the SQL Database Server, so these are the steps I’ve taken in my attempts to solve the problem.</p>
<ul>
<li>The things we&#8217;ve tried to solve this mysterious problem: Reinstalled VC against our production database: same problem</li>
<li>Reinstalled VC against our production database on another SQL Sever<br />
with <em>SQL Server 2005 SP2</em> on it: same problem</li>
<li>Reinstalled VC with a clean database and reconfigured our entire<br />
environment, but after a reboot of the VC: same problem except this<br />
time we installed <em>VC 2.5 Update 5</em> instead of <em>Update 4</em>.</li>
<li>Cleanly installed a new server with a fresh Windows 2003 install and<br />
all recent updates and installed VC 2.5 Update 5 again with a clean<br />
database but the same problem occurred after rebooting the VC server</li>
</ul>
<p>We repeated the last step probably about 2 times and it was really making me desperate for a solution because we have a pretty big environment.</p>
<h6>The actual problem:</h6>
<p>After desperately creating a Support Request at VMware they asked me to disable <em>vRanger</em> if we had that running in our environment because it was known to cause problems to Virtual Center.</p>
<p>The thing that already raised questions on my behalf before this incident was that the new <em>vRanger</em> constantly kept an open connection to Virtual Center, and as soon as you killed that session from Virtual Center the <em>vRanger</em> service immediately reconnected. So it appeared to me that during the startup of the Virtual Center service it constantly tried to connect and initiate something or tried to retrieve data from it which caused the Virtual Center service to crash right after startup.</p>
<h6>Resolution:</h6>
<p>After disabling the <em>vRanger</em> service –which wasn’t installed on our Virtual Center server itself by the way- we held our breath and restarted our Virtual Center server, and surprisingly the service started flawlessly.<br />
To make sure it really was <em>vRanger</em> we re-enabled the <em>vRanger </em>service and restarted the Virtual Center service and it crashed immediately.</p>
<p>After disabling the <em>vRanger</em> service VC functioned flawlessly again.</p>
<h6>Final note:</h6>
<p>The road to the solution has taken around two weeks. It was horrible. Finally the solution is known. By the way, previous versions of vRanger do <em>NOT</em> cause these problems!</p>
<p><strong>Update (helpful reaction from Vizioncore, see comments below for original message):</strong></p>
<div>
<div id="commentbody-20">
<blockquote><p>We are working very diligently to get this fix in the hands of our users, we have a fix that already out of our development process and is now in the hands of our QA team. You can also reference the following Knowledgebase article here <a rel="nofollow" href="http://www.vizioncore.com/support/knowledgebase/index.php" target="_blank">http://www.vizioncore.com/support/knowledgebase/index.php</a> and search for <strong>KB 00000296</strong> about this issue. This KB will also be updated shortly for a root cause once the issue is fully cleared by development and QA, for those that are interested in the technical details about the issue. Thanks again for everyone’s support! And we hope to get everyone taken care of very soon!</p></blockquote>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://laurensdekoning.nl/vizioncore-vranger-4-0-pro-crashes-vcenter-2-5-update-4-update-5/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>PowerCLI: Reset CD-drives using PowerShell</title>
		<link>http://laurensdekoning.nl/reset-cd-drives-using-powershell/</link>
		<comments>http://laurensdekoning.nl/reset-cd-drives-using-powershell/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 13:28:25 +0000</pubDate>
		<dc:creator>laez</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[NetApp]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[cd]]></category>
		<category><![CDATA[cddrives]]></category>
		<category><![CDATA[center]]></category>
		<category><![CDATA[disconnect]]></category>
		<category><![CDATA[drives]]></category>
		<category><![CDATA[laez]]></category>
		<category><![CDATA[laurens de koning]]></category>
		<category><![CDATA[laurensdekoning]]></category>
		<category><![CDATA[maintenance]]></category>
		<category><![CDATA[mode]]></category>
		<category><![CDATA[oneliner]]></category>
		<category><![CDATA[posh]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[unmount]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[vmotion]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://laez.nl/vmotion-issue-connected-cd-drives-solution-powershell/</guid>
		<description><![CDATA[As most of you know and probably experienced from time to time: when a Virtual Machine’s CD-drive is connected to an ISO-file on one of your Datastores or even connected to the physical drive of your ESX-host the migration due VMotion of a Virtual Machine will not work. Normally this isn’t really a problem except [...]]]></description>
			<content:encoded><![CDATA[<p>As most of you know and probably experienced from time to time: when a Virtual Machine’s CD-drive is connected to an ISO-file on one of your Datastores or even connected to the physical drive of your ESX-host the migration due VMotion of a Virtual Machine will not work.</p>
<p>Normally this isn’t really a problem except if you put a ESX-host in Maintenance mode and Virtual Center will simply not tell you why the Maintenance mode process is hanging or even giving a time-out after 15 minutes for no obvious reason. Most of the times it’s a Virtual Machine which has a CD-drive connected to an ISO file. A waste of time if you ask me.</p>
<p>So to prevent this from happening I’ve written a simple PowerShell oneliner/script disconnect these CD-drives from the ISO-files or from the physical drives and set them to Client-drives which is ok for VMotion:</p>
<pre><span style="color: #000000">(</span><span style="color: #5f9ea0; font-weight: bold">Get-VM</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-Location</span><span style="color: #000000"> <img src='http://laurensdekoning.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </span><span style="color: #5f9ea0; font-weight: bold">Get-VMHost</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">your.esx.host</span><span style="color: #800000">"</span><span style="color: #000000">)) | </span><span style="color: #5f9ea0; font-weight: bold">`</span><span style="color: #000000">
</span><span style="color: #5f9ea0; font-weight: bold">ForEach</span><span style="color: #000000"> ( </span><span style="color: #000080">$_</span><span style="color: #000000"> ) { </span><span style="color: #5f9ea0; font-weight: bold">Get-CDDrive</span><span style="color: #000000"> </span><span style="color: #000080">$_</span><span style="color: #000000"> | </span><span style="color: #5f9ea0; font-weight: bold">`</span><span style="color: #000000">
</span><span style="color: #5f9ea0; font-weight: bold">Where</span><span style="color: #000000"> { </span><span style="color: #000080">$_</span><span style="color: #000000">.IsoPath.Length </span><span style="color: #ff0000">-gt</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000"> </span><span style="color: #ff0000">-OR</span><span style="color: #000000"> </span><span style="color: #000080">$_</span><span style="color: #000000">.HostDevice.Length </span><span style="color: #ff0000">-gt</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000"> } | </span><span style="color: #5f9ea0; font-weight: bold">`</span><span style="color: #000000">
</span><span style="color: #5f9ea0; font-weight: bold">Set-CDDrive</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-NoMedia</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-Confirm</span><span style="color: #000000">:</span><span style="color: #0000ff">$False</span><span style="color: #000000"> }</span></pre>
<p>Instead of executing this just on one host you can also execute this for your entire cluster:</p>
<pre><span style="color: #000000">(</span><span style="color: #5f9ea0; font-weight: bold">Get-VM</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-Location</span><span style="color: #000000"> <img src='http://laurensdekoning.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </span><span style="color: #5f9ea0; font-weight: bold">Get-Cluster</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">Your Cluster Name</span><span style="color: #800000">"</span><span style="color: #000000">)) | </span><span style="color: #5f9ea0; font-weight: bold">`</span><span style="color: #000000">
</span><span style="color: #5f9ea0; font-weight: bold">ForEach</span><span style="color: #000000"> ( </span><span style="color: #000080">$_</span><span style="color: #000000"> ) { </span><span style="color: #5f9ea0; font-weight: bold">Get-CDDrive</span><span style="color: #000000"> </span><span style="color: #000080">$_</span><span style="color: #000000"> | </span><span style="color: #5f9ea0; font-weight: bold">`</span><span style="color: #000000">
</span><span style="color: #5f9ea0; font-weight: bold">Where</span><span style="color: #000000"> { </span><span style="color: #000080">$_</span><span style="color: #000000">.IsoPath.Length </span><span style="color: #ff0000">-gt</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000"> </span><span style="color: #ff0000">-OR</span><span style="color: #000000"> </span><span style="color: #000080">$_</span><span style="color: #000000">.HostDevice.Length </span><span style="color: #ff0000">-gt</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000"> } | </span><span style="color: #5f9ea0; font-weight: bold">`</span><span style="color: #000000">
</span><span style="color: #5f9ea0; font-weight: bold">Set-CDDrive</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-NoMedia</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-Confirm</span><span style="color: #000000">:</span><span style="color: #0000ff">$False</span><span style="color: #000000"> }</span></pre>
<p>Or ofcourse, by Datacenter:</p>
<pre><span style="color: #000000">(</span><span style="color: #5f9ea0; font-weight: bold">Get-VM</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-Location</span><span style="color: #000000"> <img src='http://laurensdekoning.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </span><span style="color: #5f9ea0; font-weight: bold">Get-Datacenter</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">Your Datacenter Name</span><span style="color: #800000">"</span><span style="color: #000000">)) | </span><span style="color: #5f9ea0; font-weight: bold">`</span><span style="color: #000000">
</span><span style="color: #5f9ea0; font-weight: bold">ForEach</span><span style="color: #000000"> ( </span><span style="color: #000080">$_</span><span style="color: #000000"> ) { </span><span style="color: #5f9ea0; font-weight: bold">Get-CDDrive</span><span style="color: #000000"> </span><span style="color: #000080">$_</span><span style="color: #000000"> | </span><span style="color: #5f9ea0; font-weight: bold">`</span><span style="color: #000000">
</span><span style="color: #5f9ea0; font-weight: bold">Where</span><span style="color: #000000"> { </span><span style="color: #000080">$_</span><span style="color: #000000">.IsoPath.Length </span><span style="color: #ff0000">-gt</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000"> </span><span style="color: #ff0000">-OR</span><span style="color: #000000"> </span><span style="color: #000080">$_</span><span style="color: #000000">.HostDevice.Length </span><span style="color: #ff0000">-gt</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000"> } | </span><span style="color: #5f9ea0; font-weight: bold">`</span><span style="color: #000000">
</span><span style="color: #5f9ea0; font-weight: bold">Set-CDDrive</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-NoMedia</span><span style="color: #000000"> </span><span style="font-style: italic; color: #5f9ea0">-Confirm</span><span style="color: #000000">:</span><span style="color: #0000ff">$False</span><span style="color: #000000"> }</span></pre>
<p>It’s as easy as that, now there will be no Virtual Machine interrupting your VMotions anymore and you can put your ESX hosts in maintenance mode without any problems <img src='http://laurensdekoning.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://laurensdekoning.nl/reset-cd-drives-using-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick and simple VMware ESX Host Statistics</title>
		<link>http://laurensdekoning.nl/quick-and-simple-vmware-esx-host-statistics/</link>
		<comments>http://laurensdekoning.nl/quick-and-simple-vmware-esx-host-statistics/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 11:04:37 +0000</pubDate>
		<dc:creator>laez</dc:creator>
				<category><![CDATA[ESX]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[datacenter]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[posh]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[usage]]></category>

		<guid isPermaLink="false">http://laez.nl/quick-and-simple-vmware-esx-host-statistics/</guid>
		<description><![CDATA[Just a small oneliner to display all the servers, their overall status, CPU and Memory usage in all your Datacenters (can be handy if you have multiple datacenters). Get-Datacenter &#124; Sort &#124; Get-VMHost &#124; Sort &#124; Get-View &#124;` Select Name, OverallStatus, ` @{N="CPU Usage (GHz)";E={[math]::round( $_.Summary.QuickStats.OverallCpuUsage/1024,2)}}, ` @{N="Memory Usage (GB)";E={[math]::round( $_.Summary.QuickStats.OverallMemoryUsage/1024,2)}}  And it will give [...]]]></description>
			<content:encoded><![CDATA[<p>Just a small oneliner to display all the servers, their overall status, CPU and Memory usage in all your Datacenters (can be handy if you have multiple datacenters).</p>
<pre><span style="font-weight: bold; color: #5f9ea0">Get-Datacenter</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Sort</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Get-VMHost</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Sort</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Get-View</span><span style="color: #000000"> |`
</span><span style="font-weight: bold; color: #5f9ea0">Select</span><span style="color: #000000"> </span><span style="color: #800000">Name</span><span style="color: #000000">, </span><span style="color: #800000">OverallStatus</span><span style="color: #000000">, `</span><span style="color: #000000">
@{N</span><span style="color: #ff0000">=</span><span style="color: #800000">"</span><span style="color: #800000">CPU Usage (GHz)</span><span style="color: #800000">"</span><span style="color: #000000">;E</span><span style="color: #ff0000">=</span><span style="color: #000000">{[</span><span style="color: #008080">math</span><span style="color: #000000">]::</span><span style="color: #8b4513">round(</span><span style="color: #000000"><span style="color: #000080">
$_</span><span style="color: #000000">.Summary.QuickStats.OverallCpuUsage</span><span style="color: #ff0000">/</span><span style="color: #000000">1024</span><span style="color: #000000">,</span><span style="color: #000000">2</span><span style="color: #000000">)}}, `
@{N</span><span style="color: #ff0000">=</span><span style="color: #800000">"</span><span style="color: #800000">Memory Usage (GB)</span><span style="color: #800000">"</span><span style="color: #000000">;E</span><span style="color: #ff0000">=</span><span style="color: #000000">{[</span><span style="color: #008080">math</span><span style="color: #000000">]::</span><span style="color: #8b4513">round</span><span style="color: #000000">(</span><span style="color: #000080">
$_</span><span style="color: #000000">.Summary.QuickStats.OverallMemoryUsage</span><span style="color: #ff0000">/</span><span style="color: #000000">1024</span><span style="color: #000000">,</span><span style="color: #000000">2</span><span style="color: #000000">)}}</span></span><span style="color: #000080"> </span></pre>
<p>And it will give you an output that looks like this:</p>
<p><a href="http://laez.nl/wp-content/uploads/2009/07/image4.png"><img style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" title="image" src="http://laez.nl/wp-content/uploads/2009/07/image_thumb4.png" border="0" alt="image" width="411" height="315" /></a></p>
<p>You may not find it very useful like this, but you can also add a <strong>Where </strong>statement to this line to filter on several things. For example, you can decide you only want to see the servers that have <em>yellow</em> or <em>red</em> Overall Status due to high memory or CPU usage:</p>
<pre><span style="font-weight: bold; color: #5f9ea0">Get-Datacenter</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Sort</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Get-VMHost</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Sort</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Get-View</span><span style="color: #000000"> | `</span><span style="font-weight: bold; color: #5f9ea0">
Select</span><span style="color: #000000"> </span><span style="color: #800000">Name</span><span style="color: #000000">, </span><span style="color: #800000">OverallStatus</span><span style="color: #000000">, `
@{N</span><span style="color: #ff0000">=</span><span style="color: #800000">"</span><span style="color: #800000">CPU Usage (GHz)</span><span style="color: #800000">"</span><span style="color: #000000">;E</span><span style="color: #ff0000">=</span><span style="color: #000000">{[</span><span style="color: #008080">math</span><span style="color: #000000">]::</span><span style="color: #8b4513">round</span><span style="color: #000000">(
</span><span style="color: #000080">$_</span><span style="color: #000000">.Summary.QuickStats.OverallCpuUsage</span><span style="color: #ff0000">/</span><span style="color: #000000">1024</span><span style="color: #000000">,</span><span style="color: #000000">2</span><span style="color: #000000">)}}, `
@{N</span><span style="color: #ff0000">=</span><span style="color: #800000">"</span><span style="color: #800000">Memory Usage (GB)</span><span style="color: #800000">"</span><span style="color: #000000">;E</span><span style="color: #ff0000">=</span><span style="color: #000000">{[</span><span style="color: #008080">math</span><span style="color: #000000">]::</span><span style="color: #8b4513">round</span><span style="color: #000000">(</span><span style="color: #000080">
$_</span><span style="color: #000000">.Summary.QuickStats.OverallMemoryUsage</span><span style="color: #ff0000">/</span><span style="color: #000000">1024</span><span style="color: #000000">,</span><span style="color: #000000">2</span><span style="color: #000000">)}} | `</span><span style="font-weight: bold; color: #5f9ea0">
Where</span><span style="color: #000000"> { </span><span style="color: #000080">$_</span><span style="color: #000000">.OverallStatus </span><span style="color: #ff0000">-ne</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">green</span><span style="color: #800000">"</span><span style="color: #000000"> }</span></pre>
<p>Which will give you something like this:</p>
<p><a href="http://laez.nl/wp-content/uploads/2009/07/image5.png"><img style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" title="image" src="http://laez.nl/wp-content/uploads/2009/07/image_thumb5.png" border="0" alt="image" width="427" height="139" /></a></p>
<p>Ofcourse these onliners are cool and handy to use, but you can also use these oneliners to write a script around it to monitor your servers. I will post a script like that soon to show you different interpretations of this script.</p>
]]></content:encoded>
			<wfw:commentRss>http://laurensdekoning.nl/quick-and-simple-vmware-esx-host-statistics/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>List all of your snapshots (oneliners)</title>
		<link>http://laurensdekoning.nl/list-all-of-your-snapshots-oneliners/</link>
		<comments>http://laurensdekoning.nl/list-all-of-your-snapshots-oneliners/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 10:46:25 +0000</pubDate>
		<dc:creator>laez</dc:creator>
				<category><![CDATA[ESX]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[datacenter]]></category>
		<category><![CDATA[datacenters]]></category>
		<category><![CDATA[infrastructure]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[overview]]></category>
		<category><![CDATA[posh]]></category>
		<category><![CDATA[snapshot]]></category>
		<category><![CDATA[snapshots]]></category>

		<guid isPermaLink="false">http://laez.nl/?p=110</guid>
		<description><![CDATA[It’s not hard to create a PowerShell script to list your current snapshots, but of course it’s a nice challenge to create a oneliner that’ll take care of this. I’ve created several oneliners with different output, for instance: this one is to show snapshots of your total VMware infrastructure: Get-VM &#124; Sort Name &#124; Get-Snapshot [...]]]></description>
			<content:encoded><![CDATA[<p>It’s not hard to create a PowerShell script to list your current snapshots, but of course it’s a nice challenge to create a oneliner that’ll take care of this.</p>
<p>I’ve created several oneliners with different output, for instance: this one is to show snapshots of your total VMware infrastructure:</p>
<pre><span style="font-weight: bold; color: #5f9ea0">Get-VM</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Sort</span><span style="color: #000000"> </span><span style="color: #800000">Name</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Get-Snapshot</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Where</span><span style="color: #000000"> { </span><span style="color: #000080">$_</span><span style="color: #000000">.Name.Length </span><span style="color: #ff0000">-gt</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000"> } | </span><span style="font-weight: bold; color: #5f9ea0">Select</span><span style="color: #000000">
</span><span style="color: #800000">VM</span><span style="color: #000000">,</span><span style="color: #800000">Name</span><span style="color: #000000">,</span><span style="color: #800000">Description</span><span style="color: #000000">,</span><span style="color: #800000">Created</span></pre>
<p>While in fact in the organisation I work for we have several locations throughout the country and several VMware ESX Servers running on each one which we’ve divided in different Datacenters in our VMware Infrastructure.</p>
<p>So for instance you can also use the following line to list all Snapshots in a specific Datacenter:</p>
<pre><span style="font-weight: bold; color: #5f9ea0">Get-Datacenter</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-style: italic">-Name</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">Your Datacenter</span><span style="color: #800000">"</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Get-VM</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Sort</span><span style="color: #000000"> </span><span style="color: #800000">Name</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Get-Snapshot</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">
Where</span><span style="color: #000000"> { </span><span style="color: #000080">$_</span><span style="color: #000000">.Name.Length </span><span style="color: #ff0000">-gt</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000"> } | </span><span style="font-weight: bold; color: #5f9ea0">Select</span><span style="color: #000000"> </span><span style="color: #800000">VM</span><span style="color: #000000">,</span><span style="color: #800000">Name</span><span style="color: #000000">,</span><span style="color: #800000">Description</span><span style="color: #000000">,</span><span style="color: #800000">Created</span></pre>
<p>Or just for one specific cluster:</p>
<pre><span style="font-weight: bold; color: #5f9ea0">Get-Cluster</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">Cluster Name</span><span style="color: #800000">"</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Get-VM</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Sort</span><span style="color: #000000"> </span><span style="color: #800000">Name</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Get-Snapshot</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Where</span><span style="color: #000000">
{ </span><span style="color: #000080">$_</span><span style="color: #000000">.Name.Length </span><span style="color: #ff0000">-gt</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000"> } | </span><span style="font-weight: bold; color: #5f9ea0">Select</span><span style="color: #000000"> </span><span style="color: #800000">VM</span><span style="color: #000000">,</span><span style="color: #800000">Name</span><span style="color: #000000">,</span><span style="color: #800000">Description</span><span style="color: #000000">,</span><span style="color: #800000">Created</span></pre>
<p>All of these oneliners give somewhat the same output, which looks like this (company sensitive names are sensored, sorry <img src='http://laurensdekoning.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<p><a href="http://laez.nl.consumer0.webhosting.transip.nl/wp-content/uploads/2009/07/image2.png"><img style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" title="Snapshot listing" src="http://laez.nl/wp-content/uploads/2009/07/image_thumb2.png" border="0" alt="Snapshot listing" width="454" height="246" /></a></p>
<p>You can also add several other cmdlets to change the output of the result data, such as  <strong>ConvertTo-HTML</strong> or <strong>Out-GridView</strong> (if you use PowerShell 2.0 already).</p>
]]></content:encoded>
			<wfw:commentRss>http://laurensdekoning.nl/list-all-of-your-snapshots-oneliners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Refresh Datastores with PowerShell (oneliner)</title>
		<link>http://laurensdekoning.nl/refresh-datastores-with-powershell-oneliner/</link>
		<comments>http://laurensdekoning.nl/refresh-datastores-with-powershell-oneliner/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 16:41:07 +0000</pubDate>
		<dc:creator>laez</dc:creator>
				<category><![CDATA[ESX]]></category>
		<category><![CDATA[NetApp]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[datastore]]></category>
		<category><![CDATA[datastores]]></category>
		<category><![CDATA[ntfs]]></category>
		<category><![CDATA[oneliner]]></category>
		<category><![CDATA[posh]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://laez.nl/?p=101</guid>
		<description><![CDATA[As I mentioned in the previous article about Refreshing Datastores I would see if I could make a oneliner for this action and I succeed in doing that. This is what the line should be: Get-Datacenter &#124; Get-Cluster -Name "ClusterName" &#124; Get-VMHost &#124; ForEach { $_ } { Get-VMHostStorage -VMHost:$_ -Refresh } The result on [...]]]></description>
			<content:encoded><![CDATA[<p>As I mentioned in the <a href="http://laez.nl/?p=98">previous article about Refreshing Datastores</a> I would see if I could make a oneliner for this action and I succeed in doing that.</p>
<p>This is what the line should be:</p>
<pre><span style="font-weight: bold; color: #5f9ea0">Get-Datacenter</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Get-Cluster</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-style: italic">-Name</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">ClusterName</span><span style="color: #800000">"</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Get-VMHost</span><span style="color: #000000"> |
</span><span style="font-weight: bold; color: #5f9ea0">ForEach</span><span style="color: #000000"> { </span><span style="color: #000080">$_</span><span style="color: #000000"> } { </span><span style="font-weight: bold; color: #5f9ea0">Get-VMHostStorage</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-style: italic">-VMHost</span><span style="color: #000000">:</span><span style="color: #000080">$_</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-style: italic">-Refresh</span><span style="color: #000000"> }</span></pre>
<p>The result on the PowerCLI would probably look like this:</p>
<p><a href="http://laez.nl/wp-content/uploads/2009/07/image1.png"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="image" src="http://laez.nl/wp-content/uploads/2009/07/image_thumb1.png" border="0" alt="image" width="553" height="242" /></a></p>
<p>The ‘Recent Tasks’ window in the vSphere client will show you a line with “<em>Refresh Host Storage System</em>” for each server.</p>
<p>Thanks for <a href="http://ict-freak.nl" target="_blank">Arne Fokkema</a> for helping me out with the start of the oneliner <img src='http://laurensdekoning.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Cheers!</p>
<p>NOTE: Get-Datacenter isn&#8217;t really required so the oneliner can actually be shorter <img src='http://laurensdekoning.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://laurensdekoning.nl/refresh-datastores-with-powershell-oneliner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Refresh Datastores with PowerShell</title>
		<link>http://laurensdekoning.nl/refresh-datastores-with-powershell/</link>
		<comments>http://laurensdekoning.nl/refresh-datastores-with-powershell/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 07:21:00 +0000</pubDate>
		<dc:creator>laez</dc:creator>
				<category><![CDATA[ESX]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[datastore]]></category>
		<category><![CDATA[datastores]]></category>
		<category><![CDATA[NetApp]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[posh]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[refresh]]></category>

		<guid isPermaLink="false">http://laez.nl/?p=98</guid>
		<description><![CDATA[When using NFS for your datastores on your SAN (eg. NetApp) and you resize your datastore on the fly it always takes a while before the ESX/vSphere servers refresh the datastore so you can see the new size of the volume. This can be annoying when you want to create a VM on one of [...]]]></description>
			<content:encoded><![CDATA[<p>When using NFS for your datastores on your SAN (eg. NetApp) and you resize your datastore on the fly it always takes a while before the ESX/vSphere servers refresh the datastore so you can see the new size of the volume.</p>
<p>This can be annoying when you want to create a VM on one of these volumes and ESX still thinks the volume is too small because it hasn’t refreshed it’s datastores yet. Normally I would pick one ESX server where I want to put the VM on for starters and refresh the NFS volume which I want to use:</p>
<p><a href="http://laez.nl/wp-content/uploads/2009/07/image.png"><img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="110" alt="image" src="http://laez.nl/wp-content/uploads/2009/07/image_thumb.png" width="318" border="0" /></a> </p>
<p>Ofcourse I wanted to make it easier for myself so I wrote a little PowerShell script to refresh the datastores on all ESX Servers in our Cluster. I think it’s also possible to make a oneliner out of this and I will try to create one and if I succeed I’ll post it again <img src='http://laurensdekoning.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<pre><span style="color: #800080">$vcHost</span><span style="color: #000000"> </span><span style="color: #ff0000">=</span><span style="color: #000000"> </span><span style="color: #800000">&quot;</span><span style="color: #800000">virtual.center.host</span><span style="color: #800000">&quot;</span><span style="color: #000000">
</span><span style="color: #800080">$vcClusterName</span><span style="color: #000000"> </span><span style="color: #ff0000">=</span><span style="color: #000000"> </span><span style="color: #800000">&quot;</span><span style="color: #800000">Your ClusterName</span><span style="color: #800000">&quot;</span><span style="color: #000000">
</span><span style="color: #800080">$vcUser</span><span style="color: #000000"> </span><span style="color: #ff0000">=</span><span style="color: #000000"> </span><span style="color: #800000">&quot;</span><span style="color: #800000">username</span><span style="color: #800000">&quot;</span><span style="color: #000000">
</span><span style="color: #800080">$vcPass</span><span style="color: #000000"> </span><span style="color: #ff0000">=</span><span style="color: #000000"> </span><span style="color: #800000">&quot;</span><span style="color: #800000">password</span><span style="color: #800000">&quot;</span><span style="color: #000000">

</span><span style="color: #800080">$vcServer</span><span style="color: #000000"> </span><span style="color: #ff0000">=</span><span style="color: #000000"> </span><span style="font-weight: bold; color: #5f9ea0">Connect-VIServer</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-style: italic">-Server</span><span style="color: #000000">:</span><span style="color: #800080">$vcHost</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-style: italic">-User</span><span style="color: #000000">:</span><span style="color: #800080">$vcUser</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-style: italic">-Password</span><span style="color: #000000">:</span><span style="color: #800080">$vcPass</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-style: italic">-WarningAction</span><span style="color: #000000">:</span><span style="color: #800000">SilentlyContinue</span><span style="color: #000000">

</span><span style="color: #800080">$vmHosts</span><span style="color: #000000"> </span><span style="color: #ff0000">=</span><span style="color: #000000"> </span><span style="font-weight: bold; color: #5f9ea0">Get-Datacenter</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Get-Cluster</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-style: italic">-Name</span><span style="color: #000000">:</span><span style="color: #800080">$vcClusterName</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Get-VMHost</span><span style="color: #000000"> | </span><span style="font-weight: bold; color: #5f9ea0">Sort</span><span style="color: #000000">

</span><span style="color: #0000ff">ForEach</span><span style="color: #000000"> (</span><span style="color: #800080">$vmHost</span><span style="color: #000000"> </span><span style="color: #0000ff">in</span><span style="color: #000000"> </span><span style="color: #800080">$vmHosts</span><span style="color: #000000">) {
    </span><span style="color: #0000ff">If</span><span style="color: #000000"> (</span><span style="font-weight: bold; color: #5f9ea0">Get-VMHostStorage</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-style: italic">-VMHost</span><span style="color: #000000">:</span><span style="color: #800080">$vmHost</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-style: italic">-Refresh</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-style: italic">-ErrorAction</span><span style="color: #000000">:</span><span style="color: #800000">SilentlyContinue</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-style: italic">-WarningAction</span><span style="color: #000000">:</span><span style="color: #800000">SilentlyContinue</span><span style="color: #000000">) {
        </span><span style="font-weight: bold; color: #5f9ea0">Write-Host</span><span style="color: #000000"> </span><span style="color: #800080">$vmHost</span><span style="color: #000000">.</span><span style="color: #8b4513">Name</span><span style="color: #000000">,</span><span style="color: #800000">&quot;</span><span style="color: #800000"> host storage information refreshed</span><span style="color: #800000">&quot;</span><span style="color: #000000">
    } </span><span style="color: #0000ff">else</span><span style="color: #000000"> {
        </span><span style="font-weight: bold; color: #5f9ea0">Write-Host</span><span style="color: #000000"> </span><span style="color: #800080">$vmHost</span><span style="color: #000000">.</span><span style="color: #8b4513">Name</span><span style="color: #000000">,</span><span style="color: #800000">&quot;</span><span style="color: #800000"> host storage refresh failed!</span><span style="color: #800000">&quot;</span><span style="color: #000000">
    }
}

</span><span style="font-weight: bold; color: #5f9ea0">Disconnect-VIServer</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-style: italic">-Server</span><span style="color: #000000">:</span><span style="color: #800080">$vcServer</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-style: italic">-Confirm</span><span style="color: #000000">:</span><span style="color: #0000ff">$false</span></pre>
<p>&#160;</p>
<p>After the script has been running the datastores on all your ESX-servers in the cluster will be refreshed so all resizes&#160; of your NFS volumes on your SAN will be visible and “active”.</p>
]]></content:encoded>
			<wfw:commentRss>http://laurensdekoning.nl/refresh-datastores-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

