<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>eprich</title>
	
	<link>http://www.eprich.com</link>
	<description>cloud and things</description>
	<lastBuildDate>Fri, 30 Dec 2011 16:14:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/PaulRichards" /><feedburner:info uri="paulrichards" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>PaulRichards</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Simple RAID Calculator</title>
		<link>http://feedproxy.google.com/~r/PaulRichards/~3/xCMiG85-uJo/simple-raid-calculator</link>
		<comments>http://www.eprich.com/storage/simple-raid-calculator#comments</comments>
		<pubDate>Mon, 28 Nov 2011 18:48:01 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[IOPS]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[iops]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[raid-calculator]]></category>

		<guid isPermaLink="false">http://www.eprich.com/?p=1474</guid>
		<description><![CDATA[I mentioned in my previous post that I&#8217;m presenting at the inaugural PING Philly meetup and my topic is on sizing and configuring backend storage. One of the main points I want to stress in my discussion is the importance that IOPS have when planning your storage configuration. To help illustrate this importance, I created a simple RAID group [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I mentioned in my previous post that I&#8217;m presenting at the inaugural <a title="Join PING Philly!" href="http://www.meetup.com/ping-philly" target="_blank">PING Philly meetup</a> and my topic is on sizing and configuring backend storage. One of the main points I want to stress in my discussion is the importance that IOPS have when planning your storage configuration. To help illustrate this importance, I created a simple RAID group calculator that shows an estimate of the total backend IOPS required to satisfy your application&#8217;s performance needs. Here&#8217;s the link to the calculator: <a title="eprich's Simple RAID Group Calculator" href="http://www.eprich.com/tools/simple-raid-group-calculator" target="_blank">http://www.eprich.com/tools/simple-raid-group-calculator</a></p>
<p>&nbsp;</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-1495" title="raid_calc" src="http://www.eprich.com/wp-content/uploads/2011/11/raid_calc.png" alt="" width="234" height="524" /></p>
<p>Another thing to note is that this calculator is my first javascript project. Thanks to the incredible teaching skills (and infinite patience) of <a title="the wife!" href="http://twitter.com/#!/jpirrello" target="_blank">@jpirrello</a>, I was able to complete this calculator in about a day&#8217;s worth of time. The calculator has a slight bias towards EMC hardware &#8211; specifically the disks. (Sorry NetApp, I still think you&#8217;re cool though!) As of now, the disk sizes don&#8217;t play any role in the calculator. That will be in the next version <img src='http://www.eprich.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I also made some assumptions on the total IOPS per disk. Here&#8217;s the break down:</p>
<p>SSD = ~5250 IOPS<br />
15K = ~175 IOPS<br />
10K = ~135 IOPS<br />
7.2K = ~75 IOPS</p>
<p>These estimates are the average of a variety of drives I&#8217;ve found on the interent. I also compared them to this: http://blog.aarondelp.com/2009/10/its-now-all-about-iops.html.</p>
<p>I&#8217;d like to add more functionality to the calculator, so feel free to add comments below with your thoughts and suggestions for how I can improve it!</p>
<p>&nbsp;</p>
<a class="wpptopdf" target="_blank" rel="noindex,nofollow" href="http://www.eprich.com/storage/simple-raid-calculator?format=pdf" title="Download PDF"><img alt="Download PDF" src="http://www.eprich.com/wp-content/plugins/wp-post-to-pdf/asset/images/pdf.png"></a><img src="http://feeds.feedburner.com/~r/PaulRichards/~4/xCMiG85-uJo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eprich.com/storage/simple-raid-calculator/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.eprich.com/storage/simple-raid-calculator</feedburner:origLink></item>
		<item>
		<title>Status Update and the PING Philly Meetup Group</title>
		<link>http://feedproxy.google.com/~r/PaulRichards/~3/sgxB_jQhjUc/ping-philly</link>
		<comments>http://www.eprich.com/meetup/ping-philly#comments</comments>
		<pubDate>Fri, 25 Nov 2011 12:00:53 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[meetup]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[ping-philly]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[sungard]]></category>

		<guid isPermaLink="false">http://www.eprich.com/?p=1430</guid>
		<description><![CDATA[The last few months have been insane. First, I rejoined SunGard Availability Services where I am leading an awesome technical team with the ongoing development of our Enterprise Cloud Service. Then I spent most of October studying for the EMC Information Storage and Management Exam. After I achieved the EMC Proven Professional certification, I decided to [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>The last few months have been insane. First, I rejoined SunGard Availability Services where I am leading an awesome technical team with the ongoing development of our <a href="http://www.sungardas.com/Solutions/Cloud/IaaS/Pages/InfrastructureasaService%28IaaS%29.aspx" target="_blank">Enterprise Cloud Service.</a> Then I spent most of October studying for the EMC Information Storage and Management Exam. After I achieved the EMC Proven Professional certification, I decided to learn a little programming with Python. And now I&#8217;m co-organizing a technical meetup group in Philadelphia called <a href="http://www.meetup.com/ping-philly" target="_blank">PING Philly</a>.</p>
<p>PING (platform infrastructure networking group) Philly is a new meetup group that covers a broad range of IT topics including: systems, storage, cloud, virtualization, storage, networking, programming, etc. You name it, we&#8217;ll talk about it. One of our objectives with this group is to meet new local people in tech. It doesn&#8217;t matter if you are a network guy (or gal) or if you write code all day long &#8211; we want you there. If you are local to the South NJ/Philadelphia area, I highly encourage you to sign up and attend our inaugural meeting on November 30th, 2011 in Center City Philadelphia.</p>
<p>Meetings will be held once a month and will (hopefully) be sponsored. This typically translates to there will be free pizza <img src='http://www.eprich.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The meetings are scheduled to run about 2 hours, starting at 7PM. The format will include presentations, Q&amp;A, general discussions, and lightning talks. After the meeting, we will most likely congregate at a local bar for some delicious beer and we&#8217;ll continue to network.</p>
<p>Since I&#8217;m a co-organizer, I&#8217;ll be giving a brief presentation on storage: choosing and sizing the right RAID group for your virtual workloads. I&#8217;ll cover topics such as RAID levels, write penalties, calculating the number of disks needed to build a RAID group based on IO requirements, and how to get your IO requirements&#8230;things like the. A lot of that stuff is still fresh in my head from all of the studying. I&#8217;ll also post the presentation to my site via slideshare after the 30th.</p>
<p>Again, if you are local to the Philadelphia area, please join the meetup and make an effort to come out. Oh and if you are interested in sponsoring a meeting, please drop me a line. We&#8217;d love to hear from vendors. Thanks!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<a class="wpptopdf" target="_blank" rel="noindex,nofollow" href="http://www.eprich.com/meetup/ping-philly?format=pdf" title="Download PDF"><img alt="Download PDF" src="http://www.eprich.com/wp-content/plugins/wp-post-to-pdf/asset/images/pdf.png"></a><img src="http://feeds.feedburner.com/~r/PaulRichards/~4/sgxB_jQhjUc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eprich.com/meetup/ping-philly/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.eprich.com/meetup/ping-philly</feedburner:origLink></item>
		<item>
		<title>3 Design Considerations for Your vSphere 5 Auto Deploy Environment</title>
		<link>http://feedproxy.google.com/~r/PaulRichards/~3/0w-CNQ4sbr8/vsphere-5-auto-deploy-design-considerations</link>
		<comments>http://www.eprich.com/auto-deploy/vsphere-5-auto-deploy-design-considerations#comments</comments>
		<pubDate>Thu, 28 Jul 2011 10:30:20 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[auto-deploy]]></category>
		<category><![CDATA[Auto Deploy]]></category>
		<category><![CDATA[design considerations]]></category>
		<category><![CDATA[vsphere 5]]></category>

		<guid isPermaLink="false">http://www.eprich.com/?p=1326</guid>
		<description><![CDATA[This post focuses on design considerations for using Auto Deploy Server to provision stateless ESXi hosts. Here are the three topics that I&#8217;ll address: Placement of New Services (Auto Deploy Server, DHCP, TFTP, Syslog, ESXi Core Dump Collector) DHCP Reservations Dedicated NICs for ESXi Management Placement of New Services Auto Deploy has a few prerequisites: [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This post focuses on design considerations for using Auto Deploy Server to provision stateless ESXi hosts. Here are the three topics that I&#8217;ll address:</p>
<ul>
<li>Placement of New Services (Auto Deploy Server, DHCP, TFTP, Syslog, ESXi Core Dump Collector)</li>
<li>DHCP Reservations</li>
<li>Dedicated NICs for ESXi Management</li>
</ul>
<h2>Placement of New Services</h2>
<p>Auto Deploy has a few prerequisites:</p>
<ul>
<li>PXE boot environment (DHCP and TFTP)</li>
<li>Auto Deploy Server</li>
<li>Image Builder (included with PowerCLI)</li>
</ul>
<p>Some other nice to haves are Syslog and ESXi Core Dump Collector &#8211; both installable services that can reside on the same Windows host.</p>
<p><strong>Note:</strong> Auto Deploy Server shares the same system requires as vCenter Server. Here are VMware&#8217;s suggested configurations:</p>
<ul>
<li>Medium Deployments &#8211; up to 50 hosts and 500 powered on VMs: 2 cores and 4GB memory</li>
<li>Large Deployments &#8211; up to 300 hosts and 3,000 powered on VMs: 4 cores and 8GB memory</li>
<li>Extra-large Deployments &#8211; up to 1,000 hosts and 10,000 powered on VMs: 8 cores and 16GB memory</li>
</ul>
<p>Here&#8217;s my current lab configuration:</p>
<ul>
<li>Server 1 &#8211; vCenter Server and vCenter Orchestrator</li>
<li>Server 2 &#8211; Auto Deploy Server, Microsoft DHCP Server, and TFTPD32</li>
<li>Server 3 &#8211; VUM, Syslog Collector, ESXi Core Dump Collector</li>
</ul>
<p>All of these servers reside on management VLAN.</p>
<p>During the installation, you&#8217;ll need to specify the size of the image profile depot. The default is 2GB but I changed mine to 5GB. You should consider the number of different server vendors, and the number and type of 3rd party host extension providers when planning the Auto Deploy installation.</p>
<p><strong>Note:</strong> VMware includes Auto Deploy Server, a DHCP server, and a TFTP server with the vCenter Server Appliance. If you already have a functioning PXE boot environment, then you can use that provided the ESXi hosts can access it.</p>
<h2>DHCP Reservations</h2>
<p>Most normal management environments use static IP addressing. However, that won&#8217;t work with Auto Deploy because of the PXE boot requirement so the next best thing is to create DHCP reservations. This will ensure consistency and won&#8217;t affect my management tools. You can use a simple script to add the reservations. Below is the command line syntax and an example:</p>
<p><em>*Update: I forgot to mention that you need to right-click on cmd.exe and select Run as administrator for this to work. Also specifying the server name/IP is not required if you are running this on the DHCP server.*</em></p>
<p><strong>﻿netsh.exe dhcp server scope &lt;scope&gt;  add reservedip &lt;IP_address&gt; &lt;mac_address&gt; &lt;description&gt;</strong></p>
<pre>netsh.exe dhcp server scope 192.168.1.0 add reservedip 192.168.1.100 0025b503e01a esx1-mgmt</pre>
<h2>Dedicated NICs</h2>
<p>All of the NICs in my lab hosts are connected to trunk ports and I have several VLANs already defined for things like Management, IP storage, vMotion, etc. This also means that I have a default VLAN (which is what I use for PXE booting). Since I do not want my Management traffic to be on the default VLAN, I need a new work around for PXE booting on the Management VLAN.</p>
<p>I decided to dedicate a pair of NICs for ESXi management traffic. This allows me to keep my management traffic isolated from everything else AND it gives me the ability to PXE boot on the Management VLAN. I&#8217;m sure there are other methods but I think this is more simplistic and it gets the job done.</p>
<p>If anyone has any other suggestions or would like to comment on what I&#8217;ve done, please feel free to comment. I&#8217;d love to hear how you addressed your design challenges.</p>
<a class="wpptopdf" target="_blank" rel="noindex,nofollow" href="http://www.eprich.com/auto-deploy/vsphere-5-auto-deploy-design-considerations?format=pdf" title="Download PDF"><img alt="Download PDF" src="http://www.eprich.com/wp-content/plugins/wp-post-to-pdf/asset/images/pdf.png"></a><img src="http://feeds.feedburner.com/~r/PaulRichards/~4/0w-CNQ4sbr8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eprich.com/auto-deploy/vsphere-5-auto-deploy-design-considerations/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.eprich.com/auto-deploy/vsphere-5-auto-deploy-design-considerations</feedburner:origLink></item>
		<item>
		<title>FastNFS: Mounting a NFS Datastore to Several vSphere Hosts with PowerCLI</title>
		<link>http://feedproxy.google.com/~r/PaulRichards/~3/Ne8LO5lpzKA/fastnfs-mounting-a-nfs-datastore-to-several-vsphere-hosts-with-powercli</link>
		<comments>http://www.eprich.com/automation/fastnfs-mounting-a-nfs-datastore-to-several-vsphere-hosts-with-powercli#comments</comments>
		<pubDate>Tue, 03 May 2011 12:48:51 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[automation]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[powercli]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[nfs]]></category>

		<guid isPermaLink="false">http://www.eprich.com/?p=1105</guid>
		<description><![CDATA[I&#8217;ve mentioned before about how I really do not like repeating the same task over and over and over &#8211; ESPECIALLY when working in a GUI. One of those tasks is manually mounting a NFS datastore to dozens of ESX hosts. I wrote a powershell script (with some assistance from my friend Jason) to do [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I&#8217;ve mentioned before about how I really do not like repeating the same task over and over and over &#8211; ESPECIALLY when working in a GUI. One of those tasks is manually mounting a NFS datastore to dozens of ESX hosts. I wrote a powershell script (with some assistance from my friend Jason) to do all of the work &#8211; fast-like.</p>
<p>You&#8217;ll need to connect to a VI server instance before you run the script. I&#8217;m usually already connected to a vCenter instance which is why I left out connect-viserver. The script will prompt you for the NFS server info (FQDN or IP address PLUS the full path to the share), the new datastore name, and all of the hosts to where the new datastore will be mounted. The script will continue to prompt you for ESX hosts; when you are done just hit enter again.</p>
<p>This process does take a bit of time to complete because mounting the datastore is a serial process. One of the things on my to-do list is to see if I can mount the datastores in parallel.</p>
<p>Feel free to leave a comment if you have suggestions for improving the script.</p>
<p>&nbsp;</p>
<pre># Enter the name or IP of the NFS server
$nfssrv = Read-Host "Enter the name or IP of the NFS server"

#Enter the full path to the share
$path = Read-host "Enter the full path to the share"

#Give a name to the new NFS Datastore
$nfsds = Read-Host "Enter a name for the new NFS datastore"

#Create an Empty array for $esx
$esx = @()

#Will continue to prompt you for hosts until you stop entering them.
do {
    $input =  Read-Host "Add an ESX host by FQDN or IP"
    if ($input -ne ""){
        $esx += $input
    }
   }
until ($input -eq "")

#Mounts datastore
foreach ($name in $esx)
        {
         New-Datastore -VMHost $name -Name $nfsds -Path $path -NfsHost $nfssrv -Nfs
        }</pre>
<a class="wpptopdf" target="_blank" rel="noindex,nofollow" href="http://www.eprich.com/automation/fastnfs-mounting-a-nfs-datastore-to-several-vsphere-hosts-with-powercli?format=pdf" title="Download PDF"><img alt="Download PDF" src="http://www.eprich.com/wp-content/plugins/wp-post-to-pdf/asset/images/pdf.png"></a><img src="http://feeds.feedburner.com/~r/PaulRichards/~4/Ne8LO5lpzKA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eprich.com/automation/fastnfs-mounting-a-nfs-datastore-to-several-vsphere-hosts-with-powercli/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.eprich.com/automation/fastnfs-mounting-a-nfs-datastore-to-several-vsphere-hosts-with-powercli</feedburner:origLink></item>
		<item>
		<title>How to Connect Iometer Workers to a Master Server Using VMware VIX</title>
		<link>http://feedproxy.google.com/~r/PaulRichards/~3/fQ6xOR7OiuU/how-to-connect-iometer-workloads-to-a-master-server-using-vmware-vix</link>
		<comments>http://www.eprich.com/automation/how-to-connect-iometer-workloads-to-a-master-server-using-vmware-vix#comments</comments>
		<pubDate>Wed, 20 Apr 2011 11:00:16 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[automation]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[iometer]]></category>
		<category><![CDATA[vmware-vix]]></category>

		<guid isPermaLink="false">http://www.eprich.com/?p=1157</guid>
		<description><![CDATA[I spent a few hours this week assisting my team with some Iometer tests. After repeating the same steps over and over on the first two VMs (and looking at the other dozen or so VMs waiting in the queue), I realized that this is an ideal scenarion for some scripting. My goal was to [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I spent a few hours this week assisting my team with some Iometer tests. After repeating the same steps over and over on the first two VMs (and looking at the other dozen or so VMs waiting in the queue), I realized that this is an ideal scenarion for some scripting. My goal was to create a repeatable process for running Iometer on multiple VMs from a single management box.</p>
<h2><strong>Getting Started</strong></h2>
<p>To demonstrate, I&#8217;ll be using three Windows Server 2008 R2 VMs where one will be the master server and the other two will be remote workers. Each of my VMs will have a second virtual disk added for the Iometer test. Make sure to leave the second disk as a raw disk &#8211; meaning it is online but not initialized or formatted by the guest OS.</p>
<p>First thing is to get your environment ready. Build one VM and configure it as needed. Make sure to install Iometer and VMware tools. You can download Iometer from <a href="http://iometer.org/doc/downloads.html" target="_blank">here</a>. After you build your first VM, you can either create a template from it or clone it as many times as you need. I opted for the template because I can run through the guest customization wizard and create one specific to Iometer.</p>
<p><strong>Note:</strong> If you are testing against a machine with multiple raw disks, it&#8217;s very important that you verify that each disk is online. When adding multiple disks at once to a Windows system, sometimes the OS only brings the first physical disk online and the others are left offline. This will cause tons of IO errors in Iometer because the offline disk isn&#8217;t accessible. Save yourself the time and aggravation by verifying that all disks are online prior to running the tests.</p>
<h2>Configuring Iometer</h2>
<p>This step should be performed from the master Iometer VM. I created a new test using one worker testing the blue physical disk with 8 outstanding IO per target.</p>
<p style="text-align: center;"><a href="http://www.eprich.com/wp-content/uploads/2011/04/Iometer1.png"><img class="aligncenter size-full wp-image-1170" title="Disk Targets" src="http://www.eprich.com/wp-content/uploads/2011/04/Iometer1.png" alt="" width="614" height="291" /></a></p>
<p style="text-align: left;">On the Access Specifications tab, I selected 512B 50% Read, 4K 25% Read, and 32K 25% Read as a random workload.</p>
<p style="text-align: center;"><a href="http://www.eprich.com/wp-content/uploads/2011/04/Iometer2.png"><img class="aligncenter size-full wp-image-1171" title="Access Specifications" src="http://www.eprich.com/wp-content/uploads/2011/04/Iometer2.png" alt="" width="612" height="204" /></a></p>
<p style="text-align: left;">I changed the update frequency to 1 second so I can watch the results in near real-time. On the last tab, I&#8217;m going to run this test for 2 hours.</p>
<p style="text-align: left;"><a href="http://www.eprich.com/wp-content/uploads/2011/04/Iometer31.png"><img class="aligncenter size-full wp-image-1175" title="Test Setup" src="http://www.eprich.com/wp-content/uploads/2011/04/Iometer31.png" alt="" width="613" height="273" /></a></p>
<p style="text-align: left;">When you are done, save the configuration and leave Iomter open. Now to the VIX part.</p>
<h2>The VIX Part</h2>
<p>To me, this is the coolest part of the entire thing. I&#8217;m going to create a small batch file that will use VIX to kick off a dynamo session on each worker and have it connect to the master Iometer VM. Now to do this part, you&#8217;ll need to download and install VIX API, which you can get from <a href="http://www.vmware.com/support/developer/vix-api/" target="_blank">here</a>.</p>
<p>Creating the batch file is pretty easy, I simply copied this command for each VM that I want to test:</p>
<pre>start /b vmrun -T vc -h https://vcenter_FQDN/sdk -u user.name -p password -gu administrator -gp  '
password runProgramInGuest "[Datastore_Name] VM_Name/VM_Name.vmx" "c:program files '
(x86)Iometer.orgIometer 2006.07.27dynamo.exe -i 192.168.1.13 -m 192.168.1.14"</pre>
<p style="padding-left: 30px;">-T specifies the type of server, in this case it&#8217;s vc for vCenter. You can also use esx.<br />
-h specifies the host or vCenter IP/FQDN.<br />
-u and -p are the credentials for vCenter.<br />
-gu and -gp are the credentials for the guest OS.<br />
runProgramInGuest is the VIX command.<br />
&#8220;[Datastore_Name] VM_Name/VM_Name.vmx&#8221; is the path to the VM. Keep the quotes and brackets.<br />
&#8220;c:program files (x86)Iometer.orgIometer 2006.07.27dynamo.exe&#8221; This is the full path to the executable in the guest OS.</p>
<p><strong>Note: </strong>If you copy and paste this, remove the tics in between -gp and password and in between files and (x86).</p>
<p><strong>***UPDATE***</strong></p>
<p>In my haste to get this post published, I totally overlooked the fact that you need to initiate the commands in an asynchronous fashion. This is because the vmrun command will wait until the dynamo.exe process stops running &#8211; per VM. Well if we are running an iometer test for several hours and we have a dozen or so VMs to test&#8230;you see where I&#8217;m going with this, right? To fix this problem, use the start /b to call the vmrun command. I updated the command structure throughout the post. Start /b will run each command as a separate background process without opening new windows. If you want a window per command, remove the /b.</p>
<p><strong>******</strong></p>
<p>The last line of the script calls dynamo.exe with two switches: -i and -m. The -i switch is for specifying the machine name/IP where Iomter is running. The -m switch is for the name of the manager connecting to the master Iometer server. To summarize, .13 is my master Iometer server and .14 and .15 are my remote workers.</p>
<p>My final batch file will look something like this:</p>
<pre>start /b vmrun -T vc -h https://vcenter_FQDN/sdk -u user.name -p password -gu administrator -gp  '
password runProgramInGuest "[Datastore_Name] VM_Name/VM_Name.vmx" "c:program files '
(x86)Iometer.orgIometer 2006.07.27dynamo.exe -i 192.168.1.13 -m 192.168.1.14"

start /b vmrun -T vc -h https://vcenter_FQDN/sdk -u user.name -p password -gu administrator -gp  '
password runProgramInGuest "[Datastore_Name] VM_Name/VM_Name.vmx" "c:program files '
(x86)Iometer.orgIometer 2006.07.27dynamo.exe -i 192.168.1.13 -m 192.168.1.15"</pre>
<p>Pretty easy, right? Now you can just cut-n-paste for each VM. Make sure to update the IP for the manager. After you run the VIX batch file, you&#8217;ll see the following:</p>
<p><a href="http://www.eprich.com/wp-content/uploads/2011/04/Iometer4.png"><img class="aligncenter size-full wp-image-1192" title="Cool Stuff" src="http://www.eprich.com/wp-content/uploads/2011/04/Iometer4.png" alt="" width="611" height="276" /></a></p>
<p>All of my workers are now reporting into my master Iometer server and I can now kick off the test that I configured earlier.</p>
<a class="wpptopdf" target="_blank" rel="noindex,nofollow" href="http://www.eprich.com/automation/how-to-connect-iometer-workloads-to-a-master-server-using-vmware-vix?format=pdf" title="Download PDF"><img alt="Download PDF" src="http://www.eprich.com/wp-content/plugins/wp-post-to-pdf/asset/images/pdf.png"></a><img src="http://feeds.feedburner.com/~r/PaulRichards/~4/fQ6xOR7OiuU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eprich.com/automation/how-to-connect-iometer-workloads-to-a-master-server-using-vmware-vix/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.eprich.com/automation/how-to-connect-iometer-workloads-to-a-master-server-using-vmware-vix</feedburner:origLink></item>
		<item>
		<title>Escaping from Multiple Reverse Telnet Sessions on a Cisco 2900 Router</title>
		<link>http://feedproxy.google.com/~r/PaulRichards/~3/d8aWwPTf7dI/escaping-from-multiple-reverse-telnet-sessions-on-a-cisco-2900-router</link>
		<comments>http://www.eprich.com/cisco/escaping-from-multiple-reverse-telnet-sessions-on-a-cisco-2900-router#comments</comments>
		<pubDate>Wed, 13 Apr 2011 15:07:15 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[cisco-ios]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[reverse-telnet]]></category>
		<category><![CDATA[routers]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.eprich.com/?p=1136</guid>
		<description><![CDATA[I&#8217;m definitely not a network guru but there are many occasions when I need to configure or troubleshoot something. I like to learn as much as I can so I do not need to impose on others&#8230;repeatedly. From time to time, I&#8217;ll come across a helpful tip or trick which makes my life less stressful. [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I&#8217;m definitely not a network guru but there are many occasions when I need to configure or troubleshoot something. I like to learn as much as I can so I do not need to impose on others&#8230;repeatedly. From time to time, I&#8217;ll come across a helpful tip or trick which makes my life less stressful. In this case, it&#8217;s knowing how to escape from a multi-hop reverse telnet session. My coworker Ramki taught me this one and I wanted to write a quick post so I don&#8217;t forget.</p>
<p>We were using a Cisco 2900 router as a terminal server to connect to console ports on remote switches and a remote router. The remote router was also was being used as a terminal server to connect to an entirely different set of remote switches.</p>
<p>So here goes &#8211; let&#8217;s telnet from router 1 to router 2.</p>
<pre>router1#telnet 1.1.1.1 2003
Trying 1.1.1.1, 2003 ...
% Connection refused by remote host</pre>
<p>Sometimes you need to clear the line.</p>
<pre>router1#clear lin 3
[confirm]y [OK]
router1#telnet 1.1.1.1 2003
Trying 1.1.1.1, 2003 ...
% Connection refused by remote host
router1#clear lin 3
[confirm]y [OK]</pre>
<p>Sometimes you need to clear the line&#8230;a lot.</p>
<pre>router1#telnet 1.1.1.1 2003
Trying 1.1.1.1, 2003 ... Open
router2&gt;</pre>
<p>Success! Let’s go to another device.</p>
<pre>router2&gt;en
Password:
router2#telnet 1.1.1.1 2005
Trying 1.1.1.1, 2004 ... Open

switch3#</pre>
<p>Success again!</p>
<p>Now let’s go back to router2. Press <strong>ctrl+shift+6</strong> then<strong> ctrl+shift+6</strong> then <strong>x</strong>. This will bring you back to router2’s prompt.</p>
<pre>router2#</pre>
<p>From here you can telnet to another line or you can exit this router. To exit from here, use the <strong>ctrl+shift+6</strong> then <strong>x </strong>sequence again.</p>
<pre>router1#</pre>
<p>Definitely not rocket surgery but good stuff to know.</p>
<a class="wpptopdf" target="_blank" rel="noindex,nofollow" href="http://www.eprich.com/cisco/escaping-from-multiple-reverse-telnet-sessions-on-a-cisco-2900-router?format=pdf" title="Download PDF"><img alt="Download PDF" src="http://www.eprich.com/wp-content/plugins/wp-post-to-pdf/asset/images/pdf.png"></a><img src="http://feeds.feedburner.com/~r/PaulRichards/~4/d8aWwPTf7dI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eprich.com/cisco/escaping-from-multiple-reverse-telnet-sessions-on-a-cisco-2900-router/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.eprich.com/cisco/escaping-from-multiple-reverse-telnet-sessions-on-a-cisco-2900-router</feedburner:origLink></item>
		<item>
		<title>Tracking a VM in a Nexus 1000v Virtual Network</title>
		<link>http://feedproxy.google.com/~r/PaulRichards/~3/11gA9DwqmtU/tracking-a-vm-in-a-nexus-1000v-virtual-network</link>
		<comments>http://www.eprich.com/cisco/tracking-a-vm-in-a-nexus-1000v-virtual-network#comments</comments>
		<pubDate>Wed, 09 Feb 2011 11:00:09 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[nexus]]></category>
		<category><![CDATA[nexus1000v]]></category>
		<category><![CDATA[vswitch]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.eprich.com/?p=1055</guid>
		<description><![CDATA[In this quick post, I&#8217;d like to highlight a few helpful commands that will allow you to track a VM throughout the virtual network. All of the following commands are executed on the VSM. If you need to get a detailed look at your configured VLANs or to see if one is missing or not yet configured, [...]]]></description>
			<content:encoded><![CDATA[<p></p><div>
<p>In this quick post, I&#8217;d like to highlight a few helpful commands that will allow you to track a VM throughout the virtual network. All of the following commands are executed on the VSM.</p>
<p>If you need to get a detailed look at your configured VLANs or to see if one is missing or not yet configured, you can run <strong>show vlan</strong> or <strong>show vlan brief</strong> for a quick view. To get similar views for port-profiles, you can run <strong>show port-profile</strong> or <strong>show port-profile brief</strong>. These commands are helpful for getting basic switch configuration info. But what if you need more than basic switch information? What if you want to view all of the pertinent network information about your VM? Below are just some of the available commands to help you get better insight to the VM&#8217;s network identity.</p>
<p>In this example, we are going to get the information from a VM called <strong>testvm1</strong>. The first thing we&#8217;ll want to do is find out which VLAN and interface the VM is using. To get this information, run the following command:</p>
<p><strong>show port-profile usage | include &lt;vm-name&gt;</strong></p>
<pre style="padding-left: 30px;">n1kv-1# show port-profile usage | include testvm*
<div id="_mcePaste">vm-vlan7             Veth10      Net Adapter 1  testvm1</div>
</pre>
<p>The output above shows you the name of the port profile (name of VLAN), the interface, the VM&#8217;s adapter, and the VM&#8217;s name.</p>
<p>Now, let&#8217;s say you need more info on the VM, such as statistics on the interface or to which VEM (vSphere host) the interface is attached, you can use the show interface command as demonstrated below:</p>
<p><strong>show interface &lt;interface name&gt;</strong></p>
<pre style="padding-left: 30px;">n1kv-1# show int veth10
Vethernet10 is up
    Port description is testvm1, Network Adapter 1
    Hardware is Virtual, address is 0000.0323.001f
    Owner is VM "testvm1", adapter is Network Adapter 1
    Active on module 2
    VMware DVS port 281
    Port-Profile is vm-vlan7
    Port mode is access
    5 minute input rate 10 bytes/second, 0 packets/second
    5 minute output rate 368 bytes/second, 4 packets/second
    Rx
    20067 Input Packets 17166 Unicast Packets
    0 Multicast Packets 2901 Broadcast Packets
    2967221 Bytes
    Tx
    1611073 Output Packets 17586 Unicast Packets
    339358 Multicast Packets 1254129 Broadcast Packets 1593487 Flood Packets
    117192891 Bytes
    0 Input Packet Drops 0 Output Packet Drops</pre>
<p>The output above displays a lot of information. Here you can see that the interface is up and the MAC address of the virtual adapter. A key piece of information here is the active module. This tells you to which VEM (virtual ethernet module installed on the ESX host) the interface is connected.</p>
<p>To find out which host is considered module number 2, you can run the following command:</p>
<p><strong>show module</strong></p>
<pre style="padding-left: 30px;">n1kv-1# show mod
Mod  Ports  Module-Type                      Model              Status
---  -----  -------------------------------- ------------------ ------------
1    0      Virtual Supervisor Module        Nexus1000V         active *
2    248    Virtual Ethernet Module          NA                 ok
3    248    Virtual Ethernet Module          NA                 ok

Mod  Sw               Hw
---  ---------------  ------
1    4.2(1)SV1(4)    0.0
2    4.2(1)SV1(4)    VMware ESXi 4.1.0 Releasebuild-260247 (2.0)
3    4.2(1)SV1(4)    VMware ESX 4.1.0 Releasebuild-260247 (2.0)

Mod  MAC-Address(es)                         Serial-Num
---  --------------------------------------  ----------
1    00-00-00-00-00-00 to 00-00-00-00-00-00  NA
2    00-00-00-00-00-00 to 00-00-00-00-00-00  NA
3    00-00-00-00-00-00 to 00-00-00-00-00-00  NA

Mod  Server-IP        Server-UUID                           Server-Name
---  ---------------  ------------------------------------  --------------------
1    192.168.2.17     NA                                    NA
2    192.168.2.10    00000000-0001-0002-0000-000000000123  esxi-1.homelab.local
3    192.168.2.14    00000000-0001-0002-0000-000000000124  esx2.homelab.local</pre>
<p>The output displays the information about the VSM and all of the registered and connected VEMs. As you can see in this example, module 2 is esxi-1.homelab.local and has an IP of 192.168.2.10. This is a useful command for checking to see if your VEMs are properly communicating with the VSM.</p>
<p>These are just a few commands I found helpful for troubleshooting and tracking VMs in a virtual environment.</p>
<p>Below are links to a few sites with a lot of Nexus 1000v info.</p>
<h2>Links</h2>
<p><a href="http://www.cisco.com/en/US/products/ps9902/prod_troubleshooting_guides_list.html" target="_blank">List of Cisco Nexus 1000v Troubleshooting Guides</a> &#8211; Cisco<br />
<a href="http://vblog.wwtlab.com/2011/01/21/nexus-1000v-install-via-gui/" target="_blank">Nexus 1000v Install via GUI</a> &#8211; Chris Fendya<br />
<a href="http://jasonnash.wordpress.com/" target="_blank">Jason Nash&#8217;s Blog</a> &#8211; Tons of great Nexus 1000v posts<br />
<a href="http://bradhedlund.com/" target="_blank">Brad Hedlund&#8217;s Blog</a> &#8211; Another great resource for anything network related.</p>
</div>
<a class="wpptopdf" target="_blank" rel="noindex,nofollow" href="http://www.eprich.com/cisco/tracking-a-vm-in-a-nexus-1000v-virtual-network?format=pdf" title="Download PDF"><img alt="Download PDF" src="http://www.eprich.com/wp-content/plugins/wp-post-to-pdf/asset/images/pdf.png"></a><img src="http://feeds.feedburner.com/~r/PaulRichards/~4/11gA9DwqmtU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eprich.com/cisco/tracking-a-vm-in-a-nexus-1000v-virtual-network/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.eprich.com/cisco/tracking-a-vm-in-a-nexus-1000v-virtual-network</feedburner:origLink></item>
		<item>
		<title>Migrating Nexus 1000v and ESX Hosts to a New vCenter Server</title>
		<link>http://feedproxy.google.com/~r/PaulRichards/~3/3UQQ8YYuncM/migrating-nexus-1000v-and-esx-hosts-to-a-new-vcenter-server</link>
		<comments>http://www.eprich.com/cisco/migrating-nexus-1000v-and-esx-hosts-to-a-new-vcenter-server#comments</comments>
		<pubDate>Fri, 28 Jan 2011 11:30:26 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[nexus]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[vcenter]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vswitch]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[nexus-1000v]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.eprich.com/?p=997</guid>
		<description><![CDATA[The other day I needed to migrate a Nexus 1000v from a server running vCenter Server 4.0 to vCenter Server 4.1. I spent some time searching the internets to see if anyone had some tips for how this should be done. I found a KB article on VMware&#8217;s support site that explains how to migrate the [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>The other day I needed to migrate a Nexus 1000v from a server running vCenter Server 4.0 to vCenter Server 4.1. I spent some time searching the internets to see if anyone had some tips for how this should be done. I found a <a href="http://kb.vmware.com/kb/1020893" target="_blank">KB article</a> on VMware&#8217;s support site that explains how to migrate the Nexus 1000v to a different instance of vCenter but it does not explain how to migrate any of the connected ESX hosts. This post will guide you through both portions of the migration.</p>
<p style="text-align: left;">
<h2>Stuff in the KB Article &#8211; Migrating the Nexus 1000v</h2>
<p style="text-align: left;">The first step is to disconnect the VSM from vCenter. As you can see in the picture below, the VSM&#8217;s status is Connected. To get this information, type <strong>show svs connections</strong>.<br />
<a href="http://www.eprich.com/wp-content/uploads/2011/01/showsvscon1.png"><img class="size-full wp-image-1004 aligncenter" title="showsvscon1" src="http://www.eprich.com/wp-content/uploads/2011/01/showsvscon1.png" alt="" width="445" height="200" /></a></p>
<p>Disconnect the VSM from vCenter by entering config mode and typing:</p>
<pre>svs connection vcenter
no connect</pre>
<p>You can do <strong>show svs connections</strong> again to verify that the VSM is in a disconnected state.</p>
<p><a href="http://www.eprich.com/wp-content/uploads/2011/01/showsvscon-no.png"><img class="aligncenter size-full wp-image-1005" title="showsvscon-no" src="http://www.eprich.com/wp-content/uploads/2011/01/showsvscon-no.png" alt="" width="436" height="197" /></a></p>
<p>The next step is to download the Nexus 1000v extension XML file. Point your browser to the IP of the VSM and save the file called cisco_nexus_1000v_extension.xml.</p>
<p><a href="http://www.eprich.com/wp-content/uploads/2011/01/nexus1kvxml.png"><img class="aligncenter size-full wp-image-1006" title="nexus1kvxml" src="http://www.eprich.com/wp-content/uploads/2011/01/nexus1kvxml.png" alt="" width="407" height="269" /></a></p>
<p>Next, log into the new vCenter using the vSphere Client and select <strong>Plug-ins -&gt; Manage Plug-ins</strong>. Right click on any available white space below Available Plug-ins and select <strong>New Plug-in</strong>. Browse to the XML file and then click <strong>Register Plug-in</strong>. Do not enable this plug-in.</p>
<p>After you register the plug-in, you need to connect the VSM to the new vCenter Server. Log into the VSM and enter the following commands from the config menu:</p>
<pre>svs connection vcenter
protocol vmware-vim
remote ip address
vmware dvs datacenter-name
connect</pre>
<p>Now your VSM is reconnected to your vCenter Server. You can see the VSM registering with vCenter and the creation of all of the port-profiles in the tasks window of the vSphere Client.</p>
<p><a href="http://www.eprich.com/wp-content/uploads/2011/01/dvsreconfig.png"><img class="aligncenter size-full wp-image-1026" title="dvsreconfig" src="http://www.eprich.com/wp-content/uploads/2011/01/dvsreconfig.png" alt="" width="539" height="173" /></a></p>
<h2>Stuff NOT in the KB Article &#8211; Migrating the ESX Hosts</h2>
<p>Here is where the fun begins! After you migrate your Nexus 1000v to a new vCenter server, you may be confronted with the following warning:</p>
<p><a href="http://www.eprich.com/wp-content/uploads/2011/01/dvsproxy.png"><img class="aligncenter size-full wp-image-1030" title="dvsproxy" src="http://www.eprich.com/wp-content/uploads/2011/01/dvsproxy.png" alt="" width="665" height="76" /></a></p>
<p>At this point, you&#8217;ll need to remove the VEM from the affected ESX hosts.</p>
<p><strong>Note:</strong> To prevent losing network connectivity to your VMs, VMotion your VMs to another host and perform the following steps one host at a time.</p>
<p>Here&#8217;s the process at a high level:</p>
<ul>
<li>Create a new standard vswitch.</li>
<li>Migrate at least one physical NIC to the vswitch.</li>
<li>Migrate all of your virtual adapters to the vswitch.</li>
<li>Remove the DVS.</li>
<li>Add the host to the Nexus 1000v.</li>
<li>Rinse and repeat.</li>
</ul>
<p>Create the vSwitch however you wish; via the CLI or from the GUI. I personally prefer the CLI because I can type pretty quick. Here are the commands for the CLI:</p>
<p style="text-align: center;">
<pre>esxcfg-vswitch -a vSwitch0                             &lt;--Creates a standard vswitch called vSwitch0.
esxcfg-vswitch -l                                      &lt;--You'll need to get the port number of the vmnic you are removing.
esxcfg-vswitch -Q vmnic# -V &lt;portnumber&gt; &lt;dvSwitch&gt;    &lt;--This removes vmnic# fromport # from dvSwitchX
esxcfg-vswitch -L vmnic# vSwitch0                      &lt;--Adds vmnic# to vSwitch0</pre>
<p>Log into the vSphere Client and refresh the network information. You should see the new vswitch and vmnic appear under the Virtual Switch view.</p>
<p><a href="http://www.eprich.com/wp-content/uploads/2011/01/vswitch0.png"><img class="aligncenter size-full wp-image-1040" title="vswitch0" src="http://www.eprich.com/wp-content/uploads/2011/01/vswitch0.png" alt="" width="399" height="134" /></a></p>
<p>Click on the vNetwork Distributed Switch view and select the <strong>Manage Virtual Adapters&#8230;</strong> link. Select vswif0 and Migrate to Virtual Switch. Click Yes in the confirmation window, select vSwitch0, and enter a Network Label and a VLAN ID (if applicable.) If your host&#8217;s physical NICs are 802.1q trunks and you do not have the proper VLAN ID specified, you will lose network connectivity.</p>
<p>Repeat the above steps for the remaining VMKernel interfaces although the VLAN ID is not as critical for them.</p>
<p><strong>Hint: </strong>If you have multiple VMK interfaces, you&#8217;ll want to identify their network labels properly so you can easily migrate them back to the Nexus 1000v.</p>
<p>After you migrate all of the interfaces to the standard vswitch, click on the Remove link in the vNetwork Distributed Switch view.</p>
<p><a href="http://www.eprich.com/wp-content/uploads/2011/01/nodvs1.png"><img class="aligncenter size-full wp-image-1045" title="nodvs1" src="http://www.eprich.com/wp-content/uploads/2011/01/nodvs1.png" alt="" width="641" height="115" /></a></p>
<p>The final step in this process is adding the host back to the Nexus 1000v.</p>
<p>Click on Home &gt; Inventory &gt; Networking in the vSphere Client. Expand the folder containing the Nexus 1000v. Right-click on the switch name and select Add Host to vNetwork Distributed Switch. Choose the proper host and adapters, select the DVUplink port group from the drop down list, and click Next. Match the vswitch port groups with the proper Nexus 1000v port-profiles (this is why I suggested labeling the VMK interfaces &#8211; it makes this part so much easier). Click next twice and then finish. At this point VUM will attempt to install the vDS module on the host. If it is already present, it will skip the installation. This step may take a few minutes to complete. After the process completes, you can safely delete the standard vswitch from the host.</p>
<p>Repeat this process for each affected host connected to the Nexus 1000v. Feel free to leave feedback with any changes, hints, or suggestions.</p>
<a class="wpptopdf" target="_blank" rel="noindex,nofollow" href="http://www.eprich.com/cisco/migrating-nexus-1000v-and-esx-hosts-to-a-new-vcenter-server?format=pdf" title="Download PDF"><img alt="Download PDF" src="http://www.eprich.com/wp-content/plugins/wp-post-to-pdf/asset/images/pdf.png"></a><img src="http://feeds.feedburner.com/~r/PaulRichards/~4/3UQQ8YYuncM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eprich.com/cisco/migrating-nexus-1000v-and-esx-hosts-to-a-new-vcenter-server/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.eprich.com/cisco/migrating-nexus-1000v-and-esx-hosts-to-a-new-vcenter-server</feedburner:origLink></item>
		<item>
		<title>VCAP-DCA Prep: How to Install and Configuring vCenter Orchestrator</title>
		<link>http://feedproxy.google.com/~r/PaulRichards/~3/HVAHo_BjWig/vcap-dca-prep-configuring-vcenter-orchestrator</link>
		<comments>http://www.eprich.com/automation/vcap-dca-prep-configuring-vcenter-orchestrator#comments</comments>
		<pubDate>Thu, 13 Jan 2011 11:30:56 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[automation]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[orchestration]]></category>
		<category><![CDATA[vcap]]></category>
		<category><![CDATA[vcenter]]></category>
		<category><![CDATA[vCenter-Orchestrator]]></category>
		<category><![CDATA[vco]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vcap-dca]]></category>

		<guid isPermaLink="false">http://socialcloudnow.com/?p=830</guid>
		<description><![CDATA[One of the objectives of the VCAP-DCA exam is knowing how to orchestrate and automate tasks in your virtual environment. The primary tool for the job is vCenter Orchestrator (vCO). In this how-to post, I&#8217;ll uncover some of the gotchas and provide tips for the following areas: Installing vCenter Orchestrator Configuring the vCenter Orchestrator LDAP [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>One of the objectives of the VCAP-DCA exam is knowing how to orchestrate and automate tasks in your virtual environment. The primary tool for the job is vCenter Orchestrator (vCO). In this how-to post, I&#8217;ll uncover some of the gotchas and provide tips for the following areas:</p>
<ul>
<li>Installing vCenter Orchestrator</li>
<li>Configuring the vCenter Orchestrator LDAP connection</li>
<li>Configuring the vCenter Orchestrator database</li>
<li>Configuring connectivity to vCenter Server</li>
</ul>
<p>Running workflows and administering vCenter Orchestrator will be covered in a future post.</p>
<h2>Installing vCenter Orchestrator</h2>
<p>Before installing, you need to know what the requirements are for running Orchestrator. You can view a comprehensive list of supported system requirements, LDAP services, browsers, and databases in the <a href="http://www.vmware.com/pdf/vco_410_install_config_guide.pdf" target="_blank">Installation and Configuration Guide</a> on pages 15 &#8211; 17. This is on the exam blueprint.</p>
<p style="padding-left: 30px;"><strong>Note:</strong> The link to the Installation and Configuration Guide is straight from version 1.6 of the VCAP-DCA exam <a href="http://communities.vmware.com/docs/DOC-12751" target="_blank">blueprint</a>. The version of vCenter Orchestrator called out in the link is version 4.1. This lab and demo uses version 4.0.</p>
<p>There is not much to the actual installation as it is installed with vCenter. The VMware best practice is to install vCO on its own machine. For demonstration and testing purposes, vCO is running on my vCenter 4.0 VM (in Fusion) and the database is on a separate VM (ESXi) running MS SQL 2008.</p>
<h2>Getting Familiar</h2>
<p>Start the VMware vCenter Orchestrator Configuration service and then point your browser to the host&#8217;s IP on port 8282.</p>
<div id="attachment_886" class="wp-caption aligncenter" style="width: 604px">
	<a href="http://www.eprich.com/wp-content/uploads/2011/01/vco-11.png"><img class="size-full wp-image-886 " title="vCO Login Page" src="http://www.eprich.com/wp-content/uploads/2011/01/vco-11.png" alt="" width="604" height="278" /></a>
	<p class="wp-caption-text">vCO Login Page</p>
</div>
<p>The default username and password to log in is <strong>vmware</strong>. The first recommendation is to change the password after you log in. You should familiarize yourself with the vCO navigation menu on the left side of the screen. This is where you will spend the next 30 minutes or so configuring vCenter Orchestrator.</p>
<div id="attachment_927" class="wp-caption aligncenter" style="width: 307px">
	<a href="http://www.eprich.com/wp-content/uploads/2011/01/vco-nav.png"><img class="size-full wp-image-927" title="vCO Navigation Menu" src="http://www.eprich.com/wp-content/uploads/2011/01/vco-nav.png" alt="" width="307" height="495" /></a>
	<p class="wp-caption-text">vCO Navigation Menu</p>
</div>
<p style="padding-left: 30px;"><strong>Note: </strong>You will see green dots or red triangles in the left nav menu. The green dot indicates a successfully configured component where as the red triangle indicates an error or an item that has not yet been configured.</p>
<p style="padding-left: 30px;">
<div id="attachment_904" class="wp-caption aligncenter" style="width: 309px">
	<a href="http://www.eprich.com/wp-content/uploads/2011/01/vco-3a.png"><img class="size-full wp-image-904" title="Status Indicators" src="http://www.eprich.com/wp-content/uploads/2011/01/vco-3a.png" alt="" width="309" height="78" /></a>
	<p class="wp-caption-text">Status Indicators</p>
</div>
<p>After you change the password, you&#8217;ll need to specify the network settings. In the drop down list, select the appropriate<strong> IP address </strong>for use with vCO. Next, enter the <strong>FQDN</strong> of the machine where vCO is installed and accept the specified default ports and click apply changes.</p>
<h2>Configuring LDAP</h2>
<p>The next step is to configure LDAP. You should first verify your directory services information before continuing with the LDAP configuration. You should also create a new AD group specific for vCO Administrators. In my lab, I created one called <strong>vcoadmins</strong>. You will need to specify a vCO Admin group during the LDAP configuration.</p>
<p>Navigate to the LDAP section and select your <strong>LDAP client</strong> from the drop down list. Select the appropriate <strong>LDAP client</strong> (Active Directory here) and enter the name of your <strong>Primary LDAP host</strong> (domain controller). If you have another domain controller to use, you can add that to the <strong>Secondary LDAP host</strong> field. Leave the default LDAP port unless you have something different going on in your environment. You then need to specify the root element of your LDAP service. As you can see, mine is <strong>dc=homelab,dc=local</strong>. I&#8217;m not using SSL or a GC so those options stay unchecked. Enter the user name and password of a domain account that has browsing privileges in the directory. This account will be used by vCO to connect to the LDAP service.</p>
<div id="attachment_915" class="wp-caption aligncenter" style="width: 500px">
	<a href="http://www.eprich.com/wp-content/uploads/2011/01/vco-4a.png"><img class="size-full wp-image-915" title="vCO LDAP Config" src="http://www.eprich.com/wp-content/uploads/2011/01/vco-4a.png" alt="" width="500" height="382" /></a>
	<p class="wp-caption-text">vCO LDAP Config - Part 1</p>
</div>
<p>The next to lookup base boxes are for <strong>users</strong> and <strong>groups</strong>. These are the containers that vCO will use to look up users and groups in the directory. The next field is where you will specify the <strong>vCO Admin group</strong> that you created earlier. Members of this group will have administrative privileges to vCO. Accept the defaults for the remaining options.</p>
<div id="attachment_917" class="wp-caption aligncenter" style="width: 543px">
	<a href="http://www.eprich.com/wp-content/uploads/2011/01/vco-4b1.png"><img class="size-full wp-image-917" title="vCO LDAP Config - Part 2" src="http://www.eprich.com/wp-content/uploads/2011/01/vco-4b1.png" alt="" width="543" height="383" /></a>
	<p class="wp-caption-text">vCO LDAP Config - Part 2</p>
</div>
<h2>Configuring the Database</h2>
<p>The next section is where you configure the database. If you have not done so already, you will need to create a new database for use with vCO. I used MS SQL Server 2008 and created a new database called vco.</p>
<p style="padding-left: 30px;"><strong>Note:</strong> Remember which databases are supported for use with vCO. VMware provides support for MS SQL and Oracle, as well as experimental support for MySQL and Postgres.</p>
<p>You need to specify the connection details for the database. For this you will need the <strong>user name</strong> and <strong>password</strong> for a SQL account that has dbo privileges. You will also need the <strong>hostname</strong> or <strong>IP address</strong> of the database server and the port. Lastly, you will need to enter the name of the <strong>database</strong> and if there is an instance name and a domain. After you specify this information, you will see a confirmation status in red in the upper left. If the database configuration was successful, you will need to click on the <strong>Install database</strong> link.</p>
<div id="attachment_932" class="wp-caption aligncenter" style="width: 382px">
	<a href="http://www.eprich.com/wp-content/uploads/2011/01/vco-db.png"><img class="size-full wp-image-932" title="vCO Database" src="http://www.eprich.com/wp-content/uploads/2011/01/vco-db.png" alt="" width="382" height="507" /></a>
	<p class="wp-caption-text">vCO Database</p>
</div>
<p>After you configure the database, you&#8217;ll need to install the Server Certificate. Click on the Server Certificate link and then select <strong>Create Certificate database and self-signed server certificate</strong> link. Enter data in all of the fields and then click on the <strong>Create</strong> link. If the certificate create is successful, you will see the confirmation status in green in the upper left.</p>
<h2>Connecting to vCenter Server</h2>
<p>Click on the License link and select the option to <strong>Use vCenter Server license</strong>. Enter the <strong>name</strong> of your vCenter Server host, port <strong>443</strong> for SSL, and select the <strong>Secure channel</strong> box. Use <strong>/sdk</strong> for the path if it&#8217;s not already entered. Then enter the <strong>username</strong> and <strong>password</strong> of an account that can connect to vCenter. It should look like this when configured:</p>
<div id="attachment_935" class="wp-caption aligncenter" style="width: 457px">
	<a href="http://www.eprich.com/wp-content/uploads/2011/01/vco-lic.png"><img class="size-full wp-image-935" title="vCO Licensing" src="http://www.eprich.com/wp-content/uploads/2011/01/vco-lic.png" alt="" width="457" height="202" /></a>
	<p class="wp-caption-text">vCO Licensing</p>
</div>
<p>Navigate to the Plug-ins section. This section is where you will go to add future plug-ins to vCO. Enter the <strong>username </strong>and <strong>password</strong> of a user in the <strong>vCO Admins</strong> group and then click apply changes.</p>
<div id="attachment_938" class="wp-caption aligncenter" style="width: 479px">
	<a href="http://www.eprich.com/wp-content/uploads/2011/01/vco-plugins.png"><img class="size-full wp-image-938" title="vCO Plug-ins" src="http://www.eprich.com/wp-content/uploads/2011/01/vco-plugins.png" alt="" width="479" height="599" /></a>
	<p class="wp-caption-text">vCO Plug-ins</p>
</div>
<p>After configuring the plug-ins, click on the vCenter 4.X link to configure the connection to vCenter Server. Select <strong>Available</strong> in the drop down list. Then enter the <strong>FQDN</strong> of the vCenter host and leave port at the default of 443. Select the <strong>Secure channel</strong> box and leave the path with the default of <strong>/sdk</strong>. Specify the credentials for the administrator session and select the <strong>Session per user:</strong> option.</p>
<div id="attachment_939" class="wp-caption aligncenter" style="width: 536px">
	<a href="http://www.eprich.com/wp-content/uploads/2011/01/vco-vcenter.png"><img class="size-full wp-image-939" title="vCO vCenter Config" src="http://www.eprich.com/wp-content/uploads/2011/01/vco-vcenter.png" alt="" width="536" height="581" /></a>
	<p class="wp-caption-text">vCO vCenter Config</p>
</div>
<p>Test the connectivity to the vCenter Server by clicking on the <strong>Connection test link</strong>.</p>
<p>Enter the username and password and click OK to test the connection.</p>
<div id="attachment_940" class="wp-caption aligncenter" style="width: 290px">
	<a href="http://www.eprich.com/wp-content/uploads/2011/01/vco-vctest.png"><img class="size-full wp-image-940" title="vCO vCenter Verification" src="http://www.eprich.com/wp-content/uploads/2011/01/vco-vctest.png" alt="" width="290" height="230" /></a>
	<p class="wp-caption-text">vCO vCenter Verification</p>
</div>
<p>The last step in the configuration process is to install the vCO service. Click on the Startup options link and then select the <strong>Install vCO server as a service</strong> link. After the service is installed, you will see a confirmation status in the upper left at which point you can click <strong>Start service</strong>.</p>
<div id="attachment_941" class="wp-caption aligncenter" style="width: 327px">
	<a href="http://www.eprich.com/wp-content/uploads/2011/01/vco-service.png"><img class="size-full wp-image-941" title="vCO Service" src="http://www.eprich.com/wp-content/uploads/2011/01/vco-service.png" alt="" width="327" height="287" /></a>
	<p class="wp-caption-text">vCO Service</p>
</div>
<p>This concludes the installation and configuration of vCenter Orchestrator.</p>
<h2>Helpful Resources</h2>
<p>The <a href="http://www.vcoteam.info/" target="_blank">vCO team site</a> is a great resource for all things related to vCenter Orchestrator. There are how-to articles for a number of tasks: configuring workflows and configuring custom libraries.</p>
<p>VMware&#8217;s <a href="http://www.vmware.com/support/pubs/orchestrator_pubs.html" target="_blank">vCenter Orchestrator documentation page</a>.</p>
<a class="wpptopdf" target="_blank" rel="noindex,nofollow" href="http://www.eprich.com/automation/vcap-dca-prep-configuring-vcenter-orchestrator?format=pdf" title="Download PDF"><img alt="Download PDF" src="http://www.eprich.com/wp-content/plugins/wp-post-to-pdf/asset/images/pdf.png"></a><img src="http://feeds.feedburner.com/~r/PaulRichards/~4/HVAHo_BjWig" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eprich.com/automation/vcap-dca-prep-configuring-vcenter-orchestrator/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://www.eprich.com/automation/vcap-dca-prep-configuring-vcenter-orchestrator</feedburner:origLink></item>
		<item>
		<title>Putting vCenter Server Heartbeat Through the Ringer</title>
		<link>http://feedproxy.google.com/~r/PaulRichards/~3/qWlnhYqSs5g/putting-vcenter-server-heartbeat-through-the-ringer</link>
		<comments>http://www.eprich.com/failover-clustering/putting-vcenter-server-heartbeat-through-the-ringer#comments</comments>
		<pubDate>Mon, 03 Jan 2011 11:30:43 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[failover clustering]]></category>
		<category><![CDATA[high availability]]></category>
		<category><![CDATA[vcap]]></category>
		<category><![CDATA[vcenter]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vcap-dca]]></category>
		<category><![CDATA[vcda410]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://socialcloudnow.com/?p=805</guid>
		<description><![CDATA[Putting vCenter Server Heartbeat Through the Ringer A while back I wrote a blog post on how to cluster vCenter Server 4.0, you can read all about it here. Needless to say (yet I’m saying it anyway) that is NOT the supported method for providing high availability for one of the most critical components in [...]]]></description>
			<content:encoded><![CDATA[<p></p><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Putting vCenter Server Heartbeat Through the Ringer</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">A while back I wrote a blog post on how to cluster vCenter Server 4.0, you can read all about it here. Needless to say (yet I’m saying it anyway) that is NOT the supported method for providing high availability for one of the most critical components in the virtual environment. The supported method, as you may have guessed by the title of this post, is to use vCenter Server Hearbeat.In this post, I’ll highlight some of the not so obvious installation items and configuration tweaks. I’ll also review how vCenter reacted to my test scenarios.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Disclaimer: This post is not meant to take the place of the vCenter Server Heartbeat admin guide. You should follow the installation instructions per the admin guide and use this post to help with configuring and testing.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Installation and Configuration</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Before jumping into this section, I want to point out some of the prerequisites:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Install Windows Backup and Command Line Tools &#8211; If you are adventurous and want to go with this more painful, less fun option of installing vCenter Server Heartbeat, then make sure these are installed ahead of time.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Firewall Ports &#8211; Either completely disable the Windows firewalls or allow ports 52267 (client) and 57348 (channel). This one hurt a little&#8230;because I thought the Windows firewall was already disabled. It was a real “duh” moment.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Two Separate NICs &#8211; For obvious reasons, vCenter Server Heartbeat requires the use of two separate network cards. One is for the Channel communication (think private or heartbeat traffic) and the other is the Principal NIC (think public network traffic).</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">These are not all of the prerequisites and you should definitely read through the administration PDF before installing this software. Onto the notes&#8230;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">There are two methods for installing vCenter Server Heartbeat or vCSHB: cloning the primary vCenter Server or backing up the primary vCenter Server and restoring that backup to the secondary vCenter Server. This post will focus on the first option &#8211; cloning the primary. This is the faster and easier way to install the software.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Cloning Option</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">The first thing you’ll want to do is clone the primary vCenter Server. Perform a simple clone &#8211; DO NOT make any modifications to the virtual hardware OR use any of the customization wizards. Once cloned, disconnect the Principal NIC and power on the VM. Change the IP address so that it is unique to the VM. If your primary server uses 192.168.1.1, then make the secondary server 192.168.1.2. Test network connectivity to the primary server by pinging its Channel IP address. Assuming that is successful, the next thing you’ll want to do is create a folder and a network share so you can copy some configuration files to it after the software is installed on the primary.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">The installation of vCSHB is pretty straightforward. The installer instructs you to connect to a network share and copy a couple of small configuration files. These files are required to install the secondary node. Continue with the installation on the secondary server. When prompted, make sure to select Secondary as the role for this server.</div>
<p>A while back I wrote a blog post on how to cluster vCenter Server 4.0, you can read all about it <a href="http://socialcloudnow.com/vmware/providing-ha-for-vcenter-with-windows-2008-failover-clustering" target="_blank">here</a>. Needless to say (yet I’m saying it anyway) that is NOT the supported method for providing high availability for one of the most critical components in the virtual environment. The supported method, as you may have guessed by the title of this post, is to use vCenter Server Hearbeat.In this post, I’ll highlight some of the not so obvious installation items and configuration tweaks. I’ll also review how vCenter reacted to my test scenarios.</p>
<p><strong>Disclaimer:</strong> This post is not meant to take the place of the vCenter Server Heartbeat admin guide. You should follow the installation instructions per the admin guide and use this post to help with configuring and testing.</p>
<h2>Installation and Configuration</h2>
<p>Before jumping into this section, I want to point out some of the prerequisites:</p>
<ul>
<li><strong>Install Windows Backup and Command Line Tools</strong> &#8211; If you are adventurous and want to go with this more painful, less fun option of installing vCenter Server Heartbeat, then make sure these are installed ahead of time.</li>
<li><strong>Firewall Ports</strong> &#8211; Either completely disable the Windows firewalls or allow ports <span style="color: #0000ff;"><strong><span style="color: #000000;">52267</span></strong></span> (client) and <strong>57348</strong> (channel). This one hurt a little&#8230;because I thought the Windows firewall was already disabled. It was a real “duh” moment.</li>
<li><strong>Two Separate NICs</strong> &#8211; For obvious reasons, vCenter Server Heartbeat requires the use of two separate network cards. One is for the Channel communication (think private or heartbeat traffic) and the other is the Principal NIC (think public network traffic).</li>
</ul>
<p>These are not all of the prerequisites and you should definitely read through the administration PDF before installing this software. Onto the notes&#8230;</p>
<p>There are two methods for installing vCenter Server Heartbeat or vCSHB: cloning the primary vCenter Server or backing up the primary vCenter Server and restoring that backup to the secondary vCenter Server. This post will focus on the first option &#8211; cloning the primary. This is the faster and easier way to install the software.</p>
<h3>Installation &#8211; Cloning Option</h3>
<p>The first thing you’ll want to do is clone the primary vCenter Server. Perform a simple clone &#8211; DO NOT make any modifications to the virtual hardware OR use any of the customization wizards. Once cloned, disconnect the Principal NIC and power on the VM. Change the IP address so that it is unique to the VM. If your primary server uses 192.168.1.1, then make the secondary server 192.168.1.2. Test network connectivity to the primary server by pinging its Channel IP address. Assuming that is successful, the next thing you’ll want to do is create a folder and a network share so you can copy some configuration files to it after the software is installed on the primary.</p>
<p>The installation of vCSHB is pretty straightforward. The installer instructs you to connect to a network share and copy a couple of small configuration files. These files are required to install the secondary node. Continue with the installation on the secondary server. When prompted, make sure to select Secondary as the role for this server.</p>
<h3>Configuration Notes</h3>
<p><strong>Note 1:</strong> To help prevent split-brain scenarios, you can configure each server&#8217;s Principal NIC with a management IP. Make sure this management IP appears first in the order. Once the management IPs are applied, you can configure a second set of heartbeat pings under the Server Monitoring section of the vCSHB Console. The second set of heartbeat pings should be configured as such:</p>
<ul>
<li>ping from the primary to the secondary</li>
<li>ping from the secondary to the primary</li>
</ul>
<p>This option is chattier on the network but is helpful if the Channel network becomes unavailable for whatever reason.</p>
<p><strong>Note 2:</strong> Enable and configure the auto-switchover option under the Network tab in the vCSHB Console. In my testing, I found that the default of 10 pings is an adequate amount of time to initiate an auto-switchover. You can tune this to suit your needs. If you followed Note 1, then keep in mind that a failover will not occur if  the Channel NIC is disconnected.</p>
<p><strong>Note 3:</strong> Modify the time out value for disconnecting the vCenter Server from an external database. This one drove me a little crazy because the auto-switchovers were not working properly. When an auto-switchover event occurred, vCSHB would eventually timeout because the vCenter Server service on the active server would not stop. Once the VPXD.exe process was killed, the service would switchover. This happens because vCenter disconnects from the external database after 30 minutes by default. You can change this by editing the VPXD.cfg file and restarting vCenter Server service. VMware KB article <a href="http://kb.vmware.com/selfservice/documentLinkInt.do;jsessionid=92B67D0E4695BDEFD74BD11567C0D2D0?micrositeID=null&amp;externalID=1027289" target="_blank">1027289</a> explains how this is done. After you update the VPXD.cfg file, you must configure the timeout values in vCSHB as follows:</p>
<p style="padding-left: 30px;">Launch the vCenter Server Heartbeat Console.<br />
Navigate to Applications: Summary.<br />
Select VMware VirtualCenter in the Application pane.<br />
Click Edit.<br />
Modify the Stop Timeout value to reflect 180 seconds.<br />
Click OK.</p>
<p><strong>Note 4:</strong> vCSHB periodically checks the status of the vCenter Server by sending a quick API call. To do this, it needs to be configured with an account that has at least read-only permissions to vCenter. Configure this account in vCSHB by selecting Applications &#8211; Plugins &#8211; VirtualCenterNFPlugin.dll and click on Edit. Enter the username and password then click OK. To verify settings, click on Rules and scroll to the bottom. Select Check Connection to vCenter and click on Check Now.</p>
<h2>Testing Scenarios</h2>
<p>The objective of each of these test scenarios is to witness vCenter Server Heartbeat perform an automatic failover of the vCenter Server service. A test is successful if the protected service fails over from the active server to the standby server within a timely manner (less than 5 minutes) and does not require assistance or user input.</p>
<p>A manual switchover took one minute and thirty seconds to complete.</p>
<p><strong>Test 1</strong>: Application failure &#8211; kill the NF service on active server.<br />
I ran a continuous ping from a client machine to the shared IP and connected with the vSphere Client to the vCenter instance. Logged into the primary vCenter server and stopped the Neverfail Server R2 service. The service did not failover and my session and pings did not drop. The reason the vCSHB session remained active is because the protected application does not stop if the vCSHB services are stopped.</p>
<p><strong>Test 2:</strong> Application failure &#8211; kill the vCenter Server service on the active server.<br />
My vSphere Client connection immediately dropped and the server group in the vCSHB Console went red with an error. While waiting to see how the secondary server would react, my vSphere Client session reconnected to the primary vCenter server. I checked the status of the vCenter Server services and both of them were restarted by vCSHB.</p>
<p><strong>Test 3:</strong> Network failure &#8211; disconnect the Channel NIC.<br />
Disconnected the Channel network connection in vCenter. Within 20 seconds, the vCSHB Console posted a warning stating that the channel communication stopped. vCenter stayed up and running and the primary remained the active server. The secondary server remained as Standby and in passive. After reconnecting the channel network on the Primary server, vCSHB established channel communication and all was normal. After the channel communication was established, vCSHB performed all integrity checks and recovered properly.</p>
<p><strong>Test 4: </strong>Network failure &#8211; disconnect the Principal NIC.<br />
As I stated in <strong>Note 3</strong>, the vCenter Server service failed to stop on the primary server. After about 10 minutes of the service stopping, I manually killed the vpxd.exe process. Once the secondary server detected that the process stopped on the primary server, the switchover resumed and vCenter was restarted on the secondary server.</p>
<p><strong>Test 5:</strong> Power failure &#8211; shutdown the primary server.<br />
After about a minute, the secondary vCenter instance assumed the identity of the primary. I was able to refresh the vSphere Client and log back into vCenter.</p>
<p><strong>Test 6:</strong> Controlled switchover &#8211; primary to secondary.<br />
While connected to vCenter with the vSphere Client, I initiated a manual switchover by opening the vCSHB console &#8211; Server &#8211; Summary, select the Secondary Server in the Server Summary screen and click Make Active. The vCenter service then stopped on the primary, and the secondary assumed the role of active server. My vSphere Client remained connected during the switchover.</p>
<p><strong>Test 7:</strong> Controlled switchover &#8211; secondary back to primary.<br />
I initiated a switchover from the secondary server to the primary server using the same method as in Test 6. The failover process took slightly longer this time but was within the 5 minute requirement. My vSphere Client was was also disconnected during this test, mainly due to the longer switchover time. The switchover completed and I was able to reconnect to the vCenter instance with the vSphere Client.</p>
<p>Whether you are testing it for deployment in your environment or just learning it for the <a href="http://socialcloudnow.com/vmware/vmware-vcap-dca-study-preparation" target="_blank">VCAP-DCA</a> exam, I would like to hear your experience with vCenter Server Heartbeat. Feel free to leave some comments.</p>
<h2>Useful Links</h2>
<p><a href="http://www.vmware.com/support/pubs/heartbeat_pubs.html" target="_blank">VMware vCenter Server Heartbeat Documentation</a><br />
<a href="http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;docType=kc&amp;externalId=1008567&amp;sliceId=1&amp;docTypeID=DT_KB_1_1&amp;dialogID=131610909&amp;stateId=1%200%20131616670" target="_blank">Recovering from a failed VMware vCenter Server Heartbeat switchover</a><br />
<a href="http://kb.vmware.com/selfservice/documentLinkInt.do;jsessionid=92B67D0E4695BDEFD74BD11567C0D2D0?micrositeID=null&amp;externalID=1027289" target="_blank">Enabling fast auto-switchover on vCenter Servers with remote databases </a></p>
<a class="wpptopdf" target="_blank" rel="noindex,nofollow" href="http://www.eprich.com/failover-clustering/putting-vcenter-server-heartbeat-through-the-ringer?format=pdf" title="Download PDF"><img alt="Download PDF" src="http://www.eprich.com/wp-content/plugins/wp-post-to-pdf/asset/images/pdf.png"></a><img src="http://feeds.feedburner.com/~r/PaulRichards/~4/qWlnhYqSs5g" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eprich.com/failover-clustering/putting-vcenter-server-heartbeat-through-the-ringer/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.eprich.com/failover-clustering/putting-vcenter-server-heartbeat-through-the-ringer</feedburner:origLink></item>
	</channel>
</rss><!-- This Quick Cache file was built for (  www.eprich.com/feed ) in 0.63665 seconds, on May 28th, 2012 at 9:30 am UTC. --><!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 28th, 2012 at 10:30 am UTC --><!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --><!-- Quick Cache Is Fully Functional :-) ... A Quick Cache file was just served for (  www.eprich.com/feed ) in 0.00066 seconds, on May 28th, 2012 at 10:01 am UTC. -->

