<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Professional VMware &#187; API</title>
	<atom:link href="http://professionalvmware.com/category/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://professionalvmware.com</link>
	<description>How Many Turtles Can You Fit On A Rock?</description>
	<lastBuildDate>Mon, 19 Jul 2010 20:47:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.5.3" -->
	<copyright>Copyright &#xA9; 2010 Professional VMware http://creativecommons.org/licenses/by-nc-sa/2.5/</copyright>
	<managingEditor>podcast@professionalvmware.com (Cody Bunch)</managingEditor>
	<webMaster>podcast@professionalvmware.com (Cody Bunch)</webMaster>
	<category>podcast</category>
	<ttl>1440</ttl>
	<image>
		<url>http://professionalvmware.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>Professional VMware &#187; API</title>
		<link>http://professionalvmware.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle>ProfessionalVMware BrownBag Series</itunes:subtitle>
	<itunes:summary>ProfessionalVMware BrownBag Series</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Technology" />
	<itunes:category text="Technology">
		<itunes:category text="Podcasting" />
	</itunes:category>
	<itunes:category text="Technology">
		<itunes:category text="Software How-To" />
	</itunes:category>
	<itunes:author>Cody Bunch</itunes:author>
	<itunes:owner>
		<itunes:name>Cody Bunch</itunes:name>
		<itunes:email>podcast@professionalvmware.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://professionalvmware.com/wp-content/plugins/podpress/images/ProVmwarePodcast.jpg" />
		<item>
		<title>New Script &#8211; Get VM or ESX Host UUIDs (get-uuid.ps1)</title>
		<link>http://professionalvmware.com/2009/04/new-script-get-vm-or-esx-host-uuids-get-uuidps1/</link>
		<comments>http://professionalvmware.com/2009/04/new-script-get-vm-or-esx-host-uuids-get-uuidps1/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 18:22:46 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[VM]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[uuid]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2009/04/29/new-script-get-vm-or-esx-host-uuids-get-uuidps1/</guid>
		<description><![CDATA[UUIDs are wonderful! Really. They’re just not all that easy to get to, at least not when you need more than a few of them at a time. That is where this script comes in:
# get-uuid.ps1     #      # Takes either a VMHost or VM object from [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>UUIDs are wonderful! Really. They’re just not all that easy to get to, at least not when you need more than a few of them at a time. That is where this script comes in:</p>
<p><font face="Courier New" color="#ff8040"># get-uuid.ps1     <br />#      <br /># Takes either a VMHost or VM object from the pipeline, returns the corresponding UUID.      <br />Begin {      <br />&#160;&#160;&#160; $VMHost_UUID = @{      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Name = &quot;VMHost_UUID&quot;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Expression = { $_.Summary.Hardware.Uuid }      <br />&#160;&#160;&#160; }      <br />&#160;&#160;&#160; $VM_UUID = @{      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Name = &quot;VM_UUID&quot;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Expression = { $_.Config.Uuid }      <br />&#160;&#160;&#160; }      <br />} </font></p>
<p><font face="Courier New" color="#ff8040">Process {     <br />&#160;&#160;&#160; $InputTypeName = $_.GetType().Name      <br />&#160;&#160;&#160; if ( $InputTypeName -eq &quot;VMHostImpl&quot; ) {      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $_ | Get-View | Select-Object $VMHost_UUID      <br />&#160;&#160;&#160; } elseif ( $InputTypeName -eq &quot;VirtualMachineImpl&quot; ) {      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $_ | get-view | Select-Object $VM_UUID      <br />&#160;&#160;&#160; } else {      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host &quot;`nPlease pass this script either a VMHost or VM object on the pipeline.`n&quot;      <br />&#160;&#160;&#160; }      <br />}</font></p>
<p>Excusing the line wrap and odd orange color, you can see in the “Begin” block, that we define the two properties, based on their location in the API. In the process block we do some error checking, and then grab the relevant UUIDs.</p>
<p>The output looks similar to:</p>
<p><font face="Courier New" color="#ff8040">[VI Toolkit] C:\&gt; get-vm | select -first 1 | .\scripts\get-uuid.ps1 </font></p>
<p><font face="Courier New" color="#ff8040">VM_UUID     <br />&#8212;&#8212;-      <br />50205819-19c6-965d-8d70-dbad7c43e598 </font></p>
<p><font face="Courier New" color="#ff8040">[VI Toolkit] C:\&gt; get-vmhost | select -first 1 | .\scripts\get-uuid.ps1 </font></p>
<p><font face="Courier New" color="#ff8040">VMHost_UUID     <br />&#8212;&#8212;&#8212;&#8211;      <br />44454c4c-4a00-104d-8042-cac04f544831</font></p>
<p>The script can be downloaded <a title="get-uuid.ps1 download" href="http://professionalvmware.com/scripts/get-uuid.ps1">here</a>. Please note, that it was discovered while researching this post that the VMHost UUIDs stored by vCenter 2.5 U3 may or may not actually be unique. I have an active SR around this, and will make a follow up post once we get it sorted.</p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2009/04/new-script-get-vm-or-esx-host-uuids-get-uuidps1/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>VMware Developer Community EXTREME MAKEOVER EDITION!</title>
		<link>http://professionalvmware.com/2009/01/vmware-developer-community-extreme-makeover-edition/</link>
		<comments>http://professionalvmware.com/2009/01/vmware-developer-community-extreme-makeover-edition/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 14:43:00 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[community]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2009/01/27/vmware-developer-community-extreme-makeover-edition/</guid>
		<description><![CDATA[Well, I’m not sure how “Extreme” it is, but over the weekend VMware’s Developer community site got a face lift.
Unlike Joan Rivers, this one actually kinda looks good afterwards:

]]></description>
			<content:encoded><![CDATA[<p></p><p>Well, I’m not sure how “Extreme” it is, but over the weekend <a href="http://communities.vmware.com/community/developer">VMware’s Developer community site</a> got a face lift.</p>
<p>Unlike Joan Rivers, this one actually kinda looks good afterwards:</p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2009/01/20090126-2042.png"><img title="2009-01-26_2042" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="312" alt="2009-01-26_2042" src="http://professionalvmware.com/wp-content/uploads/2009/01/20090126-2042-thumb.png" width="588" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2009/01/vmware-developer-community-extreme-makeover-edition/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>VIXated with VMware&#8217;s VIX</title>
		<link>http://professionalvmware.com/2008/12/vixated-with-vmwares-vix/</link>
		<comments>http://professionalvmware.com/2008/12/vixated-with-vmwares-vix/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 20:20:00 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[VI3]]></category>
		<category><![CDATA[VIX]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Virtual Infrastructure]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[esx 3.5]]></category>
		<category><![CDATA[guest OS]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2008/12/18/vixated-with-vmwares-vix/</guid>
		<description><![CDATA[Since my first few posts on this got a bit of attention, I thought I&#8217;d add some more to this. In today&#8217;s post we&#8217;ll cover adding or deleting a route, and setting a default route. I’ve got requests for others that will keep the next few weeks worth of VIX posts busy.
We’ll cover this against [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Since my first few posts on this got a bit of attention, I thought I&#8217;d add some more to this. In today&#8217;s post we&#8217;ll cover adding or deleting a route, and setting a default route. I’ve got requests for others that will keep the next few weeks worth of VIX posts busy.</p>
<p>We’ll cover this against both a Windows and a Linux guest, because well… VIX is flexible like that. Remember, if you have any trouble, check that your VMware Tools are running, your command syntax is correct, and that you have the right user &amp; password settings.</p>
<h3>On Windows:</h3>
<p>Traditionally this would be done by logging into the guest OS, and running one of the following commands: </p>
<p>Adding:   <br />Temporary Route: <font face="Courier New">route add 192.168.100.0 mask 255.255.255.0 192.168.15.1 1      <br /></font>Permanent Route: <font face="Courier New">route add -p 192.168.100.0 mask 255.255.255.0 192.168.15.1 1</font> </p>
<p>Deleting:   <br /><font face="Courier New">route delete 192.168.100.0</font> </p>
<p>Doing this in VIX is as simple as:</p>
<p>Before:   <br /><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2039.png"><img title="2008-12-15_2039" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="125" alt="2008-12-15_2039" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2039-thumb.png" width="244" border="0" /></a> </p>
<p>Adding:   <br /><font face="Courier New">vmrun -T esx -h </font><a href="https://esx/sdk"><font face="Courier New">https://esx/sdk</font></a><font face="Courier New"> -u cody.bunch -p password -gu guest.user -gp guest.password runProgramInGuest &quot;[datastore] vm/vmx.vmx&quot; c:\windows\system32\route.exe add -p 192.168.100.0 mask 255.255.255.0 192.168.15.1</font> </p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2049.png"><img title="2008-12-15_2049" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="125" alt="2008-12-15_2049" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2049-thumb.png" width="244" border="0" /></a> </p>
<p>Deleting:   <br /><font face="Courier New">vmrun -T esx -h </font><a href="https://esx/sdk"><font face="Courier New">https://esx/sdk</font></a><font face="Courier New"> -u cody.bunch -p password -gu guest.user -gp guest.password runProgramInGuest &quot;[datastore] vm/vmx.vmx&quot; c:\windows\system32\route.exe delete 192.168.100.0 </font></p>
<p><font face="Courier New"><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2054.png"><img title="2008-12-15_2054" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="125" alt="2008-12-15_2054" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2054-thumb.png" width="244" border="0" /></a></font></p>
<p>Setting the default was accomplished back in our setting the <a href="http://professionalvmware.com/2008/12/12/vmware-vix-changing-ips-of-a-guest-vm/">IP address post.</a></p>
<p><font face="Courier New">C:\Program Files\VMware\VMware VIX&gt;vmrun -T esx -h </font><a href="https://esx.example.com/sdk"><font face="Courier New">https://esx.example.com/sdk</font></a><font face="Courier New"> -u nerv\cody.bunch -p apassword -gu Administrator -gp anotherpassword&#160; runProgramInGuest “[sanstorage1] test/test.vmx” c:\windows\system32\netsh int ip set address “Local Area Connection” static 192.168.15.25 255.255.255.0 192.1</font></p>
<p>&#160;</p>
</p>
<h3>On Linux</h3>
<p>On Linux, where my knowledge is quite limited, I’ve come to understand (thanks Google) that it’s as simple as the “route add –net” commands to add and delete routes. I did find however, that for making this route persistent, can vary across distro of choice, and thus I’ve not included it here.</p>
<p>Adding:   <br /><font face="Courier New">route add –net 192.168.100.0/24 gw 192.168.15.1</font></p>
<p>Deleting:   <br /><font face="Courier New">route del –net 192.168.100.0/24 gw 192.168.15.1</font></p>
<p>In VIX:</p>
<p>Before:</p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2106.png"><img title="2008-12-15_2106" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="153" alt="2008-12-15_2106" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2106-thumb.png" width="244" border="0" /></a> </p>
<p>Adding:   <br /><font face="Courier New">vmrun -T esx -h </font><a href="http://dc01.nerv.local/sdk"><font face="Courier New">http://dc01.nerv.local/sdk</font></a><font face="Courier New"> -u user -p password -gu root -gp rootpassword runProgramInGuest &quot;[Local     <br /> Storage] shell.nerv.local/shell.nerv.local.vmx&quot; /sbin/route add -net 192.168.10      <br />0.0/24 gw 192.168.15.1</font></p>
<p><font face="to">Deleting:     <br /></font><font face="Courier New">vmrun -T esx -h </font><a href="http://dc01.nerv.local/sdk"><font face="Courier New">http://dc01.nerv.local/sdk</font></a><font face="Courier New"> -u user -p password -gu root -gp rootpassword runProgramInGuest &quot;[Local     <br /> Storage] shell.nerv.local/shell.nerv.local.vmx&quot; /sbin/route add -net 192.168.10      <br />0.0/24 gw 192.168.15.1</font></p>
<p><font face="to">See!     <br /><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2112.png"><img title="2008-12-15_2112" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="153" alt="2008-12-15_2112" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2112-thumb.png" width="244" border="0" /></a> </font></p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2008/12/vixated-with-vmwares-vix/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>1 Day Left &#8211; The Most Awesome PowerShell One-Liner in the History of PowerShell One-Liners!</title>
		<link>http://professionalvmware.com/2008/12/1-day-left-the-most-awesome-powershell-one-liner-in-the-history-of-powershell-one-liners/</link>
		<comments>http://professionalvmware.com/2008/12/1-day-left-the-most-awesome-powershell-one-liner-in-the-history-of-powershell-one-liners/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 15:40:00 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[VI Toolkit]]></category>
		<category><![CDATA[VI3]]></category>
		<category><![CDATA[VM]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VMware Powershell]]></category>
		<category><![CDATA[esx 3.5]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[mystery]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2008/12/18/1-day-left-the-most-awesome-powershell-one-liner-in-the-history-of-powershell-one-liners/</guid>
		<description><![CDATA[get-datacenter MyVC &#124; get-vm &#124; Get-NetworkAdapter &#124; Where-Object { $_.Name -like &#34;*1&#34;} &#124; Set-NetworkAdapter -NetworkName NotThatNetwork -Confirm:$false
So, say you provision all of your VM’s on one host, with one set of networks, that is completely removed from the remainder of your infrastructure. You then Cold-Migrate the new VM’s to their new homes. You now need [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><font face="Courier New">get-datacenter MyVC | get-vm | Get-NetworkAdapter | Where-Object { $_.Name -like &quot;*1&quot;} | Set-NetworkAdapter -NetworkName NotThatNetwork -Confirm:$false</font></p>
<p>So, say you provision all of your VM’s on one host, with one set of networks, that is completely removed from the remainder of your infrastructure. You then Cold-Migrate the new VM’s to their new homes. You now need to chance the network names to match. What you say? You have a dozen, a hundred of them to change? The above PowerShell one-liner will take care of all of that for you.</p>
<p>Questions? Comments? Leave em in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2008/12/1-day-left-the-most-awesome-powershell-one-liner-in-the-history-of-powershell-one-liners/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ESXi 3.5 Update 3 API&#8217;s Unlocked By Accident</title>
		<link>http://professionalvmware.com/2008/12/esxi-35-update-3-apis-unlocked-by-accident/</link>
		<comments>http://professionalvmware.com/2008/12/esxi-35-update-3-apis-unlocked-by-accident/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 00:50:05 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[vm/etc]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2008/12/16/esxi-35-update-3-apis-unlocked-by-accident/</guid>
		<description><![CDATA[Found out from VM/Etc and a few other sources today, that the recent opening of the ESXi 3.5 Update 3 API’s was an accident, and they’re going to be locked down again soon. That sucks.
]]></description>
			<content:encoded><![CDATA[<p></p><p>Found out from <a href="http://vmetc.com/2008/12/15/vmware-free-esxi-35-update-3-rcli-apis-opened-unintentionally/">VM/Etc</a> and a few other sources today, that the recent opening of the ESXi 3.5 Update 3 API’s was an accident, and <a href="http://vmetc.com/2008/12/15/vmware-free-esxi-35-update-3-rcli-apis-opened-unintentionally/">they’re going to be locked down again soon</a>. That sucks.</p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2008/12/esxi-35-update-3-apis-unlocked-by-accident/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>3 Days&#8230; 3 Ways To Setup a vSwitch</title>
		<link>http://professionalvmware.com/2008/12/3-days-3-ways-to-setup-a-vswitch/</link>
		<comments>http://professionalvmware.com/2008/12/3-days-3-ways-to-setup-a-vswitch/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 15:07:00 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[VI3]]></category>
		<category><![CDATA[VM]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[esx 3.5]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[mystery]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[rcli]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2008/12/16/3-days-3-ways-to-setup-a-vswitch/</guid>
		<description><![CDATA[What happens in 3 days? You know, don’t you? Well, I’m sure you do. That said, here are 3 ways to configure a vSwitch. (Yes there are more ways than this, but alas… one has to stick with the theme.). 
Using the Virtual Infrastructure Client:
 

 
 
 
&#160; 
Using The VI Toolkit (PowerShell)
Before:
 
PowerShell:
PS [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>What happens in 3 days? You know, don’t you? Well, I’m sure you do. That said, here are 3 ways to configure a vSwitch. (Yes there are more ways than this, but alas… one has to stick with the theme.). </p>
<h3>Using the Virtual Infrastructure Client:</h3>
<p><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-0852.png"><img title="2008-12-13_0852" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="125" alt="2008-12-13_0852" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-0852-thumb.png" width="244" border="0" /></a> </p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-0853.png"><img title="2008-12-13_0853" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="180" alt="2008-12-13_0853" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-0853-thumb.png" width="244" border="0" /></a></p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-08531.png"><img title="2008-12-13_08531" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="180" alt="2008-12-13_08531" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-08531-thumb.png" width="244" border="0" /></a> </p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-08532.png"><img title="2008-12-13_08532" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="180" alt="2008-12-13_08532" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-08532-thumb.png" width="244" border="0" /></a> </p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-0854.png"><img title="2008-12-13_0854" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="180" alt="2008-12-13_0854" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-0854-thumb.png" width="244" border="0" /></a> </p>
<p>&#160;<a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-08541.png"><img title="2008-12-13_08541" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="58" alt="2008-12-13_08541" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-08541-thumb.png" width="244" border="0" /></a> </p>
<h3>Using The VI Toolkit (PowerShell)</h3>
<p>Before:</p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-0858.png"><img title="2008-12-13_0858" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="223" alt="2008-12-13_0858" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-0858-thumb.png" width="244" border="0" /></a> </p>
<p>PowerShell:</p>
<p>PS C:\&gt; get-vmhost 192.168.15.253 | New-VirtualSwitch -Name Example2 -Numports 128 </p>
<p>Name&#160;&#160;&#160;&#160;&#160;&#160; Num Ports&#160; Num Ports&#160; Mtu&#160;&#160; Key   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Available    <br />&#8212;-&#160;&#160;&#160;&#160;&#160;&#160; &#8212;&#8212;&#8212;&#160; &#8212;&#8212;&#8212;- &#8212;&#160;&#160; &#8212;    <br />Example2&#160;&#160; 128&#160;&#160;&#160;&#160;&#160;&#160;&#160; 127&#160;&#160;&#160;&#160;&#160;&#160;&#160; 1500&#160; key-vim.host.VirtualSwitch-&#8230; </p>
<p>After:</p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-0901.png"><img title="2008-12-13_0901" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="232" alt="2008-12-13_0901" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-0901-thumb.png" width="244" border="0" /></a> </p>
<h3>Using the Remote CLI:</h3>
<p>Before:</p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-08581.png"><img title="2008-12-13_0858" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="223" alt="2008-12-13_0858" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-0858-thumb1.png" width="244" border="0" /></a> </p>
<p>Rcli:</p>
<p>C:\Program Files\VMware\VMware VI Remote CLI\bin&gt;perl esxcfg-vswitch.pl &#8211;vihost 192.168.15.253 &#8211;server dc01.nerv.local &#8211;add Example3</p>
<p>Enter username: cody.bunch</p>
<p>After:</p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-0906.png"><img title="2008-12-13_0906" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="237" alt="2008-12-13_0906" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081213-0906-thumb.png" width="244" border="0" /></a> </p>
<p>Tell me about some other ways you do this in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2008/12/3-days-3-ways-to-setup-a-vswitch/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>More PowerShell Goodness</title>
		<link>http://professionalvmware.com/2008/12/more-powershell-goodness/</link>
		<comments>http://professionalvmware.com/2008/12/more-powershell-goodness/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 20:57:00 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[VI Toolkit]]></category>
		<category><![CDATA[VI3]]></category>
		<category><![CDATA[VM]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2008/12/15/more-powershell-goodness/</guid>
		<description><![CDATA[One of the greatest things about working with/on VMware is the attention they pay to the community that has built up around their products. The community itself becomes a great resource for feedback to the company and for support to new users. Their PowerShell community is no exception to this. Here is a post on [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>One of the greatest things about working with/on VMware is the attention they pay to the community that has built up around their products. The community itself becomes a great resource for feedback to the company and for support to new users. Their PowerShell community is no exception to this. Here is a post on their <a href="http://blogs.vmware.com/vipowershell/2008/12/more-highlights-from-the-vi-toolkit-community.html">PowerShell</a> blog highlighting their commitment to the community, as well as pointing out several good tips/tricks.</p>
<blockquote><p>Templates can be quite big and pose a challenge to storage management, so it&#8217;s nice to be able to move them around. Moving templates across datastores is something the VI Toolkit doesn&#8217;t do out of the box, but not to worry, Niket shows how you can move templates across datastores by accessing the VI API. </p>
<p>&#160;</p>
<p>Even though the VI Toolkit doesn&#8217;t have a cmdlet for it, Hal shows that it&#8217;s pretty easy to reboot or shut down an ESX host with PowerShell. </p>
<p>If you need to add an unregistered VM to ESX or VC, Luc shows how you can register a VM based on its VMX file. One of these days we&#8217;ll be adding an Add-VM cmdlet that will make this really easy, but this is a workable solution in the meantime. </p>
<p>&#160;</p>
<p>With the Toolkit it&#8217;s really easy to get a listing of all disks associated with a VM, however it doesn&#8217;t help you identify what disk it is within the VM itself. This week, a couple of solutions have been proposed, one from adavidm and one from Hugo Peeters. Both these scripts rely on a combination of some of the advanced data available through VI API and also getting information out of a Windows VM via WMI</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2008/12/more-powershell-goodness/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VMware VIX &#8211; Changing IP&#8217;s of a Guest VM</title>
		<link>http://professionalvmware.com/2008/12/vmware-vix-changing-ips-of-a-guest-vm/</link>
		<comments>http://professionalvmware.com/2008/12/vmware-vix-changing-ips-of-a-guest-vm/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 18:21:00 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[VIX]]></category>
		<category><![CDATA[VM]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[esx 3.5]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2008/12/12/vmware-vix-changing-ips-of-a-guest-vm/</guid>
		<description><![CDATA[As a demonstration of the power of VIX, I’ve chosen to show you how to change IP addresses of a Windows VM. You may want to buckle up for this.
First, grab the VIX API installable from VMware’s site. In this case we’ll be using the Windows version (because that is the VM I happen to [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>As a demonstration of the power of VIX, I’ve chosen to show you how to change IP addresses of a Windows VM. You may want to buckle up for this.</p>
<p>First, grab the <a href="http://www.vmware.com/support/developer/vix-api/">VIX API installable</a> from VMware’s site. In this case we’ll be using the Windows version (because that is the VM I happen to be writing this post from). The install is quick and puts all the files into “%PROGRAMFILES%\VMware\VMware VIX”.</p>
<p>Lets get our command prompt open:<br />
<a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081211-2236.png"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="2008-12-11_2236" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081211-2236-thumb.png" border="0" alt="2008-12-11_2236" width="244" height="176" /></a></p>
<p>Cool, now lets check the IP of our Windows VM:</p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081211-2313.png"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="2008-12-11_2313" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081211-2313-thumb.png" border="0" alt="2008-12-11_2313" width="244" height="184" /></a></p>
<p>Now, lets change it:</p>
<p>C:\Program Files\VMware\VMware VIX&gt;vmrun -T esx -h <a href="https://esx.example.com">https://esx.example.com</a>/sdk -u nerv\cody.bunch -p apassword -gu Administrator -gp anotherpassword  runProgramInGuest &#8220;[sanstorage1] test/test.vmx&#8221; c:\windows\system32\netsh int ip set address &#8220;Local Area Connection&#8221; static 192.168.15.25 255.255.255.0 192.168.15.1</p>
<p>(That is all one line, the blog wrapped it)</p>
<p>Now for the lovely error!</p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2008/12/20081212-1214.png"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="2008-12-12_1214" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081212-1214-thumb.png" border="0" alt="2008-12-12_1214" width="244" height="55" /></a></p>
<p>Not rightly sure on that one. I’ve opened an SR for it. We’ll see how it goes.</p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2008/12/vmware-vix-changing-ips-of-a-guest-vm/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>VMware VIX &#8211; More API&#8217;s</title>
		<link>http://professionalvmware.com/2008/12/vmware-vix-more-apis/</link>
		<comments>http://professionalvmware.com/2008/12/vmware-vix-more-apis/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 14:24:00 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[VI3]]></category>
		<category><![CDATA[VIX]]></category>
		<category><![CDATA[VM]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Virtual Infrastructure]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[esx 3.5]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2008/12/12/vmware-vix-more-apis/</guid>
		<description><![CDATA[So this will need further investigation on my part. On the surface it looks really cool: 
“The VIX API allows development of scripts and programs to automate operations in guest virtual machines.”
Read that again. Now process. Automate operations IN the guest VM. Go here for the release notes.
]]></description>
			<content:encoded><![CDATA[<p></p><p>So <a href="http://www.vmware.com/support/developer/vix-api/">this</a> will need further investigation on my part. On the surface it looks really cool: </p>
<p>“The VIX API allows development of scripts and programs to automate operations in guest virtual machines.”</p>
<p>Read that again. Now process. Automate operations IN the guest VM. <a href="http://www.vmware.com/support/developer/vix-api/VIX-1.6.2-ReleaseNotes.html">Go here for the release notes.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2008/12/vmware-vix-more-apis/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>ESXi 3 Update 3, Now With a Side of Awesome</title>
		<link>http://professionalvmware.com/2008/12/esxi-3-update-3-now-with-a-side-of-awesome/</link>
		<comments>http://professionalvmware.com/2008/12/esxi-3-update-3-now-with-a-side-of-awesome/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 19:52:00 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[rcli]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2008/12/11/esxi-3-update-3-now-with-a-side-of-awesome/</guid>
		<description><![CDATA[This has been reported by vm/etc and vinternals, but I think it deserves quite a bit more attention. Take a moment to read the posts. The free version of ESXi Update 3 now supports read/write FULL remote admin via the RCLI, and the other api’s. Meaning, that VMware took and made it just that much [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This has been reported by <a href="http://vmetc.com/2008/12/10/esxi-update-3-enables-full-remote-administration-via-rcli/">vm/etc</a> and <a href="http://www.vinternals.com/2008/12/esxi-3-update-3-free-version-unshackled.html">vinternals</a>, but I think it deserves quite a bit more attention. Take a moment to read the posts. The free version of ESXi Update 3 now supports read/write FULL remote admin via the RCLI, and the other api’s. Meaning, that VMware took and made it just that much cooler.&#160; Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2008/12/esxi-3-update-3-now-with-a-side-of-awesome/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
