<?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>Professional VMware &#187; automation</title>
	<atom:link href="http://professionalvmware.com/category/automation/feed/" rel="self" type="application/rss+xml" />
	<link>http://professionalvmware.com</link>
	<description>How Many Turtles Can You Fit On A Rock?</description>
	<lastBuildDate>Thu, 02 Feb 2012 16:49:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>vCenter Orchestrator (vCO) Happenings</title>
		<link>http://professionalvmware.com/2011/11/vcenter-orchestrator-vco-happenings/</link>
		<comments>http://professionalvmware.com/2011/11/vcenter-orchestrator-vco-happenings/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 22:57:34 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[automation]]></category>
		<category><![CDATA[orchestrator]]></category>
		<category><![CDATA[vCO]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2011/11/vcenter-orchestrator-vco-happenings/</guid>
		<description><![CDATA[While I’ve been head down in the final edits for the vCO book (Pre-Order here), a few things happened in the vCO community. vCO Happenings vCO Training! &#8211; vcoteam.info Unattended vCO vApp deployment &#8211; vcoteam.info (manual deployment here) Getting started with vCO &#8211; PhilipSellers.com, a good getting started piece. vCO Training Videos &#8211; vmware.com More [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>While I’ve been head down in the final edits for the vCO book (<a href="http://www.amazon.com/gp/product/0321799917/ref=as_li_ss_il?ie=UTF8&amp;tag=tri01-20&amp;linkCode=as2&amp;camp=217145&amp;creative=399373&amp;creativeASIN=0321799917">Pre-Order here</a>), a few things happened in the vCO community.</p>
<h3>vCO Happenings</h3>
<ul>
<li><a href="http://www.vcoteam.info/newsflash/get-trained-on-vcenter-orchestrator-10-classes-planned-in-emea.html">vCO Training!</a> &#8211; vcoteam.info</li>
<li><a href="http://www.vcoteam.info/learn-vco/unnattended-deployment-of-vcenter-orchestrator-appliance.html">Unattended vCO vApp deployment</a> &#8211; vcoteam.info (manual deployment <a href="http://professionalvmware.com/2011/10/orchestrator-install-the-vco-vapp/">here</a>)</li>
<li><a href="http://tech.philipsellers.com/2011/11/10/getting-started-with-vcenter-orchestrator/">Getting started with vCO</a> &#8211; PhilipSellers.com, a good getting started piece. </li>
<li><a href="http://blogs.vmware.com/orchestrator/2011/11/vcenter-orchestrator-videos.html">vCO Training Videos</a> &#8211; vmware.com</li>
</ul>
<h3>More vCO Resources</h3>
<p>As always, check out my <a href="http://professionalvmware.com/vcenter-orchestrator/">vCO Resources</a> page for all manner of resources from deploying the vCO vApp to plug-in info and helpful workflows.</p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2011/11/vcenter-orchestrator-vco-happenings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Orchestrator &#8211; Install the vCO vApp</title>
		<link>http://professionalvmware.com/2011/10/orchestrator-install-the-vco-vapp/</link>
		<comments>http://professionalvmware.com/2011/10/orchestrator-install-the-vco-vapp/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 18:55:39 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[automation]]></category>
		<category><![CDATA[orchestrator]]></category>
		<category><![CDATA[vApp]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2011/10/orchestrator-install-the-vco-vapp/</guid>
		<description><![CDATA[In case you missed the announcement, the barrier to entry for vCenter Orchestrator was just lowered significantly with VMware’s release of the vCO 4.2 vApp. Here, we’ll talk about installing it. Installing the vCO vApp Assumptions Basically, I’m assuming that you have an edition of vSphere that is licensed for vCenter and have downloaded both [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>In case you missed the announcement, the barrier to entry for vCenter Orchestrator was just lowered significantly with VMware’s release of the vCO 4.2 vApp. Here, we’ll talk about installing it.</p>
<h2>Installing the vCO vApp</h2>
<h3>Assumptions</h3>
<p>Basically, I’m assuming that you have an edition of vSphere that is licensed for vCenter and have downloaded both the OVF and VMDK files from the VMware download page:</p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2011/10/image3.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/10/image_thumb3.png" width="512" height="137"></a></p>
<h3>Installation</h3>
<p>Once you have the bits, do the following:</p>
<ol>
<li>Fire up the vSphere client, login.</li>
<li>File &gt; Deploy OVF Template…</li>
<li>Aim the wizard where you put the files:<br /><a href="http://professionalvmware.com/wp-content/uploads/2011/10/image4.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/10/image_thumb4.png" width="436" height="132"></a></li>
<li>Accept the EULA</li>
<li>Give it a Name &amp; Location</li>
<li>Pick your host/cluster</li>
<li>Storage</li>
<li>Disk (it’s all greyed out)</li>
<li>Properties (This is where you set your static IPs):<br /><a href="http://professionalvmware.com/wp-content/uploads/2011/10/image5.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/10/image_thumb5.png" width="442" height="305"></a></li>
<li>Done!</li>
</ol>
<h3>Configuring</h3>
<p>Even though most of the vApp comes configured out of the box, there are still some additional steps you need to do once the VM has been deployed:</p>
<ol>
<li>Select the VM in the client, locate the IP:<br /><a href="http://professionalvmware.com/wp-content/uploads/2011/10/image6.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/10/image_thumb6.png" width="318" height="340"></a></li>
<li>Point your web browser at that IP:<br /><a href="http://professionalvmware.com/wp-content/uploads/2011/10/image7.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/10/image_thumb7.png" width="438" height="384"></a></li>
<li>Now, pick “Appliance Configuration”. You will be prompted to change the default password:<br /><a href="http://professionalvmware.com/wp-content/uploads/2011/10/image8.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/10/image_thumb8.png" width="358" height="190"></a></li>
<li>On the next page, log in as root, and you’ll be presented with the following:<br /><a href="http://professionalvmware.com/wp-content/uploads/2011/10/image9.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/10/image_thumb9.png" width="314" height="350"></a></li>
<li>You will need to do the same password change for the vCO configuration page. This time log in with the default of vmware / vmware</li>
</ol>
<h3>Logging in</h3>
<ol>
<li>Start on the default page for the vCO Appliance:<br /><a href="http://professionalvmware.com/wp-content/uploads/2011/10/image10.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/10/image_thumb10.png" width="374" height="169"></a></li>
<li>Start Orchestrator Client (The client is in Java, and will launch the Java Web Start bits):<br /><a href="http://professionalvmware.com/wp-content/uploads/2011/10/image11.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/10/image_thumb11.png" width="374" height="298"></a></li>
<li>Log in with vcoadmin/vcoadmin</li>
<li>Accept the SSL cert.</li>
<li>Done!</li>
</ol>
<h2>Summary</h2>
<p>Long blog post is long. To put it in perspective however, it took me 8 minutes from start to operations not including the download. For more info on Orchestrator, check out my past posts <a href="http://professionalvmware.com/vcenter-orchestrator/">here</a>. You should also pre-order the <a href="http://www.amazon.com/gp/product/0321799917/ref=as_li_ss_tl?ie=UTF8&amp;tag=tri01-20&amp;linkCode=as2&amp;camp=217145&amp;creative=399373&amp;creativeASIN=0321799917">vCO Book here</a>. If you have any questions or comments, feel free to drop a line.</p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2011/10/orchestrator-install-the-vco-vapp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using PowerCLI, Onyx and Orchestrator</title>
		<link>http://professionalvmware.com/2011/09/using-powercli-onyx-and-orchestrator/</link>
		<comments>http://professionalvmware.com/2011/09/using-powercli-onyx-and-orchestrator/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 15:53:00 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[automation]]></category>
		<category><![CDATA[orchestrator]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[vCO]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2011/09/using-powercli-onyx-and-orchestrator/</guid>
		<description><![CDATA[Yes! You can! I’m not talking about using vCO to call PowerCLI scripts. As well, that’s been covered before. What I’m talking about is using PowerCLI against VMware Onyx to get vCO JavaScript (Jeorg Lew’s post on it here). First, get Onyx. I’ll wait… Have it? Excellent. Now fire it up &#38; change the output [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Yes! You can! I’m not talking about using <a href="http://www.vmwareadmins.com/index.php/articles/87-running-powercli-from-vorchestrator.html">vCO to call PowerCLI scripts</a>. As well, that’s been covered before. What I’m talking about is using PowerCLI against VMware Onyx to get vCO JavaScript (Jeorg Lew’s post on it <a href="http://www.vcoportal.de/2011/03/vmware-onyx/">here</a>).</p>
<p>First, get <a href="http://vmware.com/go/onyx">Onyx</a>. I’ll wait… Have it? Excellent. Now fire it up &amp; change the output mode to vCO JavaScript:</p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2011/09/image2.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://professionalvmware.com/wp-content/uploads/2011/09/image_thumb1.png" alt="image" width="237" height="88" border="0" /></a></p>
<p>Next, open a new connection and select PowerCLI as the client:</p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2011/09/image3.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://professionalvmware.com/wp-content/uploads/2011/09/image_thumb2.png" alt="image" width="266" height="314" border="0" /></a></p>
<p>Once connected, run some of your PowerCLI commands. The example below is from running <a href="http://professionalvmware.com/2009/10/powercli-script-of-the-week-set-keydelay-ps1/">“Set-KeyDelay.ps1”</a> script from a while ago. Output from Onyx below:</p>
<p><span style="font-family: 'Courier New';">// &#8212;&#8212;- ReconfigVM_Task &#8212;&#8212;-</span></p>
<p><span style="font-family: 'Courier New';">var spec = new VcVirtualMachineConfigSpec();<br />
spec.extraConfig = System.getModule(&#8220;com.vmware.onyx&#8221;).array(VcOptionValue, 1);<br />
spec.extraConfig[0] = new VcOptionValue();<br />
spec.extraConfig[0].key = &#8220;keyboard.typematicMinDelay&#8221;;<br />
spec.extraConfig[0].value = 2000000;</span></p>
<p><span style="font-family: 'Courier New';">managedObject.reconfigVM_Task(spec);  // VirtualMachine</span></p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2011/09/image4.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://professionalvmware.com/wp-content/uploads/2011/09/image_thumb3.png" alt="image" width="490" height="198" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2011/09/using-powercli-onyx-and-orchestrator/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>More Orchestrator Resources</title>
		<link>http://professionalvmware.com/2011/09/more-orchestrator-resources/</link>
		<comments>http://professionalvmware.com/2011/09/more-orchestrator-resources/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 15:21:56 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[automation]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[orchestrator]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2011/09/more-orchestrator-resources/</guid>
		<description><![CDATA[It’s that Cody guy again, and well he’s late to the announcement party again… Busy is as busy does, but that said, in cleaning out my feed reader I found the following Gem: Check it out here. Note the little bit at the bottom: That’s right… vCO Plug-In docs on your e-reader of choice.]]></description>
			<content:encoded><![CDATA[<p></p><p>It’s that Cody guy again, and well he’s late to the announcement party again… Busy is as busy does, but that said, in cleaning out my feed reader I found the following Gem:</p>
<p><a href="http://pubs.vmware.com/orchestrator-plugins/index.jsp"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/09/image.png" width="463" height="300"></a></p>
<p>Check it out <a href="http://pubs.vmware.com/orchestrator-plugins/index.jsp">here</a>. Note the little bit at the bottom:</p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2011/09/image1.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/09/image_thumb.png" width="452" height="84"></a></p>
<p>That’s right… vCO Plug-In docs on your e-reader of choice.</p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2011/09/more-orchestrator-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vCenter Orchestrator &#8211; New Plug-ins for Awesome!</title>
		<link>http://professionalvmware.com/2011/09/vcenter-orchestrator-new-plug-ins-for-awesome/</link>
		<comments>http://professionalvmware.com/2011/09/vcenter-orchestrator-new-plug-ins-for-awesome/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 14:06:26 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[automation]]></category>
		<category><![CDATA[orchestrator]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2011/09/vcenter-orchestrator-new-plug-ins-for-awesome/</guid>
		<description><![CDATA[There has been a lot going on in the vCO space while I’ve been head down in the book. No excuse to not post about it however. This post is all about the plug-ins: VMware posted here about the vCenter 5.x plug-in: As promised in a previous post, the vCenter Server 5.0 plug-in adds over [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>There has been a lot going on in the vCO space while I’ve been head down in the book. No excuse to not post about it however. This post is all about the plug-ins:</p>
<p>VMware posted <a href="http://blogs.vmware.com/orchestrator/2011/09/its-almost-all-about-plug-ins-in-2011.html">here</a> about the vCenter 5.x plug-in:</p>
<blockquote><p>As promised in a previous post, the vCenter Server 5.0 plug-in adds over 50 out-of-the-box workflows to extend capabilities around networking and storage operations, and to incorporate new features like Storage DRS into fully-automated, end-to-end cloud provisioning scenarios.&nbsp; As previous versions, the plug-in provides 100% coverage of the 5.0 vSphere API.&nbsp; With this new plug-in, organizations can now automate a broader number of use cases, such as dynamic scaling-up and scaling-down of vSphere resources, while taking full advantage of the new vCenter Server 5.0 capabilities.</p>
</blockquote>
<p>More info &amp; release notes <a href="http://www.vmware.com/support/orchestrator/doc/snmp-plugin-10-release-notes.html">here</a>.</p>
<p>They’ve also released the SNMP plug-in:</p>
<blockquote><p>With the SNMP plug-in, you&#8217;ll be able to define policies that automatically trigger specific workflows when SNMP traps are received by vCO. For instance, an administrator could configure a workflow that, upon detecting that a vCenter datacenter is nearing full capacity, would reclaim unused resources or provision additional compute and storage resources.&nbsp; Of course, the SNMP plug-in is able to process events beyond vCenter Server, so the triggers for workflows can come from virtually any device or system that supports SNMP.</p>
</blockquote>
<p>More into &amp; release notes <a href="http://www.vmware.com/support/orchestrator/doc/vcenter-server-plugin-50-release-notes.html">here</a>.</p>
<p>Also, don’t forget that there is a plug-in site on vmware.com that can be found <a href="https://www.vmware.com/support/pubs/vco_plugins_pubs.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2011/09/vcenter-orchestrator-new-plug-ins-for-awesome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerCLI 101 &#8211; VMworld Follow-Up</title>
		<link>http://professionalvmware.com/2011/09/powercli-101-vmworld-follow-up/</link>
		<comments>http://professionalvmware.com/2011/09/powercli-101-vmworld-follow-up/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 16:12:00 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[automation]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[VMworld]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2011/09/powercli-101-vmworld-follow-up/</guid>
		<description><![CDATA[For those that couldn’t make it to the live show, be heartened to know that what we did was a live version of this BrownBag. If that’s not enough… brace yourself for some really awesome stuff, right here: The Slides They’re not much to look at because well, it was a demo heavy session. That [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>For those that couldn’t make it to the live show, be heartened to know that what we did was a live version of <a href="http://professionalvmware.com/2011/05/brownbag-powercli-101-video-online/">this BrownBag</a>.</p>
<p>If that’s not enough… brace yourself for some really awesome stuff, right here:</p>
<h3>The Slides</h3>
<p>They’re not much to look at because well, it was a demo heavy session. That said, here you go:</p>
<div style="width: 425px" id="__ss_9112161"><strong style="margin: 12px 0px 4px; display: block"><a title="VMworld 2011 - PowerCLI 101" href="http://www.slideshare.net/ProfessionalVMware/vmworld-2011-powercli-101">VMworld 2011 &#8211; PowerCLI 101</a></strong><object id="__sse9112161" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=vmworld2011-110902122252-phpapp01&amp;stripped_title=vmworld-2011-powercli-101&amp;userName=ProfessionalVMware" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed name="__sse9112161" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=vmworld2011-110902122252-phpapp01&amp;stripped_title=vmworld-2011-powercli-101&amp;userName=ProfessionalVMware" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding-bottom: 12px; padding-left: 0px; padding-right: 0px; padding-top: 5px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/ProfessionalVMware">ProfessionalVMware</a>.</div>
</div>
<h3>The Demos</h3>
<p>Demo the first:</p>
<p><iframe height="300" src="http://player.vimeo.com/video/28516219?title=0&amp;byline=0&amp;portrait=0" frameborder="0" width="400"></iframe>
<p><a href="http://vimeo.com/28516219">VMworld 2011 &#8211; PowerCLI 101 Demo1</a> from <a href="http://vimeo.com/provmware">ProfessionalVMware</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>Demo the second:</p>
<p><iframe height="300" src="http://player.vimeo.com/video/28516282?title=0&amp;byline=0&amp;portrait=0" frameborder="0" width="400"></iframe>
<p><a href="http://vimeo.com/28516282">VMworld 2011 &#8211; PowerCLI 101 Demo2</a> from <a href="http://vimeo.com/provmware">ProfessionalVMware</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>Demo the third:</p>
<p><iframe height="300" src="http://player.vimeo.com/video/28516329?title=0&amp;byline=0&amp;portrait=0" frameborder="0" width="400"></iframe>
<p><a href="http://vimeo.com/28516329">VMworld 2011 &#8211; PowerCLI 101 Demo3</a> from <a href="http://vimeo.com/provmware">ProfessionalVMware</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<h3>Summary</h3>
<p>For the full effect you will have to wait till the VMworld bits are published, and even then, will have to have attended the show. However, the above should get you a pretty good start. If you have any questions or comments, drop a line in the comments. Also, twitter <a href="http://twitter.com/cody_bunch">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2011/09/powercli-101-vmworld-follow-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vCenter Orchestrator &#8211; Add NFS Datastore</title>
		<link>http://professionalvmware.com/2011/08/vcenter-orchestrator-add-nfs-datastore/</link>
		<comments>http://professionalvmware.com/2011/08/vcenter-orchestrator-add-nfs-datastore/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 19:46:00 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[automation]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[orchestrator]]></category>
		<category><![CDATA[vCO]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2011/08/vcenter-orchestrator-add-nfs-datastore/</guid>
		<description><![CDATA[Was surprised this wasn’t here by default, but alas, out of the box vCO does not ship with a workflow to manage an NFS datastore. Thanks to the VMware communities for a bit of scripting, I was able to put one together. First we’ll break out the components, then show you how it runs. Finally [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Was surprised this wasn’t here by default, but alas, out of the box vCO does not ship with a workflow to manage an NFS datastore.</p>
<p>Thanks to the VMware communities for a bit of scripting, I was able to put one together. First we’ll break out the components, then show you how it runs. Finally you’ll be able to pull it down.</p>
<h3>Inputs:</h3>
<p>So first we need to tell vCO where to find the NFS datastore as well as what host we are adding it to:<br /><a href="http://professionalvmware.com/wp-content/uploads/2011/08/image5.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/08/image_thumb5.png" width="479" height="109"></a></p>
<p>If you can’t read the above, no worries, I can’t either, so I’ve also got this handy table:<br /> <br />
<table border="0" cellspacing="0" cellpadding="2" width="527">
<tbody>
<tr>
<td valign="top" width="133">Name</td>
<td valign="top" width="133">Type</td>
<td valign="top" width="259">Description</td>
</tr>
<tr>
<td valign="top" width="133">Host</td>
<td valign="top" width="133">VC:HostSystem</td>
<td valign="top" width="259">Host to connect datastore to</td>
</tr>
<tr>
<td valign="top" width="133">DatastoreName</td>
<td valign="top" width="133">string</td>
<td valign="top" width="259">Name for Datastore</td>
</tr>
<tr>
<td valign="top" width="133">remoteHost</td>
<td valign="top" width="133">string</td>
<td valign="top" width="259">Hostname or IP for NFS server</td>
</tr>
<tr>
<td valign="top" width="133">remotePath</td>
<td valign="top" width="133">string</td>
<td valign="top" width="259">Path to Exports</td>
</tr>
</tbody>
</table>
<h3>Schema:</h3>
<p>Now that we have our inputs, let’s build out the actual flow-charty bits for the workflow:<br /><a href="http://professionalvmware.com/wp-content/uploads/2011/08/image6.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/08/image_thumb6.png" width="192" height="203"></a></p>
<p>Yeah, pretty much that simple. Start, scripting block, stop.</p>
<h3>Scripting!</h3>
<p>Now for the awesomesauce that makes this work:</p>
<p><font size="2" face="Courier New">var datastore_mgr = Host.configManager.datastoreSystem;<br />&nbsp;<br />var new_spec = new VcHostNasVolumeSpec();<br />new_spec.accessMode=VcHostMountMode._readWrite;<br />new_spec.localPath=DatastoreName;<br />new_spec.remoteHost=remoteHost;<br />new_spec.remotePath=remotePath;<br />new_spec.type=&#8221;nfs&#8221;;</font></p>
<p><font size="2" face="Courier New">try {<br />&nbsp;&nbsp;&nbsp; var newDatastore=datastore_mgr.createNasDatastore(new_spec);<br />}</font></p>
<p><font size="2" face="Courier New">catch (ex) {<br />&nbsp;&nbsp;&nbsp; System.log ( ex + &#8221; creating datastore &#8221; + remoteHost + &#8220;:&#8221; + remotePath + &#8221; on &#8221; + Host.name + &#8221; as datastore &#8221; + DatastoreName );<br />}</font></p>
<p>Note: Parts of this script were borrowed from the VMware communities <a href="http://communities.vmware.com/message/1548314?tstart=0">here</a>. Also found this <a href="http://communities.vmware.com/message/1548314?tstart=0">here</a>.</p>
<h3>Running:</h3>
<p><a href="http://professionalvmware.com/wp-content/uploads/2011/08/image7.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/08/image_thumb7.png" width="474" height="132"></a></p>
<h3>Results:</h3>
<p><a href="http://professionalvmware.com/wp-content/uploads/2011/08/image8.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/08/image_thumb8.png" width="356" height="101"></a></p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2011/08/image9.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/08/image_thumb9.png" width="353" height="78"></a></p>
<h3>Summary</h3>
<p>So, the workflow itself is kinda useful for a single host, it becomes more powerful when you embed it within another workflow to do say all hosts in a cluster. However, that’s an activity for the reader.</p>
<h3>Download</h3>
<p>The workflow can be downloaded from <a href="http://professionalvmware.com/workflows/Add NFS Datastore.workflow">here</a>!</p>
<h3>More Info</h3>
<p>We’ve talked about vCO extensively in the past… you can find some additional info <a href="http://professionalvmware.com/?s=orchestrator">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2011/08/vcenter-orchestrator-add-nfs-datastore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automation 101 &#8211; VMware Tools with Orchestrator</title>
		<link>http://professionalvmware.com/2011/07/automation-101-vmware-tools-with-orchestrator/</link>
		<comments>http://professionalvmware.com/2011/07/automation-101-vmware-tools-with-orchestrator/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 17:21:46 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[automation]]></category>
		<category><![CDATA[orchestrator]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[vCO]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2011/07/automation-101-vmware-tools-with-orchestrator/</guid>
		<description><![CDATA[We’ll skip the reason you need tools installed. We’ll also skip a bit on the other ways to do this in PowerCLI. Rather, we’ll bring you a way to do this in Orchestrator. Note: If you’re not using vCO, you should be. Why? I covered that here. Additionally, there are some excellent vCO resources here. [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>We’ll skip the reason you need tools installed. We’ll also skip a bit on the other ways to do <a href="http://get-admin.com/blog/scripting/powershell-scripting/powercli-update-vmware-tools-without-a-reboot/">this in PowerCLI</a>. Rather, we’ll bring you a way to do this in Orchestrator.</p>
<blockquote><h4>Note:</h4>
<p>If you’re not using vCO, you should be. Why? I covered that <a href="http://professionalvmware.com/2011/03/vsphere-automation-101-use-vcenter-orchestrator/">here</a>. Additionally, there are some excellent vCO resources <a href="http://professionalvmware.com/page/2/?s=orchestrator">here</a>.</p>
</blockquote>
<h3>VMware Tools Workflows</h3>
<p>vCO ships with four workflows for managing VMware tools:</p>
<ul>
<li>Mount tools installer
<li>Unmount tools installer
<li>Upgrade VMware tools
<li>Upgrade VMware tools at next reboot</li>
</ul>
<p>All of these are found in the vCenter library of workflows that rolls with the vCenter plug-in. Specifically they’re found under “Library &gt; vCenter &gt; Virtual machine management &gt; VMware Tools”</p>
<h4>Mount/Unmount tools installer</h4>
<p>These two workflows take a single VM as input and can be used when provisioning a new VM. In the case of Unmount, they are also useful in ensuring a VM does not have the tools installer mounted before a VMotion. The real power with these two comes in your ability to use them as a part of a larger workflow however.</p>
<p>The mount and unmount workflows both have identical schema and an identical amount of code in their scripting blocks. Let’s take a look at each:</p>
<h5>Schema</h5>
<p><a href="http://professionalvmware.com/wp-content/uploads/2011/07/image3.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/07/image_thumb3.png" width="244" height="194"></a></p>
<h5>Code</h5>
<p><font face="Courier New">vm.mountToolsInstaller();</font></p>
<p><font face="Courier New">vm.unmountToolsInstaller();</font></p>
<h5>A bigger workflow</h5>
<p>Well, I said the power in this was when you wanted to do more than a handful of VMs right, so here’s the bigger workflow promised:</p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2011/07/image4.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/07/image_thumb4.png" width="522" height="233"></a></p>
<p>Lots of little cross-wise lines, etc. Working around the workflow:</p>
<ul>
<li>Get a list of everything
<li>Make sure we have VMs left to parse
<li>Set the active VM
<li>Is it powered on?
<ul>
<li>If not, increase the count, start from step 2
<li>If yes, should we mount or unmount the tools?
<ul>
<li>If yes, mount em, continue
<li>If no, unmount the tools and continue</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>Confused? Well, I’ll spare the additional code as you can likely figure it out, and have uploaded the completed workflow <a href="http://professionalvmware.com/workflows/Unmount All The Things.workflow">here</a>.</p>
<h4>Upgrade Tools (on next reboot)</h4>
<p>The next two in our list are the upgrade tools workflows which more or less function like their PowerCLI counterparts mentioned above. The first has a really really simple schema, so we’ll skip it. The more interesting one is “on next reboot”:</p>
<p><a href="http://professionalvmware.com/wp-content/uploads/2011/07/image5.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/07/image_thumb5.png" width="513" height="316"></a></p>
<p>Of this, the more curious part is what’s going on behind the “Upgrade Tools” bit:</p>
<p><font face="Courier New">if (vm.summary.guest.toolsVersionStatus != &#8220;guestToolsNeedUpgrade&#8221;) {<br />&nbsp;&nbsp;&nbsp; System.log(&#8220;Tools do not require upgrade for vm: &#8221; + vm.name);<br />} <br />else {<br />&nbsp;&nbsp;&nbsp; System.log(&#8220;Upgrading tools for vm: &#8221; + vm.name);<br />&nbsp;&nbsp;&nbsp; task = System.getModule(&#8220;com.vmware.library.vc.vm.tools&#8221;).upgradeToolsAtNextReboot(vm);<br />} </font></p>
<p>Do I need an upgrade? OMG Yes I do, send a call to the vCenter API to upgrade the tools at next reboot. Or so. This too could be worked into a larger workflow like we did before. That said I’ll leave it as an exercise for the end user this time.</p>
<h3>Summary</h3>
<p>Is vCO awesome? You bet! This time around we mounted and unmounted your VMware tools, and set the tools to upgrade at the next VM reboot, you know, in case you don’t have a maintenance window.</p>
<p>As always, if you have any questions drop a line in the comments or hit me up on twitter <a href="http://twitter.com/cody_bunch">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2011/07/automation-101-vmware-tools-with-orchestrator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automation 101 &#8211; Orchestrator &amp; AD, Revisited</title>
		<link>http://professionalvmware.com/2011/07/automation-101-orchestrator-ad-revisited/</link>
		<comments>http://professionalvmware.com/2011/07/automation-101-orchestrator-ad-revisited/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 16:36:00 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[automation]]></category>
		<category><![CDATA[orchestrator]]></category>
		<category><![CDATA[vCO]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2011/07/automation-101-orchestrator-ad-revisited/</guid>
		<description><![CDATA[As mentioned here, I have been playing around with the “nuke from orbit” bits in vCO for both Virtual Machines &#38; their AD objects. One of the snags I hit was the fact that one of these things was not like the other. That is, the VC:VirtualMachine bits that the vCenter plug-in uses could not [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://professionalvmware.com/wp-content/uploads/2011/07/image.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" align="left" src="http://professionalvmware.com/wp-content/uploads/2011/07/image_thumb.png" width="145" height="140"></a>As mentioned <a href="http://professionalvmware.com/2011/06/vcenter-orchestrator-active-directory-like-a-boss/">here</a>, I have been playing around with the “nuke from orbit” bits in vCO for both Virtual Machines &amp; their AD objects. One of the snags I hit was the fact that one of these things was not like the other. That is, the VC:VirtualMachine bits that the vCenter plug-in uses could not be passed directly to the AD:ComputerAD that the Active Directory plug-in uses.</p>
<h3>Translation from VC:VirtualMachine to AD:ComputerAD</h3>
<p>So to go from one to the other we need to use the getComputer method from the ActiveDirectory scripting class (from the plug-in) and call it using the name of the VM we’re working with:</p>
<p><font face="Courier New">computer = ActiveDirectory.getComputer(VM.name);<br />System.log (computer);</font></p>
<h4>Wait, what?</h4>
<p>Yeah, trying to explain that in a way that was non-programmer speak can get be <em>interesting</em>. Basically, we’ve got a foreign and domestic car and need to have a way for the mechanic to be able to work on both. So what we did was give him a set of tools and manuals to make the conversion. I think…</p>
<h3>Why is this important?</h3>
<p>For the AD use case it’s pretty important that you be able to target the right object if you are going to be deleting it from AD. If you are beginning with a VM, you’ll need to know how to find that VM in different systems. On a grander scale, being able to talk about the same thing between several systems is critical.</p>
<p>Picture credit to this <a href="http://www.flickr.com/photos/vipez/">guy.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2011/07/automation-101-orchestrator-ad-revisited/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>vCenter Orchestrator &#8211; Active Directory Like A Boss</title>
		<link>http://professionalvmware.com/2011/06/vcenter-orchestrator-active-directory-like-a-boss/</link>
		<comments>http://professionalvmware.com/2011/06/vcenter-orchestrator-active-directory-like-a-boss/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 12:48:00 +0000</pubDate>
		<dc:creator>bunchc</dc:creator>
				<category><![CDATA[automation]]></category>
		<category><![CDATA[orchestrator]]></category>
		<category><![CDATA[vCO]]></category>

		<guid isPermaLink="false">http://professionalvmware.com/2011/06/vcenter-orchestrator-active-directory-like-a-boss/</guid>
		<description><![CDATA[This week has me finishing up Chapter 10 or so of the upcoming vCO Book (Amazon pre-order link here). Chapter 10 is the “How to cleanse a VM with fire” or so, and one of the varied bits of clean-up you have to do after deleting a VM is to pop that sucker out of [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This week has me finishing up Chapter 10 or so of the upcoming vCO Book (Amazon pre-order link <a href="http://www.amazon.com/gp/product/0321799917/ref=as_li_ss_tl?ie=UTF8&amp;tag=tri01-20&amp;linkCode=as2&amp;camp=217145&amp;creative=399373&amp;creativeASIN=0321799917">here</a>). Chapter 10 is the “How to cleanse a VM with fire” or so, and one of the varied bits of clean-up you have to do after deleting a VM is to pop that sucker out of your AD. Afterall, you don’t want to have stale machine accounts sitting around do you? That’s almost as bad as the stale pizza left on your table… no good.</p>
<h3>Getting the vCO AD Plug-in</h3>
<p>Point your favorite browser <a href="http://www.vmware.com/products/vcenter-orchestrator/overview.html">here</a>, and select “plug-ins”:<br /><a href="http://professionalvmware.com/wp-content/uploads/2011/06/image15.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/06/image_thumb15.png" width="407" height="296"></a></p>
<h3>Installing the vCO AD Plug-in</h3>
<p>After you’ve logged in and pulled the 11MB worth of plugin down, you’ll want to log into your vCO Configuration interface and go to the plug-in’s area to upload it:<br /><a href="http://professionalvmware.com/wp-content/uploads/2011/06/image16.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/06/image_thumb16.png" width="567" height="145"></a></p>
<p>Those with a keen eye will notice I’ve already got it installed. You’ll need to restart the vCO server service to complete the installation.</p>
<h3>Configuring vCO AD Plugin</h3>
<p>Thankfully the homelab is small enough that the “Copy from LDAP” bits works pretty well. Your mileage will vary:<a href="http://professionalvmware.com/wp-content/uploads/2011/06/image17.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/06/image_thumb17.png" width="551" height="383"></a></p>
<h3>Workflows in the AD Plugin</h3>
<p>Now, take a gander at some of the new things exposed in your vCO client:<a href="http://professionalvmware.com/wp-content/uploads/2011/06/image18.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/06/image_thumb18.png" width="545" height="448"></a></p>
<p>There are a few more than that also.</p>
]]></content:encoded>
			<wfw:commentRss>http://professionalvmware.com/2011/06/vcenter-orchestrator-active-directory-like-a-boss/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

