<?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>ITonCloud</title>
	<atom:link href="http://www.itoncloud.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.itoncloud.com</link>
	<description>You manage your business. We manage your IT.</description>
	<lastBuildDate>Mon, 09 Jan 2012 12:10:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>The certificate for this server is invalid</title>
		<link>http://www.itoncloud.com/the-certificate-for-this-server-is-invalid</link>
		<comments>http://www.itoncloud.com/the-certificate-for-this-server-is-invalid#comments</comments>
		<pubDate>Tue, 09 Aug 2011 03:41:28 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Citrix XenApp]]></category>

		<guid isPermaLink="false">http://www.itoncloud.com/?p=825</guid>
		<description><![CDATA[I came across a very strange issue in the past few days. Some of our clients have reported an issue not being able to connect to their Citrix session, using iPhone and Android Citrix receiver. We haven’t changed anything at the back end and it used to work flawlessly before. The error which appears on [...]]]></description>
			<content:encoded><![CDATA[<p>I came across a very strange issue in the past few days. Some of our clients have reported an issue not being able to connect to their Citrix session, using iPhone and Android Citrix receiver.</p>
<p>We haven’t changed anything at the back end and it used to work flawlessly before.</p>
<p>The error which appears on iPhone/iPad is this:</p>
<p>The Certificate for this server is invalid. You might be connecting to a server that is pretending to be “server.name” which could put your confidential information at risk.</p>
<p>The same error doesn’t appear when connecting through desktop version of Citrix receiver.</p>
<p>Interestingly when we switched to using the local WiFi on the iPhone it worked no problem, despite the fact the same carrier (Telstra) was used. Then switched back to Telstra’s 3G and the certificate error comes up again. Maybe Telstra have changed something? We have tried it a few times and the error comes up all the time.</p>
<p>Then we put an Optus SIM into the iPhone which had the Telstra SIM before and worked every time. Then we tried a Vodafone SIM in the same phone certificate error again.<br />
It now seems the problem is with Vodafone or Telstra’s 3G right?</p>
<p>We have turned on “Personal Hotspot” on the iPhone and used a PC to connect using 3G and surprisingly it worked as well. Maybe it is not 3G after all? Could it be the Citrix receiver for iPhone?</p>
<p>But then why does it work using Optus, but not Telstra and Vodafone?</p>
<p>One more test. Un-installed Citrix receiver on the iPhone and re-installed it. It now works every time using 3G using Optus and Vodafone. (I assume it would work with Telstra too, but haven’t got the Telstra SIM handy now.</p>
<p>We have experienced similar problem using Android, but un-install and re-install of the Citrix receiver didn’t fix the issue. It makes me think the problem is with the Citrix receiver. We&#8217;ll Keep researching&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itoncloud.com/the-certificate-for-this-server-is-invalid/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Office365 First Impressions</title>
		<link>http://www.itoncloud.com/office365-first-impressions</link>
		<comments>http://www.itoncloud.com/office365-first-impressions#comments</comments>
		<pubDate>Mon, 23 May 2011 01:23:29 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>

		<guid isPermaLink="false">http://www.itoncloud.com/?p=51</guid>
		<description><![CDATA[Finally, I received my Office365 beta testing offer from Microsoft. I&#8217;m writing this as a journal as I set it up on my desktop. For this beta test I decided to use a Windows 7, 64 bit desktop with 8G RAM and IE9 to make sure everything goes smoothly. Usually I use FireFox, but it [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, I received my Office365 beta testing offer from Microsoft. I&#8217;m writing this as a journal as I set it up on my desktop.</p>
<ol>
<li>For this beta test I decided to use a Windows 7, 64 bit desktop with 8G RAM and IE9 to make sure everything goes smoothly. Usually I use FireFox, but it may have some limitations with Office365 and I didn’t want to take the risk.</li>
<li>The first surprise was the beta is not available for Australians. (It is available in the USA, and most European counties, but not for Australians)</li>
<li>I picked that I’m in US and received a waring that I cannot change this in the future! What if my company operates in multiple countries? Strange, but it could be just for beta testers.</li>
<li>It needs to create a new MS ID, which cannot be the same as my MS passport. I would have preferred it to be the same, but maybe it is a good thing. Keep private and business separate. Although in my case my MS ID is used for business already.</li>
<li>It looks like it creates a subdomain for the organisation <em>mydomain</em>.onmicrosoft.com and gave me an email address of <a href="mailto:myname@mydomain.onmicrosoft.com">myname@mydomain.onmicrosoft.com</a>. (<em>Update:</em> Later on you can add your own domain, this is just for the initial setup)</li>
<li>It told me to install the apps as the next step. It asked me to install Lync first (Didn’t give me an option if I want to use Lync  not) and asked me to install 32 or 64 bit on my 64bit Windows 7 box.</li>
<li>The file is 71M and IE9 is estimating 50 minutes to download. Very slow. They probably didn’t allocate too much resources for the beta testers. (My Internet link can easily go up to about 400KB/sec, so it is not my link causing such a slow download. And this is just the Lync component, what about MS Office? That is much bigger than 71M.</li>
<li> Well after 40 minutes I checked the download and nothing is there. It didn’t download and didn’t run. I clicked on “Install” again and it is started to download again from 0%. It didn’t pick up where it stopped before. I saw the previous download getting up to at least 50%, but it started again. MS didn’t offer to use any download manager which allows a re-start of the download.</li>
<li>After just over 2 hours I managed to download and install Lync 201 and when it started it wanted to log in. It has picked up my other MS Live ID. I changed it to the newly created Offiec365 ID and it came up wit the message I need to install another software before I can log in. Luckily this is just a small piece of SW called msoidcli.msi. It downloaded quickly. This is the Microsoft Online Services Sign-in assistant.</li>
<li>After installation it asked me for Sign-in address, username and password. I had some difficulty to log in because mydomain.onmicrosoft.com didn’t work as the sign in address. I couldn’t work out what I should put in each fieldso I gave up for a minute and I&#8217;ll come back to this.</li>
<li>I went on continuing the setup to install the MS Office components. This time it also asked me to log in, but it asked me for my User ID and password. <a href="mailto:myname@mydomain.onmicrosoft.com">myname@mydomain.onmicrosoft.com</a> and the password I created previously worked.</li>
<li>I told me it will re-configure Outlook, MS Office and also downloading a single sign on product.</li>
<li>Then it asked me to restart my PC.</li>
<li>After re-start it finished, the install and told me MS Outlook needs manual configuration.</li>
<li>I haven’t used Outlook on this desktop before and it had Office 2007 SP1 installed already. I started it up and asked for the auto configuration details. Entered email address in <a href="mailto:myname@mydomain.onmicrosoft.com">myname@mydomain.onmicrosoft.com</a> format, password and it auto configured Outlook without any pain.</li>
<li>I went back and tried log in again to Lync 2010 for Office 365. I googled the issue and it seems I’m not the only one got confused. It turned out the Sign in address and login name are both the same. <a href="mailto:myname@mydomain.onmicrosoft.com">myname@mydomain.onmicrosoft.com</a> and the password I specifies earlier. OK, this worked finally.</li>
<li>I fired up MS Word and created a small document. When I went to Save to Office Live it tells me to “Sign in to Office Live Workspace beta”. Clicked on Sign in and nothing happened. Tried a couple of times, re-started my PC, but still, I was unable to save documents to the cloud.</li>
<li>I logged in to the Office365 Management portal and created a word document from there. The On-line version looks very much like the real MS Word, but most options are missing. For example, I can add tables, but I cannot edit background colors or make any fancy change on the table properties, like shadow effect.</li>
<li>Then I tried to save the document created on-line and edit it using my local MS Word. It worked, but I still wasn&#8217;t able to save the modifications back to the cloud.</li>
<li>I started up MS Excel to see if I get better luck with it than MS Word. I couldn&#8217;t find the option &#8220;Save to Office Live&#8221;, just the standard save options.</li>
</ol>
<p>Conclusion:</p>
<p>I have spent just over 5 hours on testing out Office365 and although it shows some potential I think it has a long way to go before it can be used as a serious business productivity tool Well, it is only beta and MS may fix up some of the issues I have experienced. The other issue for me was the speed. I have a decent Internet connection yet using Office365 beta was annoyingly slow for me.</p>
<p>I look forward testing it again in a few month time once it is released in Australia.</p>
<p>Steven</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itoncloud.com/office365-first-impressions/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Are you building a XenApp 6 farm?</title>
		<link>http://www.itoncloud.com/are-you-building-a-xenapp-6-farm</link>
		<comments>http://www.itoncloud.com/are-you-building-a-xenapp-6-farm#comments</comments>
		<pubDate>Sun, 17 Oct 2010 13:46:21 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Leo's Ramblings]]></category>
		<category><![CDATA[Citrix]]></category>
		<category><![CDATA[XenApp]]></category>

		<guid isPermaLink="false">http://www.itoncloud.com/?p=41</guid>
		<description><![CDATA[You’ll want the following Microsoft hotfixes to resolve some interesting bugs (one of which prevents Compressed Folders from working): KB974090 KB975512 KB979223 KB981603 KB981872 KB982860 KB983458 KB983528 KB983620 KB2028827 Cheers, Leo]]></description>
			<content:encoded><![CDATA[<p>You’ll want the following Microsoft hotfixes to resolve some  interesting bugs (one of which prevents Compressed Folders from  working):</p>
<ul>
<li><a href="http://support.microsoft.com/kb/974090" target="_blank">KB974090</a></li>
<li><a href="http://support.microsoft.com/kb/974090" target="_blank">KB975512</a></li>
<li><a href="http://support.microsoft.com/kb/979223" target="_blank">KB979223</a></li>
<li><a href="http://support.microsoft.com/kb/981603" target="_blank">KB981603</a></li>
<li><a href="http://support.microsoft.com/kb/981872" target="_blank">KB981872</a></li>
<li><a href="http://support.microsoft.com/kb/982860" target="_blank">KB982860</a></li>
<li><a href="http://support.microsoft.com/kb/983458" target="_blank">KB983458</a></li>
<li><a href="http://support.microsoft.com/kb/983528" target="_blank">KB983528</a></li>
<li><a href="http://support.microsoft.com/kb/983620" target="_blank">KB983620</a></li>
<li><a href="http://support.microsoft.com/kb/2028827" target="_blank">KB2028827</a></li>
</ul>
<p>Cheers,</p>
<p>Leo</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itoncloud.com/are-you-building-a-xenapp-6-farm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Duplicate profile folders/links/libraries in 2008R2 XenApp 6 and RDS/Terminal Services farms</title>
		<link>http://www.itoncloud.com/duplicate-profile-folderslinkslibraries-in-2008r2-xenapp-6-and-rdsterminal-services-farms</link>
		<comments>http://www.itoncloud.com/duplicate-profile-folderslinkslibraries-in-2008r2-xenapp-6-and-rdsterminal-services-farms#comments</comments>
		<pubDate>Tue, 10 Aug 2010 14:50:59 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Leo's Ramblings]]></category>
		<category><![CDATA[Remote Desktop]]></category>
		<category><![CDATA[Terminal Services]]></category>
		<category><![CDATA[XenApp]]></category>

		<guid isPermaLink="false">http://www.itoncloud.com/?p=45</guid>
		<description><![CDATA[Hi, Does your user’s libraries folder contain two ‘folders’ for each library after you’ve performed a Group Policy folder redirection? One pointing to the original c:\Users\%username% location and the other to the correct share assigned via GPO? If that’s the case, it looks a little bit like this: Jonathan Bennett documented the fix here however [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>Hi,</p>
<p>Does your user’s libraries folder contain two ‘folders’ for each  library after you’ve performed a Group Policy folder redirection? One  pointing to the original c:\Users\%username% location and the other to  the correct share assigned via GPO?</p>
<p>If that’s the case, it looks a little bit like this:</p>
<p><img class="size-full wp-image-132 alignnone" title="DuplicateProfiles_Web_3" src="http://www.itoncloud.com/wp-content/uploads/DuplicateProfiles_Web_3.png" alt="" width="483" height="507" /></p>
<p>Jonathan Bennett documented the fix <a href="http://blogs.technet.com/b/deploymentguys/archive/2008/05/01/dealing-with-duplicate-user-profile-links-in-windows-vista.aspx" target="_blank">here</a> however it is left up to the user to compile the file. I’ve saved you the trouble. Here is the <a href="/wp-content/uploads/RemoveDuplicateProfileLinks.exe" target="_self">file</a> you need.</p>
<p>Run it as part of you user’s login scripts or assign it to the  Startup folder in the Start Menu via Group Policy Preferences (my  preferred method).</p>
<p>Ta,</p>
<p>Leo</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.itoncloud.com/duplicate-profile-folderslinkslibraries-in-2008r2-xenapp-6-and-rdsterminal-services-farms/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cleaning up snapshots (inc. failed VCBs) on VC hosted on 2008 R2</title>
		<link>http://www.itoncloud.com/cleaning-up-snapshots-inc-failed-vcbs-on-vc-hosted-on-2008-r2</link>
		<comments>http://www.itoncloud.com/cleaning-up-snapshots-inc-failed-vcbs-on-vc-hosted-on-2008-r2#comments</comments>
		<pubDate>Tue, 10 Aug 2010 12:07:56 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Leo's Ramblings]]></category>
		<category><![CDATA[Vmware]]></category>

		<guid isPermaLink="false">http://www.itoncloud.com/?p=124</guid>
		<description><![CDATA[Hi, I recently upgraded my VirtualCenter server to 4.0.1 running on 2008 R2. I’m very happy with it, except the old way of running scheduled powershell tasks in 2003, no longer works. This is my script to delete all snapshots older than 7 days: Add-PSSnapin VMware.VimAutomation.Core Connect-VIServer VCservername -User UserName -Password Password Get-VM &#124; Get-Snapshot [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I recently upgraded my VirtualCenter server to 4.0.1 running on 2008 R2. I’m very happy with it, except the old way of running scheduled powershell tasks in 2003, no longer works. This is my script to delete all snapshots older than 7 days:</p>
<pre style="padding-left: 30px;">Add-PSSnapin VMware.VimAutomation.Core
Connect-VIServer <strong>VCservername</strong> -User <strong>UserName</strong> -Password <strong>Password</strong>

Get-VM | Get-Snapshot | Where { $_.Created -lt (Get-Date).AddDays(-7)} | remove-snapshot -confirm:$false</pre>
<p>The way to run this script (assuming it’s called Delete-Snapshots.ps1 and sits in C:\Windows\Scripts) is to go into the Actions tab of Task Scheduler and change the program settings to:</p>
<ul>
<li><strong>Program/script:</strong> %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe</li>
<li><strong>Add arguments (optional):</strong> -noninteractive -nologo c:\windows\scripts\delete-snapshots.ps1</li>
</ul>
<p>Alternatively, here is the <a href="/wp-content/uploads/delete-snapshots.xml">xml file</a> dump you can import into Task Scheduler (delete-snapshots.xml) – obviously you’ll need to change usernames to run the service as.</p>
<p>Ta,</p>
<p>Leo</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itoncloud.com/cleaning-up-snapshots-inc-failed-vcbs-on-vc-hosted-on-2008-r2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vCenter 4.1 upgrade causing you SSL certificate headaches?</title>
		<link>http://www.itoncloud.com/vcenter-4-1-upgrade-causing-you-ssl-certificate-headaches</link>
		<comments>http://www.itoncloud.com/vcenter-4-1-upgrade-causing-you-ssl-certificate-headaches#comments</comments>
		<pubDate>Mon, 26 Jul 2010 12:50:22 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Leo's Ramblings]]></category>
		<category><![CDATA[Vmware]]></category>

		<guid isPermaLink="false">http://www.itoncloud.com/?p=144</guid>
		<description><![CDATA[Recently, a customer of mine decided that it’s time to upgrade to vCenter 4.1. So he took a backup of the database and blew away the 32-bit Windows server. He then installed Windows 2008 R2, SQL Server Express 2008 R2 with Advanced Services and imported the DB back in – created a 64-bit DSN, and [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, a customer of mine decided that it’s time to upgrade to  vCenter 4.1. So he took a backup of the database and blew away the  32-bit Windows server. He then installed Windows 2008 R2, SQL Server  Express 2008 R2 with Advanced Services and imported the DB back in –  created a 64-bit DSN, and started installing vCenter. You then choose to  upgrade the database to 4.1…</p>
<p>… only to be told that vCenter won’t install without your old certificates in the All Users profile which can be found in</p>
<ul>
<li>Windows 2000/2003/XP: c:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\SSL\</li>
<li>Windows 2008/2008/Vista/7: c:\programdata\VMware\VMware VirtualCenter\SSL</li>
</ul>
<p>VMware’s vCenter installer says you can’t do it unless you have a  certificate back up or have already imported the certificates into the  new server at the default locations (above)</p>
<p>That’s a lie. You can do it. You just have to accept that it’s going  to be a little bit more manual and you’ll have to reconnect all your  ESX/i hosts afterwards.</p>
<p>Here’s how to do it:</p>
<ul>
<li>Blow away your restored database (but keep the backup)</li>
<li>Create a new database with a SQL db_owner user identical to the username of the SQL db_owner user on the old server.</li>
<li>Create a new SQL 64-bit DSN</li>
<li>Install vCenter as a brand new install.</li>
<li>Stop the VMware VirtualCenter service</li>
<li>Stop the VMware WebServices service</li>
<li>Open SQL Management Studio and restore the backed up DB over the top of the new DB</li>
<li>If you are using SQL authentication open a new query window and execute the following statement:<br />
<em>sp_change_users_login “auto_fix”, ‘vmware’</em><br />
This marries the orphaned SQL db_owner in the database to the newly created login in point 2 above</li>
<li>Open the command prompt and in the installation directory of VirtualCenter, run the following:<br />
<em>vpxd -p<br />
</em>You will be asked to input a password – use the same password as  that of the SQL db_owner user for your database. This  re-initializes/re-encrypts the database with the newly installed  certificates and removes references to the old certificates which got  blown away during the OS reinstall.</li>
</ul>
<p>At this point you can fire up your vCenter and reconnect all your  hosts – this is a manual task but once finished, everything will be  fine.</p>
<p>What I haven’t been tested is the effect of doing this on plugins  such as Update Manager that share column space in the vCenter DB (yes  you can separate the DBs but not all people do). Thankfully, a quick  google revealed this document in VMware’s <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1017577" target="_blank">KB</a> which might help – it has to do with the password defaults for  certificates, not the password defaults for the DB, so I might be  leading you up the wrong alley.</p>
<p>Nonetheless, this neatly avoids the issue of restores, or having to  re-implement all the customisations in your VC (including dvSwitches).<br />
Cheers,</p>
<p>Leo</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itoncloud.com/vcenter-4-1-upgrade-causing-you-ssl-certificate-headaches/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Performing SAN fabric maintenance on ESX</title>
		<link>http://www.itoncloud.com/performing-san-fabric-maintenance-on-esx</link>
		<comments>http://www.itoncloud.com/performing-san-fabric-maintenance-on-esx#comments</comments>
		<pubDate>Wed, 23 Jun 2010 13:02:18 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Leo's Ramblings]]></category>
		<category><![CDATA[Vmware]]></category>

		<guid isPermaLink="false">http://www.itoncloud.com/?p=152</guid>
		<description><![CDATA[Hi, We have close to 50 LUNs presented to 40 hosts at a client site. We also need to perform maintenance which will cause downtime on our core FC switch. This means there will be a massive failover and potential path thrashing due to lack of path balance on all VM hosts at once. Here’s [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>We have close to 50 LUNs presented to 40 hosts at a client site. We  also need to perform maintenance which will cause downtime on our core  FC switch. This means there will be a massive failover and potential  path thrashing due to lack of path balance on all VM hosts at once.</p>
<p>Here’s what we have:</p>
<p>ESX Server with 2 HBAs -&gt; 4 Paths -&gt; <strong>Fixed path policy</strong> -&gt; Active/Active Storage Array</p>
<p>Each HBA has 2 paths to the Active/Active array. This means that I  should be able to migrate all paths to either of these two paths on one  of the HBAs.</p>
<p>So here’s how we do it:</p>
<pre>#!/bin/bash
COUNTER=1
for LUN in $(esxcfg-mpath -l | grep "has 4 paths" | awk '{print $2}')
   do
      esxcfg-mpath --lun=${LUN} --path=$(esxcfg-mpath -q --lun=${LUN} | grep FC | awk '{print $4}' | awk '{print NR "S\t " $0}' | grep ${COUNTER}S | awk '{print $2}') --preferred
      COUNT=`expr ${COUNTER} + 1`
      COUNTER=${COUNT}
      if [[ ${COUNTER} -gt 2 ]]
      then
         COUNTER="1"
      fi
   done
for HBA in `esxcfg-info -w | grep vmhba | awk '{print $3}' | grep -e 'vmhba\+[1-9]' -o`
   do
      esxcfg-rescan $HBA
   done
/usr/bin/vmware-vim-cmd hostsvc/storage/refresh</pre>
<p>In the above case what you’re seeing is a loadbalance across paths 1  and 2 of the lowest HBA number seen for each path by esxcfg-mpath  (esxcfg-mpath sorts HBA-path configs from lowest HBA number to highest  HBA number)</p>
<p>Then there is an esxcfg-rescan operation on all HBAs of the host and a  storage refresh. At this point, all your paths are on the two paths of  the first HBA.</p>
<p>If you want to take down the first HBA and move all paths to the  second HBA, it’s simply a slight script modification to increment the  COUNTER variable:</p>
<pre>#!/bin/bash
COUNTER=3
for LUN in $(esxcfg-mpath -l | grep "has 4 paths" | awk '{print $2}')
   do
      esxcfg-mpath --lun=${LUN} --path=$(esxcfg-mpath -q --lun=${LUN} | grep FC | awk '{print $4}' | awk '{print NR "S\t " $0}' | grep ${COUNTER}S | awk '{print $2}') --preferred
      COUNT=`expr ${COUNTER} + 1`
      COUNTER=${COUNT}
      if [[ ${COUNTER} -gt 4 ]]
      then
         COUNTER="3"
      fi
   done
for HBA in `esxcfg-info -w | grep vmhba | awk '{print $3}' | grep -e 'vmhba\+[1-9]' -o`
   do
      esxcfg-rescan $HBA
   done
/usr/bin/vmware-vim-cmd hostsvc/storage/refresh</pre>
<p>In this case, the paths will vary between paths 3 and 4 which represent the two paths of the second HBA listed by esxcfg-mpath.</p>
<p>Thanks to Duncan Epping of <a href="http://www.yellow-bricks.com/2008/04/01/load-balancing-activeactive-sans/" target="_blank">yellow-bricks.com</a> for some of the code</p>
<p>Cheers,</p>
<p>Leo</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itoncloud.com/performing-san-fabric-maintenance-on-esx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twatting on twitter</title>
		<link>http://www.itoncloud.com/twatting-on-twitter</link>
		<comments>http://www.itoncloud.com/twatting-on-twitter#comments</comments>
		<pubDate>Fri, 18 Jun 2010 13:29:15 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Leo's Ramblings]]></category>

		<guid isPermaLink="false">http://www.itoncloud.com/?p=156</guid>
		<description><![CDATA[I’m now twatting on twitter after being convinced to do so by my good friend Matt Marlor who runs the excellent autechheads.com forum for Australian and New Zealand geeks. You can apparently follow me @lraikhman. I’m not sure what pearls of wisdom I can provide in 140 characters but if you feel up to it, [...]]]></description>
			<content:encoded><![CDATA[<p>I’m now twatting on twitter after being convinced to do so by my good friend Matt Marlor who runs the excellent <a href="http://www.autechheads.com/" target="_blank">autechheads.com</a> forum for Australian and New Zealand geeks.</p>
<p>You can apparently follow me @lraikhman. I’m not sure what pearls of  wisdom I can provide in 140 characters but if you feel up to it, I’m  sure I can entertain you with geek frustration at every day Project  Management stupidity.</p>
<p>Ta,</p>
<p>Leo</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itoncloud.com/twatting-on-twitter/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VCDX progress update</title>
		<link>http://www.itoncloud.com/vcdx-progress-update</link>
		<comments>http://www.itoncloud.com/vcdx-progress-update#comments</comments>
		<pubDate>Thu, 17 Jun 2010 13:31:50 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Leo's Ramblings]]></category>
		<category><![CDATA[Vmware]]></category>

		<guid isPermaLink="false">http://www.itoncloud.com/?p=160</guid>
		<description><![CDATA[Just to let you know, my VCDX application has been accepted – I’m defending my mammoth design in Melbourne on the 6th of July… Wish me luck…]]></description>
			<content:encoded><![CDATA[<p>Just to let you know, my VCDX application has been accepted – I’m defending my mammoth design in Melbourne on the 6th of July…</p>
<p>Wish me luck…</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itoncloud.com/vcdx-progress-update/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A new VMFS driver for Linux systems for recovery purposes.</title>
		<link>http://www.itoncloud.com/a-new-vmfs-driver-for-linux-systems-for-recovery-purposes</link>
		<comments>http://www.itoncloud.com/a-new-vmfs-driver-for-linux-systems-for-recovery-purposes#comments</comments>
		<pubDate>Thu, 17 Jun 2010 11:33:16 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Leo's Ramblings]]></category>
		<category><![CDATA[vmfs]]></category>
		<category><![CDATA[Vmware]]></category>

		<guid isPermaLink="false">http://www.itoncloud.com/?p=162</guid>
		<description><![CDATA[As an update to this post, the vmfs-tools project has been operating for a while and, unlike the previous driver – these guys have made it possible to read VMFS extents. Cheers, Leo]]></description>
			<content:encoded><![CDATA[<p>As an update to <a href="http://blog.core-it.com.au/?p=416" target="_blank">this</a> post, the <a href="http://glandium.org/projects/vmfs-tools/" target="_blank">vmfs-tools</a> project has been operating for a while and, unlike the previous driver – these guys have made it possible to read VMFS extents.</p>
<p>Cheers,</p>
<p>Leo</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itoncloud.com/a-new-vmfs-driver-for-linux-systems-for-recovery-purposes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

