<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>vSential - virtualization in the real world</title>
	
	<link>http://vsential.com</link>
	<description>vSential is a blog dedicated to evangelizing the wonderful world of virtualization with a focus on VMware.</description>
	<lastBuildDate>Fri, 07 Jun 2013 14:00:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/vSential" /><feedburner:info uri="vsential" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>29.627737</geo:lat><geo:long>-95.624445</geo:long><creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license><feedburner:emailServiceId>vSential</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>VMworld 2013 US/EMEA – VCM4875: Getting Started with vCenter Orchestrator</title>
		<link>http://feedproxy.google.com/~r/vSential/~3/cToeyTWjHik/</link>
		<comments>http://vsential.com/2013/06/vmworld-2013-usemea-vcm4875-started-vcenter-orchestrator/#comments</comments>
		<pubDate>Fri, 07 Jun 2013 14:00:08 +0000</pubDate>
		<dc:creator>James Bowling</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Orchestrator]]></category>
		<category><![CDATA[vCO]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VMworld]]></category>

		<guid isPermaLink="false">http://vsential.com/?p=995</guid>
		<description><![CDATA[I am very excited to announce that I had a session accepted for presentation at both VMworld US and EMEA this year!  I will be presenting with my good friend Thomas Corfmat (@tcorfmat), Senior Product Manager at VMware.  This session will take you through the steps for deploying/configuring vCO, along with some good day-to-day use [...]<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2013/04/vmworld-2013-session-voting/"     class="crp_title">VMworld 2013 Session Voting Open</a></li><li><a href="http://vsential.com/2012/07/vmworld-2012-session-ops-cim1274/"     class="crp_title">VMworld 2012 Session (OPS-CIM1274)</a></li><li><a href="http://vsential.com/2012/05/vmworld-2012-session-voting/"     class="crp_title">VMworld 2012 Session Voting</a></li><li><a href="http://vsential.com/2012/03/vcenter-orchestrator-operation-automate-part-five/"     class="crp_title">vCenter Orchestrator: Operation Automate &#8211; Part Five</a></li><li><a href="http://vsential.com/2011/11/tool-uberalign-nick-weaver/"     class="crp_title">Tool: UBERAlign by Nick Weaver</a></li></ul></div><p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
]]></description>
				<content:encoded><![CDATA[<p>I am very excited to announce that I had a session accepted for presentation at both VMworld US and EMEA this year!  I will be presenting with my good friend Thomas Corfmat (<a href="http://twitter.com/tcorfmat">@tcorfmat</a>), Senior Product Manager at VMware.  This session will take you through the steps for deploying/configuring vCO, along with some good day-to-day use cases.  Here is the abstract:</p>
<div class="ltt-contentbox blue"><span class="icon accept"></span>VMware&#8217;s push for the Software-Defined Datacenter brings some interesting challenges to the desk of the VMware Architects, Engineers, and Administrators. In order to drive innovation we need to be able to automate certain aspects of our jobs within the virtual infrastructure. VMware vCenter Orchestrator is a tool that can do this. A daunting task at first but with this session you will see that it is very simple to get started with some basic tasks. In this technical session, we&#8217;ll go through installation workflow creation/modification, and day-to-day use cases.</div>
<p>I am honored to have this opportunity to present at such a great conference!  I hope to bring some awesome content for everyone to show that within the Software-Defined Data Center automation/orchestration are key to the success of this shift.  We will also be giving away some goodies too!  So be sure to come join me for this awesome session!  See you there!</p>
<p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2013/04/vmworld-2013-session-voting/"     class="crp_title">VMworld 2013 Session Voting Open</a></li><li><a href="http://vsential.com/2012/07/vmworld-2012-session-ops-cim1274/"     class="crp_title">VMworld 2012 Session (OPS-CIM1274)</a></li><li><a href="http://vsential.com/2012/05/vmworld-2012-session-voting/"     class="crp_title">VMworld 2012 Session Voting</a></li><li><a href="http://vsential.com/2012/03/vcenter-orchestrator-operation-automate-part-five/"     class="crp_title">vCenter Orchestrator: Operation Automate &#8211; Part Five</a></li><li><a href="http://vsential.com/2011/11/tool-uberalign-nick-weaver/"     class="crp_title">Tool: UBERAlign by Nick Weaver</a></li></ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vSential?a=cToeyTWjHik:C8AXU-OU9Jk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/vSential?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=cToeyTWjHik:C8AXU-OU9Jk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/vSential?i=cToeyTWjHik:C8AXU-OU9Jk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=cToeyTWjHik:C8AXU-OU9Jk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/vSential?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=cToeyTWjHik:C8AXU-OU9Jk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/vSential?i=cToeyTWjHik:C8AXU-OU9Jk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=cToeyTWjHik:C8AXU-OU9Jk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/vSential?i=cToeyTWjHik:C8AXU-OU9Jk:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vSential/~4/cToeyTWjHik" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vsential.com/2013/06/vmworld-2013-usemea-vcm4875-started-vcenter-orchestrator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://vsential.com/2013/06/vmworld-2013-usemea-vcm4875-started-vcenter-orchestrator/</feedburner:origLink></item>
		<item>
		<title>Export/Import vCloud Director 5.1 OrgNetworks with PowerCLI</title>
		<link>http://feedproxy.google.com/~r/vSential/~3/LxvxMF6SCVg/</link>
		<comments>http://vsential.com/2013/05/exportimport-vcloud-director-5-1-orgnetworks-powercli/#comments</comments>
		<pubDate>Thu, 30 May 2013 16:00:40 +0000</pubDate>
		<dc:creator>James Bowling</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[vCD]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://vsential.com/?p=985</guid>
		<description><![CDATA[I decided to provide an extension on the last post I did, Creating OrgNetworks in vCloud Director 5.1 with PowerCLI.  I had a need for being able to export OrgNetworks from a vCD 5.1 environment and be able to replicate/rebuild/recreate the OrgNetworks from the exported list.  Due to this need I attempted to create a [...]<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2013/05/create-orgnetworks-vcloud-director-5-1-powercli/"     class="crp_title">Create OrgNetworks in vCloud Director 5.1 with PowerCLI</a></li><li><a href="http://vsential.com/2010/08/scripts-export-vm-name-and-vmdk-size/"     class="crp_title">Scripts: Export VM Name and VMDK Size</a></li><li><a href="http://vsential.com/2011/10/script-track-datastores-ps1/"     class="crp_title">Script:  Track-Datastores.ps1</a></li><li><a href="http://vsential.com/2011/05/script-report-snapshots-ps1/"     class="crp_title">Script: Report-Snapshots.ps1</a></li><li><a href="http://vsential.com/2011/05/script-report-datastores-ps1/"     class="crp_title">Script: Report-Datastores.ps1</a></li></ul></div><p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
]]></description>
				<content:encoded><![CDATA[<p>I decided to provide an extension on the last post I did, <a href="http://vsential.com/2013/05/create-orgnetworks-vcloud-director-5-1-powercli/">Creating OrgNetworks in vCloud Director 5.1 with PowerCLI</a>.  I had a need for being able to export OrgNetworks from a vCD 5.1 environment and be able to replicate/rebuild/recreate the OrgNetworks from the exported list.  Due to this need I attempted to create a PowerCLI script to do this for me.  Here is what I came up with, mind you it isn&#8217;t the sexiest script in the world but it worked for my needs and can be easily adjusted to fit yours.  <span id="more-985"></span></p>
<p>Here is the script for the export:</p>
<div class="codecolorer-container powershell geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:535px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br /></div></td><td><div class="powershell codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #008000;">#</span><br />
<span style="color: #008000;"># Export-OrgNetworks.ps1</span><br />
<span style="color: #008000;"># Created by: James Bowling &lt;james.bowling@vsential.com&gt;</span><br />
<span style="color: #008000;">#</span><br />
<br />
<span style="color: #008000;">&lt;#<br />
.SYNOPSIS<br />
Exports OrgNetworks to a CSV file export<br />
<br />
.DESCRIPTION<br />
Use this script to export all OrgNetworks in a specified VDC to a CSV file.<br />
<br />
.SYNTAX<br />
Export-OrgNetworks.ps1 -s cloud.vsential.lab -v 1001 -f OrgNetworks.csv<br />
<br />
.PARAMETER Server<br />
The vCloud Director server you want to connect to.<br />
<br />
.PARAMETER Vdc<br />
The oVDC you want to export OrgNetworks from.<br />
<br />
.PARAMETER File<br />
The output path and filename for the export to go to.<br />
<br />
.EXAMPLE<br />
Export-OrgNetworks.ps1 -s vcloud.vsential.lab -v 1001 -f OrgNetworks-Exported.csv<br />
This command will export the OrgNetworks of oVDC 1001 into .\OrgNetworks-Exported.csv.<br />
#&gt;</span><br />
<br />
<span style="color: #008000;"># Take in command line arguments for vCD, oVDC, and output file.</span><br />
<span style="color: #0000FF;">param</span><span style="color: #000000;">&#40;</span><br />
<span style="color: #000000;">&#91;</span>parameter<span style="color: #000000;">&#40;</span>Mandatory <span style="color: pink;">=</span> <span style="color: #800080;">$true</span><span style="color: pink;">,</span> HelpMessage<span style="color: pink;">=</span><span style="color: #800000;">&quot;vCD Server&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>alias<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;-server&quot;</span><span style="color: pink;">,</span><span style="color: #800000;">&quot;s&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>ValidateNotNullOrEmpty<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #008080;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #800080;">$CIServer</span><span style="color: pink;">,</span><br />
<span style="color: #000000;">&#91;</span>parameter<span style="color: #000000;">&#40;</span>Mandatory <span style="color: pink;">=</span> <span style="color: #800080;">$true</span><span style="color: pink;">,</span> HelpMessage<span style="color: pink;">=</span><span style="color: #800000;">&quot;OrgVDC&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>alias<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;-vdc&quot;</span><span style="color: pink;">,</span><span style="color: #800000;">&quot;v&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>ValidateNotNullOrEmpty<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #008080;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #800080;">$OrgVdc</span><span style="color: pink;">,</span><br />
<span style="color: #000000;">&#91;</span>parameter<span style="color: #000000;">&#40;</span>Mandatory <span style="color: pink;">=</span> <span style="color: #800080;">$true</span><span style="color: pink;">,</span> HelpMessage<span style="color: pink;">=</span><span style="color: #800000;">&quot;Filename&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>alias<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;-file&quot;</span><span style="color: pink;">,</span><span style="color: #800000;">&quot;f&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>ValidateNotNullOrEmpty<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #008080;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #800080;">$OrgNetFile</span><br />
<span style="color: #000000;">&#41;</span><br />
<br />
<span style="color: #008000;"># Connect to vCloud Director server</span><br />
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Connecting to $CIServer...&quot;</span><br />
Connect<span style="color: pink;">-</span>CIServer <span style="color: #800080;">$CIServer</span> <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Out-Null</span><br />
<br />
<span style="color: #008000;"># Export OrgNetworks to a CSV File</span><br />
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Exporting all OrgNetworks in $OrgVdc to $OrgNetFile&quot;</span><br />
<br />
<span style="color: #800080;">$report</span> <span style="color: pink;">=</span> <span style="color: pink;">@</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />
<br />
<span style="color: #800080;">$report</span> <span style="color: pink;">+=</span> Get<span style="color: pink;">-</span>OrgNetwork <span style="color: pink;">|</span> <span style="color: #0000FF;">Foreach</span> <span style="color: #000000;">&#123;</span><br />
<span style="color: #000080;">$_</span> <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Select</span> Org<span style="color: pink;">,</span>Name<span style="color: pink;">,</span>Description<span style="color: pink;">,</span>NetworkType<span style="color: pink;">,</span>Gateway<span style="color: pink;">,</span>Netmask<span style="color: pink;">,</span>PrimaryDns<span style="color: pink;">,</span>SecondaryDns<span style="color: pink;">,</span>NetworkPool<span style="color: pink;">,</span>StaticIPPool<span style="color: pink;">,</span>ExternalNetwork<span style="color: pink;">,</span>Id<span style="color: pink;">,@</span><span style="color: #000000;">&#123;</span>N<span style="color: pink;">=</span><span style="color: #800000;">&quot;IsShared&quot;</span>;E<span style="color: pink;">=</span><span style="color: #000000;">&#123;</span><span style="color: #000000;">&#40;</span><span style="color: #000080;">$_</span>.extensiondata.isshared<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#125;</span><br />
<br />
<span style="color: #800080;">$report</span> <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Export-Csv</span> <span style="color: #008080; font-style: italic;">-NoTypeInformation</span> <span style="color: #008080; font-style: italic;">-Path</span> $<span style="color: #000000;">&#40;</span><span style="color: #800080;">$OrgNetFile</span><span style="color: #000000;">&#41;</span><br />
<br />
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Export complete to $OrgNetFile&quot;</span><br />
<br />
<span style="color: #008000;"># Disconnect from vCloud Director server</span><br />
Disconnect<span style="color: pink;">-</span>CIServer <span style="color: #800080;">$CIServer</span> <span style="color: #008080; font-style: italic;">-Confirm</span>:$false</div></td></tr></tbody></table></div>
<p>Pretty straight forward deal here.  You run it like so:</p>
<p><strong>.\Export-OrgNetworks.ps1 -s vcloud.vsential.lab -v 1001 -f OrgNetworks.csv</strong></p>
<p>For an explanation of the parameters just look in the script or run get-help Export-OrgNetworks.ps1.  Now that we have the wonderful CSV with our exported data, I needed to be able to parse and recreate these networks from the CSV.  You need to understand that the Edge Gateway devices and all other required information was pre-built in the vCD environment.  So for those of you who are looking to use this to rebuild your networks from scratch, please build the necessary backing devices as this will only build the OrgNetworks.  Here is what I came up with this, again, not the sexiest script in the world but works well for me:</p>
<div class="codecolorer-container powershell geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:535px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br />142<br />143<br />144<br />145<br />146<br />147<br />148<br />149<br />150<br />151<br />152<br />153<br />154<br />155<br />156<br />157<br />158<br />159<br />160<br />161<br />162<br />163<br />164<br />165<br />166<br />167<br /></div></td><td><div class="powershell codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #008000;">#</span><br />
<span style="color: #008000;"># Rebuild-OrgNetworks.ps1</span><br />
<span style="color: #008000;"># Created by: James Bowling &lt;james.bowling@vsential.com&gt;</span><br />
<span style="color: #008000;">#</span><br />
<br />
<span style="color: #008000;">&lt;#<br />
.SYNOPSIS<br />
Recreates OrgNetworks from a CSV file export<br />
<br />
.DESCRIPTION<br />
Based on information within a CSV file of exported OrgNetworks, one can recreate<br />
all OrgNetworks from this file.<br />
<br />
.PARAMETER server<br />
The vCloud Director server FQDN.<br />
<br />
.PARAMETER org<br />
The Organization name to create networks in.<br />
<br />
.PARAMETER vdc<br />
The OrgVDC within the Org to create the networks for.<br />
<br />
.PARAMETER file<br />
The input csv file of the exported OrgNetworks.<br />
<br />
.EXAMPLE<br />
Rebuild-OrgNetworks -s vcloud.vsential.lab -o 1002 -v 1001 -f OrgNetworks-Exported.csv<br />
This command will rebuild the OrgNetworks in said file in said OrgVdc on said vCD Server.<br />
<br />
.NOTES<br />
TODO: Build checks into the code.<br />
TODO: Add rebuild of services, if any, on routed networks.<br />
#&gt;</span><br />
<br />
<span style="color: #008000;"># Take in command line arguments</span><br />
<span style="color: #0000FF;">param</span><span style="color: #000000;">&#40;</span><br />
<span style="color: #000000;">&#91;</span>parameter<span style="color: #000000;">&#40;</span>Mandatory <span style="color: pink;">=</span> <span style="color: #800080;">$true</span><span style="color: pink;">,</span> HelpMessage<span style="color: pink;">=</span><span style="color: #800000;">&quot;vCD Server&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>alias<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;-server&quot;</span><span style="color: pink;">,</span><span style="color: #800000;">&quot;s&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>ValidateNotNullOrEmpty<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #008080;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #800080;">$CIServer</span><span style="color: pink;">,</span><br />
<span style="color: #000000;">&#91;</span>parameter<span style="color: #000000;">&#40;</span>Mandatory <span style="color: pink;">=</span> <span style="color: #800080;">$true</span><span style="color: pink;">,</span> HelpMessage<span style="color: pink;">=</span><span style="color: #800000;">&quot;Org&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>alias<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;-org&quot;</span><span style="color: pink;">,</span><span style="color: #800000;">&quot;o&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>ValidateNotNullOrEmpty<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #008080;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #800080;">$OrgName</span><span style="color: pink;">,</span><br />
<span style="color: #000000;">&#91;</span>parameter<span style="color: #000000;">&#40;</span>Mandatory <span style="color: pink;">=</span> <span style="color: #800080;">$true</span><span style="color: pink;">,</span> HelpMessage<span style="color: pink;">=</span><span style="color: #800000;">&quot;OrgVDC&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>alias<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;-vdc&quot;</span><span style="color: pink;">,</span><span style="color: #800000;">&quot;v&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>ValidateNotNullOrEmpty<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #008080;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #800080;">$OrgVdc</span><span style="color: pink;">,</span><br />
<span style="color: #000000;">&#91;</span>parameter<span style="color: #000000;">&#40;</span>Mandatory <span style="color: pink;">=</span> <span style="color: #800080;">$true</span><span style="color: pink;">,</span> HelpMessage<span style="color: pink;">=</span><span style="color: #800000;">&quot;Filename&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>alias<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;-file&quot;</span><span style="color: pink;">,</span><span style="color: #800000;">&quot;f&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>ValidateNotNullOrEmpty<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #008080;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #800080;">$OrgNetFile</span><br />
<span style="color: #000000;">&#41;</span><br />
<br />
<span style="color: #0000FF;">function</span> debug <span style="color: #000000;">&#123;</span><br />
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;&quot;</span><br />
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Debug Information:&quot;</span><br />
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Org Network Name: $orgNetName&quot;</span><br />
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Org Name: &quot;</span><span style="color: #800080;">$org</span>.name<br />
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Created Network Name: &quot;</span><span style="color: #800080;">$mynetwork</span>.name<br />
<span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000080;">$_</span>.networktype <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;Routed&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span> <span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Edge Gateway Href: &quot;</span><span style="color: #800080;">$edgegateway</span>.href <span style="color: #000000;">&#125;</span><br />
<span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000080;">$_</span>.networktype <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;Routed|Isolated&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span> <span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;IP Addresses: &quot;</span><span style="color: #800080;">$ippool</span><span style="color: #000000;">&#91;</span><span style="color: #804000;">0</span><span style="color: #000000;">&#93;</span> <span style="color: #800080;">$ippool</span><span style="color: #000000;">&#91;</span><span style="color: #804000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span><br />
<span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000080;">$_</span>.networktype <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;Direct&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span> <span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;External Network Href: &quot;</span><span style="color: #800080;">$externalnetwork</span>.href <span style="color: #000000;">&#125;</span><br />
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;&quot;</span><br />
<span style="color: #000000;">&#125;</span><br />
<br />
<span style="color: #0000FF;">function</span> createrouted <span style="color: #000000;">&#123;</span><br />
<span style="color: #800080;">$orgNetName</span> <span style="color: pink;">=</span> <span style="color: #000080;">$_</span>.name<br />
<span style="color: #800080;">$org</span> <span style="color: pink;">=</span> Get<span style="color: pink;">-</span>OrgVdc <span style="color: #800080;">$OrgName</span> <span style="color: pink;">|</span> Get<span style="color: pink;">-</span>CIView<br />
<span style="color: #800080;">$edgegateway</span> <span style="color: pink;">=</span> Search<span style="color: pink;">-</span>Cloud <span style="color: pink;">-</span>QueryType EdgeGateway <span style="color: pink;">|</span> Get<span style="color: pink;">-</span>CIView <span style="color: pink;">|</span> <span style="color: pink;">?</span><span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.name <span style="color: #FF0000;">-like</span> <span style="color: #800000;">&quot;$OrgName*&quot;</span><span style="color: #000000;">&#125;</span><br />
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Creating Routed OrgNetwork: $orgNetName in $OrgName&quot;</span><br />
<br />
<span style="color: #800080;">$mynetwork</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.orgvdcnetwork<br />
<span style="color: #800080;">$mynetwork</span>.name <span style="color: pink;">=</span> <span style="color: #800080;">$orgNetName</span><br />
<span style="color: #800080;">$mynetwork</span>.edgegateway <span style="color: pink;">=</span> <span style="color: #800080;">$edgegateway</span>.href<br />
<span style="color: #800080;">$mynetwork</span>.isshared <span style="color: pink;">=</span> <span style="color: #000080;">$_</span>.isshared<br />
<br />
<span style="color: #800080;">$mynetwork</span>.configuration <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.networkconfiguration<br />
<span style="color: #800080;">$mynetwork</span>.configuration.fencemode <span style="color: pink;">=</span> <span style="color: #800000;">&quot;natRouted&quot;</span><br />
<br />
<span style="color: #800080;">$mynetwork</span>.configuration.ipscopes <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.ipscopes<br />
<span style="color: #800080;">$scope</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.ipscope<br />
<span style="color: #800080;">$scope</span>.gateway <span style="color: pink;">=</span> <span style="color: #000080;">$_</span>.gateway<br />
<span style="color: #800080;">$scope</span>.netmask <span style="color: pink;">=</span> <span style="color: #000080;">$_</span>.netmask<br />
<span style="color: #800080;">$scope</span>.dns1 <span style="color: pink;">=</span> <span style="color: #000080;">$_</span>.primarydns<br />
<span style="color: #800080;">$scope</span>.dns2 <span style="color: pink;">=</span> <span style="color: #000080;">$_</span>.secondarydns<br />
<br />
<span style="color: #800080;">$scope</span>.ipranges <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.ipranges<br />
<span style="color: #800080;">$scope</span>.ipranges.iprange <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.iprange<br />
<br />
<span style="color: #008000;"># Split StaticIPPools string for separation of start/end addresses</span><br />
<span style="color: #800080;">$ippool</span> <span style="color: pink;">=</span> <span style="color: pink;">@</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #800080;">$ippool</span> <span style="color: pink;">+=</span> <span style="color: pink;">@</span><span style="color: #000000;">&#40;</span><span style="color: #000080;">$_</span>.staticippool.split<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;-&quot;</span><span style="color: #000000;">&#41;</span>.trim<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />
<br />
<span style="color: #800080;">$scope</span>.ipranges.iprange<span style="color: #000000;">&#91;</span><span style="color: #804000;">0</span><span style="color: #000000;">&#93;</span>.startaddress <span style="color: pink;">=</span> <span style="color: #800080;">$ippool</span><span style="color: #000000;">&#91;</span><span style="color: #804000;">0</span><span style="color: #000000;">&#93;</span><br />
<span style="color: #800080;">$scope</span>.ipranges.iprange<span style="color: #000000;">&#91;</span><span style="color: #804000;">0</span><span style="color: #000000;">&#93;</span>.endaddress <span style="color: pink;">=</span> <span style="color: #800080;">$ippool</span><span style="color: #000000;">&#91;</span><span style="color: #804000;">1</span><span style="color: #000000;">&#93;</span><br />
<br />
<span style="color: #800080;">$mynetwork</span>.configuration.ipscopes.ipscope <span style="color: pink;">+=</span> <span style="color: #800080;">$scope</span><br />
<br />
<span style="color: #800080;">$result</span> <span style="color: pink;">=</span> <span style="color: #800080;">$org</span>.CreateNetwork<span style="color: #000000;">&#40;</span><span style="color: #800080;">$mynetwork</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$debug</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;1&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span> debug <span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#125;</span><br />
<br />
<span style="color: #0000FF;">function</span> createdirect <span style="color: #000000;">&#123;</span><br />
<span style="color: #008000;"># Get External Network HRef Value</span><br />
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Retrieving External Network HRef Id...&quot;</span><br />
<span style="color: #800080;">$externalnetworkname</span> <span style="color: pink;">=</span> <span style="color: #000080;">$_</span>.externalnetwork<br />
<span style="color: #800080;">$externalnetwork</span> <span style="color: pink;">=</span> Get<span style="color: pink;">-</span>ExternalNetwork <span style="color: pink;">|</span> Get<span style="color: pink;">-</span>CIView <span style="color: pink;">|</span> <span style="color: pink;">?</span><span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.name <span style="color: #FF0000;">-like</span> <span style="color: #800000;">&quot;$externalnetworkname*&quot;</span><span style="color: #000000;">&#125;</span><br />
<br />
<span style="color: #800080;">$orgNetName</span> <span style="color: pink;">=</span> <span style="color: #000080;">$_</span>.Name<br />
<span style="color: #800080;">$org</span> <span style="color: pink;">=</span> Get<span style="color: pink;">-</span>OrgVdc <span style="color: #800080;">$OrgName</span> <span style="color: pink;">|</span> Get<span style="color: pink;">-</span>CIView<br />
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Creating Direct OrgNetwork: $orgNetName in $OrgName&quot;</span><br />
<br />
<span style="color: #800080;">$mynetwork</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.orgvdcnetwork<br />
<span style="color: #800080;">$mynetwork</span>.name <span style="color: pink;">=</span> <span style="color: #800080;">$OrgNetName</span><br />
<span style="color: #800080;">$mynetwork</span>.isshared <span style="color: pink;">=</span> <span style="color: #000080;">$_</span>.isshared<br />
<br />
<span style="color: #800080;">$mynetwork</span>.configuration <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.networkconfiguration<br />
<span style="color: #800080;">$mynetwork</span>.configuration.fencemode <span style="color: pink;">=</span> <span style="color: #800000;">&quot;bridged&quot;</span><br />
<br />
<span style="color: #800080;">$mynetwork</span>.configuration.parentnetwork <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">New-Object</span> vmware.vimautomation.cloud.views.reference<br />
<span style="color: #800080;">$mynetwork</span>.configuration.parentnetwork.href <span style="color: pink;">=</span> <span style="color: #800080;">$externalnetwork</span>.href<br />
<br />
<span style="color: #800080;">$result</span> <span style="color: pink;">=</span> <span style="color: #800080;">$org</span>.CreateNetwork<span style="color: #000000;">&#40;</span><span style="color: #800080;">$mynetwork</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$debug</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;1&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span> debug <span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#125;</span><br />
<br />
<span style="color: #0000FF;">function</span> createisolated <span style="color: #000000;">&#123;</span><br />
<span style="color: #800080;">$orgNetName</span> <span style="color: pink;">=</span> <span style="color: #000080;">$_</span>.Name<br />
<span style="color: #800080;">$org</span> <span style="color: pink;">=</span> Get<span style="color: pink;">-</span>OrgVdc <span style="color: #800080;">$OrgName</span> <span style="color: pink;">|</span> Get<span style="color: pink;">-</span>CIView<br />
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Creating Isolated OrgNetwork: $orgNetName in $OrgName&quot;</span><br />
<br />
<span style="color: #800080;">$mynetwork</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.orgvdcnetwork<br />
<span style="color: #800080;">$mynetwork</span>.name <span style="color: pink;">=</span> <span style="color: #800080;">$orgNetName</span><br />
<span style="color: #800080;">$mynetwork</span>.isshared <span style="color: pink;">=</span> <span style="color: #000080;">$_</span>.isshared<br />
<br />
<span style="color: #800080;">$mynetwork</span>.configuration <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.networkconfiguration<br />
<span style="color: #800080;">$mynetwork</span>.configuration.fencemode <span style="color: pink;">=</span> <span style="color: #800000;">&quot;isolated&quot;</span><br />
<br />
<span style="color: #800080;">$mynetwork</span>.configuration.ipscopes <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.ipscopes<br />
<span style="color: #800080;">$scope</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.ipscope<br />
<span style="color: #800080;">$scope</span>.gateway <span style="color: pink;">=</span> <span style="color: #000080;">$_</span>.gateway<br />
<span style="color: #800080;">$scope</span>.netmask <span style="color: pink;">=</span> <span style="color: #000080;">$_</span>.netmask<br />
<span style="color: #800080;">$scope</span>.dns1 <span style="color: pink;">=</span> <span style="color: #000080;">$_</span>.primarydns<br />
<span style="color: #800080;">$scope</span>.dns2 <span style="color: pink;">=</span> <span style="color: #000080;">$_</span>.secondarydns<br />
<br />
<span style="color: #800080;">$scope</span>.ipranges <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.ipranges<br />
<span style="color: #800080;">$scope</span>.ipranges.iprange <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.iprange<br />
<br />
<span style="color: #008000;"># Split StaticIPPools string for separation of start/end addresses</span><br />
<span style="color: #800080;">$ippool</span> <span style="color: pink;">=</span> <span style="color: pink;">@</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #800080;">$ippool</span> <span style="color: pink;">+=</span> <span style="color: pink;">@</span><span style="color: #000000;">&#40;</span><span style="color: #000080;">$_</span>.staticippool.split<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;-&quot;</span><span style="color: #000000;">&#41;</span>.trim<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />
<br />
<span style="color: #800080;">$scope</span>.ipranges.iprange<span style="color: #000000;">&#91;</span><span style="color: #804000;">0</span><span style="color: #000000;">&#93;</span>.startaddress <span style="color: pink;">=</span> <span style="color: #800080;">$ippool</span><span style="color: #000000;">&#91;</span><span style="color: #804000;">0</span><span style="color: #000000;">&#93;</span><br />
<span style="color: #800080;">$scope</span>.ipranges.iprange<span style="color: #000000;">&#91;</span><span style="color: #804000;">0</span><span style="color: #000000;">&#93;</span>.endaddress <span style="color: pink;">=</span> <span style="color: #800080;">$ippool</span><span style="color: #000000;">&#91;</span><span style="color: #804000;">1</span><span style="color: #000000;">&#93;</span><br />
<br />
<span style="color: #800080;">$mynetwork</span>.configuration.ipscopes.ipscope <span style="color: pink;">+=</span> <span style="color: #800080;">$scope</span><br />
<br />
<span style="color: #800080;">$result</span> <span style="color: pink;">=</span> <span style="color: #800080;">$org</span>.CreateNetwork<span style="color: #000000;">&#40;</span><span style="color: #800080;">$mynetwork</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$debug</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;1&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span> debug <span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#125;</span><br />
<br />
<span style="color: #008000;"># Set to 1 to enable debug output</span><br />
<span style="color: #800080;">$debug</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;0&quot;</span><br />
<br />
<span style="color: #008000;"># Connect to vCloud Director server</span><br />
Connect<span style="color: pink;">-</span>CIServer <span style="color: #800080;">$CIServer</span> <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Out-Null</span><br />
<br />
<span style="color: #008000;"># Read in OrgNetwork CSV File</span><br />
<span style="color: #800080;">$OrgNetworks</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">Import-CSV</span> <span style="color: #800080;">$OrgNetFile</span><br />
<span style="color: #0000FF;">ForEach</span> <span style="color: #000000;">&#40;</span><span style="color: #000080;">$_</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$OrgNetworks</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><br />
<span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000080;">$_</span>.networktype <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;Routed&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span> createrouted <span style="color: #000000;">&#125;</span><br />
<span style="color: #0000FF;">elseif</span> <span style="color: #000000;">&#40;</span><span style="color: #000080;">$_</span>.networktype <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;Direct&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span> createdirect <span style="color: #000000;">&#125;</span><br />
<span style="color: #0000FF;">elseif</span> <span style="color: #000000;">&#40;</span><span style="color: #000080;">$_</span>.networktype <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;Isolated&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span> createisolated <span style="color: #000000;">&#125;</span><br />
<span style="color: #0000FF;">else</span> <span style="color: #000000;">&#123;</span> <span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Cannot determine network type!&quot;</span> <span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#125;</span><br />
<br />
<span style="color: #008000;"># Disconnect from vCloud Director server</span><br />
Disconnect<span style="color: pink;">-</span>CIServer <span style="color: #800080;">$CIServer</span> <span style="color: #008080; font-style: italic;">-Confirm</span>:$false</div></td></tr></tbody></table></div>
<p>The script can be run as follows: <strong>.\Rebuild-OrgNetworks.ps1 -s vcloud.vsential.lab -o 1002-Org -v 1002-VDC -f OrgNetworks.csv</strong></p>
<p>At a future date I hope to add the ability to recreate any services associated with the networks and possibly the ability to create Edge Gateway devices for you, if needed.  If you have any suggestions, comments, and/or questions then sound off in the comments and I will do my best to help you out.  I hope to see many different iterations of this from the community and if you modify this then please let me know, I would love to see what you did!</p>
<p>And one more thing, like my last post, a lot of the information I used to build this was built on information that <a href="http://twitter.com/jakerobinson">Jake Robinson</a> (<a href="http://geekafterfive.com">GeekAfterFive.com</a>) posted about creating vApp networks in vCD 5.1, so definitely thanks to him for his awesomeness and guidance!  So with that said, I hope that you find this useful and happy scripting!</p>
<p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2013/05/create-orgnetworks-vcloud-director-5-1-powercli/"     class="crp_title">Create OrgNetworks in vCloud Director 5.1 with PowerCLI</a></li><li><a href="http://vsential.com/2010/08/scripts-export-vm-name-and-vmdk-size/"     class="crp_title">Scripts: Export VM Name and VMDK Size</a></li><li><a href="http://vsential.com/2011/10/script-track-datastores-ps1/"     class="crp_title">Script:  Track-Datastores.ps1</a></li><li><a href="http://vsential.com/2011/05/script-report-snapshots-ps1/"     class="crp_title">Script: Report-Snapshots.ps1</a></li><li><a href="http://vsential.com/2011/05/script-report-datastores-ps1/"     class="crp_title">Script: Report-Datastores.ps1</a></li></ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vSential?a=LxvxMF6SCVg:JCIq6U4ObQs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/vSential?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=LxvxMF6SCVg:JCIq6U4ObQs:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/vSential?i=LxvxMF6SCVg:JCIq6U4ObQs:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=LxvxMF6SCVg:JCIq6U4ObQs:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/vSential?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=LxvxMF6SCVg:JCIq6U4ObQs:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/vSential?i=LxvxMF6SCVg:JCIq6U4ObQs:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=LxvxMF6SCVg:JCIq6U4ObQs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/vSential?i=LxvxMF6SCVg:JCIq6U4ObQs:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vSential/~4/LxvxMF6SCVg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vsential.com/2013/05/exportimport-vcloud-director-5-1-orgnetworks-powercli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://vsential.com/2013/05/exportimport-vcloud-director-5-1-orgnetworks-powercli/</feedburner:origLink></item>
		<item>
		<title>Create OrgNetworks in vCloud Director 5.1 with PowerCLI</title>
		<link>http://feedproxy.google.com/~r/vSential/~3/Kgz6SsaVXHU/</link>
		<comments>http://vsential.com/2013/05/create-orgnetworks-vcloud-director-5-1-powercli/#comments</comments>
		<pubDate>Tue, 21 May 2013 19:00:24 +0000</pubDate>
		<dc:creator>James Bowling</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[vCD]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://vsential.com/?p=972</guid>
		<description><![CDATA[So I know I haven&#8217;t posted in a little while anything truly useful&#8230;well, hopefully, that changes with this one.  I was approached by a colleague with a need for creating OrgNetworks with PowerCLI.  Knowing that things changed from earlier versions when you could create new OrgNetworks with New-OrgNetwork in vCD 1.5, I needed to see [...]<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2013/05/exportimport-vcloud-director-5-1-orgnetworks-powercli/"     class="crp_title">Export/Import vCloud Director 5.1 OrgNetworks with PowerCLI</a></li><li><a href="http://vsential.com/2012/09/vcloud-director-samlsso-fail-omg/"     class="crp_title">vCloud Director SAML/SSO FAIL OMG</a></li><li><a href="http://vsential.com/2012/05/renaming-datastore-vco/"     class="crp_title">Renaming a datastore through vCO</a></li><li><a href="http://vsential.com/2012/04/vco-vapp-upgrade-issue/"     class="crp_title">vCO vApp Upgrade Issue</a></li><li><a href="http://vsential.com/2011/07/enabling-localremote-tech-support-mode-in-esxi-4-1/"     class="crp_title">Enabling Local/Remote Tech Support Mode in ESXi 4.1</a></li></ul></div><p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
]]></description>
				<content:encoded><![CDATA[<p>So I know I haven&#8217;t posted in a little while anything truly useful&#8230;well, hopefully, that changes with this one.  I was approached by a colleague with a need for creating OrgNetworks with PowerCLI.  Knowing that things changed from earlier versions when you could create new OrgNetworks with New-OrgNetwork in vCD 1.5, I needed to see how to do it the new way with Cloud Views.  So first, let&#8217;s look at what information we need in order to make this work:</p>
<ul>
<li><ul class="custom bullet-black" ></li>
<li>Org Name</li>
<li>New Org Network Name</li>
<li>OrgVDC</li>
<li>Edge Gateway</li>
<li>IP Information (Gateway, Subnet, DNS, IP Ranges)</ul><span id="more-972"></span></li>
</ul>
<p><span style="line-height: 18px;">Here is the information I used for my test:</span></p>
<ul>
<li><ul class="custom bullet-green" ></li>
<li>Org Name: <em><strong>1001</strong></em></li>
<li><em><strong></strong></em>New Org Network Name:  <em><strong>1001-Test</strong></em></li>
<li>OrgVDC:  <em>(This is generated in the script for me based on OrgName.)</em></li>
<li>Edge Gateway: (<em>This is generated for me via Search-Cloud and based on OrgName.)</em></li>
<li>IP Information:  <em><strong>Gateway &#8211; 192.168.2.1, Netmask: 255.255.255.0, DNS: 192.168.2.1</strong></em></li>
<li><em><strong></strong></em>IP Range Information:  <em><strong>192.168.2.100-192.168.2.200</strong></em></ul></li>
</ul>
<p><span style="line-height: 18px;">There are a couple of things that you need to step through to gather the data and I won&#8217;t go into details of it in this post due to time. There are quite a few good examples to follow out there but nothing specific to creation of natRouted or direct OrgNetworks.  One that I found very useful was <a href="http://twitter.com/jakerobinson">Jake Robinson</a>&#8216;s post regarding vApp Network creation with PowerCLI, <em><a href="http://geekafterfive.com/2012/04/24/deepdive-vcloud-vapp-networks/">Deepdive: vCloud vApp Networks</a>.  </em>This post led me to a good starting point along with a tad more help from him on the <a href="http://communities.vmware.com/community/vmtn/automationtools/powercli/vcdpowercli">VMware vCloud Director PowerCLI VMTN Community Forums</a>.</span></p>
<p>Before this gets too long winded for the time I have, here is the script:</p>
<div class="codecolorer-container powershell geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:535px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br /></div></td><td><div class="powershell codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #008000;">## Set to 1 for debug output</span><br />
<span style="color: #800080;">$debug</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;1&quot;</span><br />
<br />
<span style="color: #800080;">$orgName</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;1001&quot;</span><br />
<span style="color: #800080;">$orgNetName</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;1001-Test&quot;</span><br />
<span style="color: #800080;">$org</span> <span style="color: pink;">=</span> Get<span style="color: pink;">-</span>OrgVdc <span style="color: #800080;">$orgName</span> <span style="color: pink;">|</span> Get<span style="color: pink;">-</span>CIView<br />
<span style="color: #800080;">$edgeGateway</span> <span style="color: pink;">=</span> Search<span style="color: pink;">-</span>Cloud <span style="color: pink;">-</span>QueryType EdgeGateway <span style="color: pink;">|</span> Get<span style="color: pink;">-</span>CIView <span style="color: pink;">|</span> <span style="color: #0000FF;">where</span> <span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.name <span style="color: #FF0000;">-like</span> <span style="color: #800000;">&quot;$orgName*&quot;</span><span style="color: #000000;">&#125;</span><br />
<br />
<span style="color: #800080;">$mynetwork</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.orgvdcnetwork<br />
<span style="color: #800080;">$mynetwork</span>.name <span style="color: pink;">=</span> <span style="color: #800080;">$orgNetName</span><br />
<span style="color: #800080;">$mynetwork</span>.edgegateway <span style="color: pink;">=</span> <span style="color: #800080;">$edgeGateway</span>.id<br />
<span style="color: #800080;">$mynetwork</span>.isshared <span style="color: pink;">=</span> <span style="color: #800000;">&quot;True&quot;</span><br />
<br />
<span style="color: #800080;">$mynetwork</span>.configuration <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.networkconfiguration<br />
<span style="color: #800080;">$mynetwork</span>.configuration.fencemode <span style="color: pink;">=</span> <span style="color: #800000;">&quot;natRouted&quot;</span><br />
<br />
<span style="color: #800080;">$mynetwork</span>.configuration.ipscopes <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.ipscopes<br />
<span style="color: #800080;">$scope</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.ipscope<br />
<span style="color: #800080;">$scope</span>.gateway <span style="color: pink;">=</span> <span style="color: #800000;">&quot;192.168.2.1&quot;</span><br />
<span style="color: #800080;">$scope</span>.netmask <span style="color: pink;">=</span> <span style="color: #800000;">&quot;255.255.255.0&quot;</span><br />
<span style="color: #800080;">$scope</span>.dns1 <span style="color: pink;">=</span> <span style="color: #800000;">&quot;192.168.2.1&quot;</span><br />
<br />
<span style="color: #800080;">$scope</span>.ipranges <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.ipranges<br />
<span style="color: #800080;">$scope</span>.ipranges.iprange <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> vmware.vimautomation.cloud.views.iprange<br />
<span style="color: #800080;">$scope</span>.ipranges.iprange<span style="color: #000000;">&#91;</span><span style="color: #804000;">0</span><span style="color: #000000;">&#93;</span>.startaddress <span style="color: pink;">=</span> <span style="color: #800000;">&quot;192.168.2.100&quot;</span><br />
<span style="color: #800080;">$scope</span>.ipranges.iprange<span style="color: #000000;">&#91;</span><span style="color: #804000;">0</span><span style="color: #000000;">&#93;</span>.endaddress <span style="color: pink;">=</span> <span style="color: #800000;">&quot;192.168.2.200&quot;</span><br />
<br />
<span style="color: #800080;">$mynetwork</span>.configuration.ipscopes.ipscope <span style="color: pink;">+=</span> <span style="color: #800080;">$scope</span><br />
<br />
<span style="color: #800080;">$result</span> <span style="color: pink;">=</span> <span style="color: #800080;">$org</span>.CreateNetwork<span style="color: #000000;">&#40;</span><span style="color: #800080;">$mynetwork</span><span style="color: #000000;">&#41;</span><br />
<br />
<span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$debug</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;1&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><br />
<span style="color: #008080; font-weight: bold;">write-host</span> <span style="color: #800000;">&quot;OrgNetwork Name: &quot;</span><span style="color: #800080;">$mynetwork</span>.name<br />
<span style="color: #008080; font-weight: bold;">write-host</span> <span style="color: #800000;">&quot;OrgNetwork EdgeGateway Id: &quot;</span><span style="color: #800080;">$mynetwork</span>.edgegateway<br />
<span style="color: #008080; font-weight: bold;">write-host</span> <span style="color: #800000;">&quot;OrgNetwork Fence Mode: &quot;</span><span style="color: #800080;">$mynetwork</span>.configuration.fencemode<br />
<span style="color: #008080; font-weight: bold;">write-host</span> <span style="color: #800000;">&quot;OrgNetwork Gateway: &quot;</span><span style="color: #800080;">$scope</span>.gateway<br />
<span style="color: #008080; font-weight: bold;">write-host</span> <span style="color: #800000;">&quot;OrgNetwork Subnet: &quot;</span><span style="color: #800080;">$scope</span>.netmask<br />
<span style="color: #008080; font-weight: bold;">write-host</span> <span style="color: #800000;">&quot;OrgNetwork Dns1: &quot;</span><span style="color: #800080;">$scope</span>.dns1<br />
<span style="color: #008080; font-weight: bold;">write-host</span> <span style="color: #800000;">&quot;OrgNetwork IP Range Start: &quot;</span><span style="color: #800080;">$scope</span>.ipranges.iprange<span style="color: #000000;">&#91;</span><span style="color: #804000;">0</span><span style="color: #000000;">&#93;</span>.startaddress<br />
<span style="color: #008080; font-weight: bold;">write-host</span> <span style="color: #800000;">&quot;OrgNetwork IP Range End: &quot;</span><span style="color: #800080;">$scope</span>.ipranges.iprange<span style="color: #000000;">&#91;</span><span style="color: #804000;">0</span><span style="color: #000000;">&#93;</span>.endaddress<br />
<span style="color: #000000;">&#125;</span></div></td></tr></tbody></table></div>
<p>Anyway, I hope this helps you figure out what you need to do to get OrgNetworks created in vCD 5.1 now.  I didn&#8217;t want to go into too much detail because I have heard from a little birdie that there is going to be a deepdive about OrgNetworks on a certain good blog (<a href="http://www.geekafterfive.com">Geek After Five</a>), so keep your eyes peeled for that.  Also, for a good reference of the Cloud Views since it isn&#8217;t well documented, take a look at the <a href="http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/about.html">vCloud API Schema Reference</a>.  Now back to work for me&#8230;</p>
<p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2013/05/exportimport-vcloud-director-5-1-orgnetworks-powercli/"     class="crp_title">Export/Import vCloud Director 5.1 OrgNetworks with PowerCLI</a></li><li><a href="http://vsential.com/2012/09/vcloud-director-samlsso-fail-omg/"     class="crp_title">vCloud Director SAML/SSO FAIL OMG</a></li><li><a href="http://vsential.com/2012/05/renaming-datastore-vco/"     class="crp_title">Renaming a datastore through vCO</a></li><li><a href="http://vsential.com/2012/04/vco-vapp-upgrade-issue/"     class="crp_title">vCO vApp Upgrade Issue</a></li><li><a href="http://vsential.com/2011/07/enabling-localremote-tech-support-mode-in-esxi-4-1/"     class="crp_title">Enabling Local/Remote Tech Support Mode in ESXi 4.1</a></li></ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vSential?a=Kgz6SsaVXHU:Tp97zm65JMg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/vSential?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=Kgz6SsaVXHU:Tp97zm65JMg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/vSential?i=Kgz6SsaVXHU:Tp97zm65JMg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=Kgz6SsaVXHU:Tp97zm65JMg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/vSential?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=Kgz6SsaVXHU:Tp97zm65JMg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/vSential?i=Kgz6SsaVXHU:Tp97zm65JMg:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=Kgz6SsaVXHU:Tp97zm65JMg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/vSential?i=Kgz6SsaVXHU:Tp97zm65JMg:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vSential/~4/Kgz6SsaVXHU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vsential.com/2013/05/create-orgnetworks-vcloud-director-5-1-powercli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://vsential.com/2013/05/create-orgnetworks-vcloud-director-5-1-powercli/</feedburner:origLink></item>
		<item>
		<title>VMworld 2013 Session Voting Open</title>
		<link>http://feedproxy.google.com/~r/vSential/~3/Yh_dImP2-vE/</link>
		<comments>http://vsential.com/2013/04/vmworld-2013-session-voting/#comments</comments>
		<pubDate>Tue, 23 Apr 2013 21:08:16 +0000</pubDate>
		<dc:creator>James Bowling</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Orchestrator]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[vCO]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VMworld]]></category>

		<guid isPermaLink="false">http://vsential.com/?p=958</guid>
		<description><![CDATA[Ladies and gentlemen, the VMworld 2013 Session Voting has begun!  I have submitted a couple of sessions both by myself and with some fellow colleagues.  You will need a VMworld ID in order to vote. Bilal Hashmi (cloud-buddy.com) and I will be presenting Session ID 4873, vCenter: The Unsung Hero, where we will dive into [...]<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2012/05/vmworld-2012-session-voting/"     class="crp_title">VMworld 2012 Session Voting</a></li><li><a href="http://vsential.com/2013/06/vmworld-2013-usemea-vcm4875-started-vcenter-orchestrator/"     class="crp_title">VMworld 2013 US/EMEA &#8211; VCM4875: Getting Started with&hellip;</a></li><li><a href="http://vsential.com/2012/07/vmworld-2012-session-ops-cim1274/"     class="crp_title">VMworld 2012 Session (OPS-CIM1274)</a></li><li><a href="http://vsential.com/2012/04/vmworld-2012-call-papers-open/"     class="crp_title">VMworld 2012 Call For Papers Open</a></li><li><a href="http://vsential.com/2011/07/pass-vmworld-2011/"     class="crp_title">Need a pass to VMworld 2011?</a></li></ul></div><p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
]]></description>
				<content:encoded><![CDATA[<p>Ladies and gentlemen, the VMworld 2013 Session Voting has begun!  I have submitted a couple of sessions both by myself and with some fellow colleagues.  You will need a VMworld ID in order to vote.</p>
<p><a href="http://vsential.com/go/hashmibilal/">Bilal Hashmi</a> (<a href="http://vsential.com/go/cloud-buddy/">cloud-buddy.com</a>) and I will be presenting <em><strong>Session ID 4873, vCenter: The Unsung Hero</strong></em>, where we will dive into the importance of the availability of vCenter and how it affects the services around it that tie into it.  We will touch on some best practices and other solutions to aid in building a resilient vCenter.</p>
<p>Dan Mitchell (vCO Sr. Product Manager) and I will be presenting <em><strong>Session ID 5703, Supercharging vSphere Web Client with vCenter Orchestrator (vCO)</strong></em>, where we will dive into how to extend the functionality of the vSphere Web Client with the awesome-sauce of vCO.</p>
<p>Lastly, I will also be presenting <em><strong>Session ID 4875, vCenter Orchestrator: A Beginner&#8217;s Guide</strong></em>, where I will embark on the journey of what vCO is and how you can use it to extend your cloud automation and orchestration.  I will be taking the stance of presenting in a manner that will bring light to anyone who is new to vCO!</p>
<p>Here is a screen of the sessions: <a href="http://cdn.vsential.com/wp-content/uploads/2013/04/VMworld2013-Sessions-JB.png"><img class="aligncenter size-large wp-image-961" alt="VMworld 2013 Sessions" src="http://cdn.vsential.com/wp-content/uploads/2013/04/VMworld2013-Sessions-JB-1024x451.png" width="1024" height="451" /></a></p>
<p>If you are interested and want to learn some cool stuff then go vote for the sessions, it would be greatly appreciated!  You can vote by going to <a href="http://vsential.com/go/vmworld-cfp/">VMworld 2013 Public Voting</a> and clicking on the &#8220;Thumbs Up&#8221; icon by the session name.  Be sure to filter by either Session ID or my name to get the above list.  There are quite a few awesome sessions this year and hopefully, with your help, I will bring some of that awesomeness to the table!</p>
<p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2012/05/vmworld-2012-session-voting/"     class="crp_title">VMworld 2012 Session Voting</a></li><li><a href="http://vsential.com/2013/06/vmworld-2013-usemea-vcm4875-started-vcenter-orchestrator/"     class="crp_title">VMworld 2013 US/EMEA &#8211; VCM4875: Getting Started with&hellip;</a></li><li><a href="http://vsential.com/2012/07/vmworld-2012-session-ops-cim1274/"     class="crp_title">VMworld 2012 Session (OPS-CIM1274)</a></li><li><a href="http://vsential.com/2012/04/vmworld-2012-call-papers-open/"     class="crp_title">VMworld 2012 Call For Papers Open</a></li><li><a href="http://vsential.com/2011/07/pass-vmworld-2011/"     class="crp_title">Need a pass to VMworld 2011?</a></li></ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vSential?a=Yh_dImP2-vE:gHmejO0lO4E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/vSential?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=Yh_dImP2-vE:gHmejO0lO4E:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/vSential?i=Yh_dImP2-vE:gHmejO0lO4E:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=Yh_dImP2-vE:gHmejO0lO4E:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/vSential?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=Yh_dImP2-vE:gHmejO0lO4E:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/vSential?i=Yh_dImP2-vE:gHmejO0lO4E:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=Yh_dImP2-vE:gHmejO0lO4E:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/vSential?i=Yh_dImP2-vE:gHmejO0lO4E:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vSential/~4/Yh_dImP2-vE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vsential.com/2013/04/vmworld-2013-session-voting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://vsential.com/2013/04/vmworld-2013-session-voting/</feedburner:origLink></item>
		<item>
		<title>vCenter Certificate Automation Tool 1.0</title>
		<link>http://feedproxy.google.com/~r/vSential/~3/YPaDqTYqUoQ/</link>
		<comments>http://vsential.com/2013/04/vcenter-certificate-automation-tool-1-0/#comments</comments>
		<pubDate>Fri, 05 Apr 2013 14:27:45 +0000</pubDate>
		<dc:creator>James Bowling</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SSO]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[vCO]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://vsential.com/?p=949</guid>
		<description><![CDATA[So for those of us who have experienced the wonderful times of dealing with replacing or updating certificates within our VMware infrastructures, VMware came to the rescue (kind of) and provided a tool for us to use.  This tool has been dubbed vCenter Certificate Automation Tool.  A little excerpt from the release announcement: In order [...]<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2011/11/tool-uberalign-nick-weaver/"     class="crp_title">Tool: UBERAlign by Nick Weaver</a></li><li><a href="http://vsential.com/2012/08/autolab-vmware-fusion/"     class="crp_title">AutoLab on VMware Fusion</a></li><li><a href="http://vsential.com/2012/04/vco-vapp-upgrade-issue/"     class="crp_title">vCO vApp Upgrade Issue</a></li><li><a href="http://vsential.com/2013/06/vmworld-2013-usemea-vcm4875-started-vcenter-orchestrator/"     class="crp_title">VMworld 2013 US/EMEA &#8211; VCM4875: Getting Started with&hellip;</a></li><li><a href="http://vsential.com/2011/07/vmware-clound-infrastructure-launch-live-event-overview/"     class="crp_title">VMware Clound Infrastructure Launch Live Event Overview</a></li></ul></div><p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
]]></description>
				<content:encoded><![CDATA[<p>So for those of us who have experienced the wonderful times of dealing with replacing or updating certificates within our VMware infrastructures, VMware came to the rescue (kind of) and provided a tool for us to use.  This tool has been dubbed <em><strong>vCenter Certificate Automation Tool</strong></em>.  A little excerpt from the release announcement:</p>
<span class="ltt-quote small text-align-left">   Fresh out of development today VMware has a new tool to help everyone with the implementation of custom certificates. The <strong>vCenter Certificate Automation Tool 1.0</strong>, will help customers update certificates needed for running vCenter Server and supporting components. </span>
<p>In order to use the tool, you must have the following:</p>
<ul class="custom bullet-tick" ></p>
<p>Administrative privileges on the server(s) you are running the tool on. Although non-administrator users can download and launch the tool, all operations will fail without the proper permissions.</p>
<ul>
<li>Access to each server that has vSphere components for which the SSL certificate will be updated.</li>
<li>All vCenter Server components which will have their certificates updated have already been installed and are running.</li>
<li>The new certificates already exist and you know the location of the new certificates. For increased security, generate each certificate and private key on the machine where it will be used. The new SSL certificate for each vSphere component must have a unique base DN.</li>
</ul>
<p></ul>
<p>So you don&#8217;t have to go around looking, here is a couple of links to KB articles on how to use the vCenter Certificate Automation Tool:</p>
<ul class="custom bullet-paper-clip" >
<ul>
<li><a href="http://kb.vmware.com/kb/2044696">Generating certificates for use with the VMware SSL Certificate Automation Tool</a></li>
<li><a href="http://kb.vmware.com/kb/2041600">Deploying and Using the SSL Certificate Automation Tool</a></li>
</ul>
<p></ul><br />
Just wanted to share this with the readers&#8230;enjoy!</p>
<p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2011/11/tool-uberalign-nick-weaver/"     class="crp_title">Tool: UBERAlign by Nick Weaver</a></li><li><a href="http://vsential.com/2012/08/autolab-vmware-fusion/"     class="crp_title">AutoLab on VMware Fusion</a></li><li><a href="http://vsential.com/2012/04/vco-vapp-upgrade-issue/"     class="crp_title">vCO vApp Upgrade Issue</a></li><li><a href="http://vsential.com/2013/06/vmworld-2013-usemea-vcm4875-started-vcenter-orchestrator/"     class="crp_title">VMworld 2013 US/EMEA &#8211; VCM4875: Getting Started with&hellip;</a></li><li><a href="http://vsential.com/2011/07/vmware-clound-infrastructure-launch-live-event-overview/"     class="crp_title">VMware Clound Infrastructure Launch Live Event Overview</a></li></ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vSential?a=YPaDqTYqUoQ:ir9c7HoD4ro:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/vSential?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=YPaDqTYqUoQ:ir9c7HoD4ro:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/vSential?i=YPaDqTYqUoQ:ir9c7HoD4ro:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=YPaDqTYqUoQ:ir9c7HoD4ro:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/vSential?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=YPaDqTYqUoQ:ir9c7HoD4ro:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/vSential?i=YPaDqTYqUoQ:ir9c7HoD4ro:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=YPaDqTYqUoQ:ir9c7HoD4ro:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/vSential?i=YPaDqTYqUoQ:ir9c7HoD4ro:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vSential/~4/YPaDqTYqUoQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vsential.com/2013/04/vcenter-certificate-automation-tool-1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://vsential.com/2013/04/vcenter-certificate-automation-tool-1-0/</feedburner:origLink></item>
		<item>
		<title>PowerCLI One-liner: Check for Fast-Provisioning Enabled/Disabled on Org vDC in vCD</title>
		<link>http://feedproxy.google.com/~r/vSential/~3/T0ir1kg3Tr8/</link>
		<comments>http://vsential.com/2013/01/powercli-one-liner-check-fast-provisioning-enableddisabled-vcd/#comments</comments>
		<pubDate>Wed, 02 Jan 2013 19:00:14 +0000</pubDate>
		<dc:creator>James Bowling</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[vCD]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://vsential.com/?p=927</guid>
		<description><![CDATA[Ran across something and needed to be able to check to see what vDC&#8217;s had Fast-Provisioning enabled in my lab.  Here is a quick one-liner to list them and if they are enabled or disabled: 1Get-OrgVdc &#124; Get-CIView &#124; Select Name, UsesFastProvisioning &#124; Sort Name Figured I would throw this up here for fun&#8230; This [...]<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2010/09/rescan-all-hbas-from-powercli/"     class="crp_title">Rescan All HBA&#8217;s from PowerCLI</a></li><li><a href="http://vsential.com/2011/07/enabling-localremote-tech-support-mode-in-esxi-4-1/"     class="crp_title">Enabling Local/Remote Tech Support Mode in ESXi 4.1</a></li><li><a href="http://vsential.com/2013/05/create-orgnetworks-vcloud-director-5-1-powercli/"     class="crp_title">Create OrgNetworks in vCloud Director 5.1 with PowerCLI</a></li><li><a href="http://vsential.com/2011/01/new-look-for-the-new-year/"     class="crp_title">New Look for the New Year</a></li><li><a href="http://vsential.com/2013/05/exportimport-vcloud-director-5-1-orgnetworks-powercli/"     class="crp_title">Export/Import vCloud Director 5.1 OrgNetworks with PowerCLI</a></li></ul></div><p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
]]></description>
				<content:encoded><![CDATA[<p>Ran across something and needed to be able to check to see what vDC&#8217;s had Fast-Provisioning enabled in my lab.  Here is a quick one-liner to list them and if they are enabled or disabled:</p>
<div class="codecolorer-container powershell geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:535px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="powershell codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Get<span style="color: pink;">-</span>OrgVdc <span style="color: pink;">|</span> Get<span style="color: pink;">-</span>CIView <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Select</span> Name<span style="color: pink;">,</span> UsesFastProvisioning <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Sort</span> Name</div></td></tr></tbody></table></div>
<p>Figured I would throw this up here for fun&#8230;</p>
<p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2010/09/rescan-all-hbas-from-powercli/"     class="crp_title">Rescan All HBA&#8217;s from PowerCLI</a></li><li><a href="http://vsential.com/2011/07/enabling-localremote-tech-support-mode-in-esxi-4-1/"     class="crp_title">Enabling Local/Remote Tech Support Mode in ESXi 4.1</a></li><li><a href="http://vsential.com/2013/05/create-orgnetworks-vcloud-director-5-1-powercli/"     class="crp_title">Create OrgNetworks in vCloud Director 5.1 with PowerCLI</a></li><li><a href="http://vsential.com/2011/01/new-look-for-the-new-year/"     class="crp_title">New Look for the New Year</a></li><li><a href="http://vsential.com/2013/05/exportimport-vcloud-director-5-1-orgnetworks-powercli/"     class="crp_title">Export/Import vCloud Director 5.1 OrgNetworks with PowerCLI</a></li></ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vSential?a=T0ir1kg3Tr8:_2XZUQ_8S6o:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/vSential?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=T0ir1kg3Tr8:_2XZUQ_8S6o:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/vSential?i=T0ir1kg3Tr8:_2XZUQ_8S6o:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=T0ir1kg3Tr8:_2XZUQ_8S6o:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/vSential?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=T0ir1kg3Tr8:_2XZUQ_8S6o:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/vSential?i=T0ir1kg3Tr8:_2XZUQ_8S6o:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=T0ir1kg3Tr8:_2XZUQ_8S6o:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/vSential?i=T0ir1kg3Tr8:_2XZUQ_8S6o:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vSential/~4/T0ir1kg3Tr8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vsential.com/2013/01/powercli-one-liner-check-fast-provisioning-enableddisabled-vcd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://vsential.com/2013/01/powercli-one-liner-check-fast-provisioning-enableddisabled-vcd/</feedburner:origLink></item>
		<item>
		<title>Host Disconnects from vCenter in a vCloud Director Environment</title>
		<link>http://feedproxy.google.com/~r/vSential/~3/BaU9-veIbn8/</link>
		<comments>http://vsential.com/2012/12/host-disconnects-vcenter-vcloud-director-environment/#comments</comments>
		<pubDate>Wed, 26 Dec 2012 19:10:17 +0000</pubDate>
		<dc:creator>James Bowling</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[vCD]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://vsential.com/?p=906</guid>
		<description><![CDATA[So I ran into an issue the other day regarding host disconnects within vCenter in a vCD environment.  SSH&#8217;d into the host and noticed right off the bat that vmkernel.log was showing the following error: And in hostd.log I saw this: It is obvious through those errors what the issue is.  Once you come to [...]<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2010/11/adjusting-the-amount-of-hostd-log-files/"     class="crp_title">Adjusting the amount of hostd log files</a></li><li><a href="http://vsential.com/2012/10/remove-vapp-vcd-pending-state/"     class="crp_title">Can&#8217;t Remove vApp in vCD &#8211; Pending State</a></li><li><a href="http://vsential.com/2012/09/vcloud-director-samlsso-fail-omg/"     class="crp_title">vCloud Director SAML/SSO FAIL OMG</a></li><li><a href="http://vsential.com/2011/02/esxi-4-1-patches-applied-vmware-tools-disappear/"     class="crp_title">ESXi 4.1 Patches Applied&#8230;VMware Tools disappear!</a></li><li><a href="http://vsential.com/2011/10/script-track-datastores-ps1/"     class="crp_title">Script:  Track-Datastores.ps1</a></li></ul></div><p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
]]></description>
				<content:encoded><![CDATA[<p>So I ran into an issue the other day regarding host disconnects within vCenter in a vCD environment.  SSH&#8217;d into the host and noticed right off the bat that vmkernel.log was showing the following error:</p>
<div class="ltt-contentbox red"><span class="icon information"></span>WARNING: VisorFSObj: 893: Cannot create file tmp:/current.png5557 for process vmx-mks:Cell Profiler x64 (b9d6aa64-d789-4954-bde9-f2875406c159) because the visorfs inode table is full. 2012-10-05T12:38:49.808Z cpu27:6014573)WARNING: VisorFSObj: 893: Cannot create file /etc/vmware/esx.conf.LOCK for process esxcfg-advcfg because the visorfs inode table is full.</div>
<p>And in hostd.log I saw this:</p>
<p><div class="ltt-contentbox red"><span class="icon information"></span>WARNING: VisorFSObj: 893: Cannot create file /etc/vmware/esx.conf.LOCK for process hostd because the visorfs inode table is full.</div><span id="more-906"></span></p>
<p>It is obvious through those errors what the issue is.  Once you come to that conclusion you will need to do some checking around.  The first thing I did was look in /tmp.  Low and behold my ls -l command showed me an ever scrolling list of current.png[1-9]*.  Thousands upon thousands of these were there.  For those of you not aware of what these are, they are the screencaps you would see in the vCloud Director Portal of your VMs.  The first thing one would think to try is to remove all of these with &#8220;rm -f current.png*&#8221;.  WHOOPS!  That won&#8217;t work in this case because the &#8220;argument list is too long&#8221;.  The way to get around this error is to do one of the following:</p>
<div class="codecolorer-container bash geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:535px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<br />
<span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">seq</span> <span style="color: #000000;">1</span> <span style="color: #000000;">9</span><span style="color: #000000; font-weight: bold;">`</span>;<span style="color: #000000; font-weight: bold;">do</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> current.png<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;">$i</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">*</span>;<span style="color: #000000; font-weight: bold;">done</span></div></td></tr></tbody></table></div>
<p>or</p>
<div class="codecolorer-container bash geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:535px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<br />
<span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> current <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span></div></td></tr></tbody></table></div>
<p>This will remove the current.png files, releasing the inodes.  If you watch the logs (hostd, vmkernel) you will see that everything starts to process again.  After a few minutes it will reconnect to vCenter again.  Enjoy!</p>
<p>&nbsp;</p>
<p>UPDATE: After I did some research on this I found that there is a KB Article regarding this (<a href="http://kb.vmware.com/kb/2031839" target="_blank">KB #2031839</a>).</p>
<p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2010/11/adjusting-the-amount-of-hostd-log-files/"     class="crp_title">Adjusting the amount of hostd log files</a></li><li><a href="http://vsential.com/2012/10/remove-vapp-vcd-pending-state/"     class="crp_title">Can&#8217;t Remove vApp in vCD &#8211; Pending State</a></li><li><a href="http://vsential.com/2012/09/vcloud-director-samlsso-fail-omg/"     class="crp_title">vCloud Director SAML/SSO FAIL OMG</a></li><li><a href="http://vsential.com/2011/02/esxi-4-1-patches-applied-vmware-tools-disappear/"     class="crp_title">ESXi 4.1 Patches Applied&#8230;VMware Tools disappear!</a></li><li><a href="http://vsential.com/2011/10/script-track-datastores-ps1/"     class="crp_title">Script:  Track-Datastores.ps1</a></li></ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vSential?a=BaU9-veIbn8:aUXNB9hg_Ks:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/vSential?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=BaU9-veIbn8:aUXNB9hg_Ks:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/vSential?i=BaU9-veIbn8:aUXNB9hg_Ks:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=BaU9-veIbn8:aUXNB9hg_Ks:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/vSential?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=BaU9-veIbn8:aUXNB9hg_Ks:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/vSential?i=BaU9-veIbn8:aUXNB9hg_Ks:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=BaU9-veIbn8:aUXNB9hg_Ks:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/vSential?i=BaU9-veIbn8:aUXNB9hg_Ks:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vSential/~4/BaU9-veIbn8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vsential.com/2012/12/host-disconnects-vcenter-vcloud-director-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://vsential.com/2012/12/host-disconnects-vcenter-vcloud-director-environment/</feedburner:origLink></item>
		<item>
		<title>Can’t Remove vApp in vCD – Pending State</title>
		<link>http://feedproxy.google.com/~r/vSential/~3/6Qkrkz7JIck/</link>
		<comments>http://vsential.com/2012/10/remove-vapp-vcd-pending-state/#comments</comments>
		<pubDate>Tue, 09 Oct 2012 14:32:43 +0000</pubDate>
		<dc:creator>James Bowling</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[vCD]]></category>
		<category><![CDATA[vCloud Director]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://vsential.com/?p=897</guid>
		<description><![CDATA[So I have run into a few issues where trying to delete a vApp with Partially Powered Off VMs live inside the vApp.  It seems to place the vApp and VM into a Pending state in vCloud Director.  When you attempt to run the delete again it says that you need to stop the VM [...]<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2012/04/vco-vapp-upgrade-issue/"     class="crp_title">vCO vApp Upgrade Issue</a></li><li><a href="http://vsential.com/2012/09/vcloud-director-samlsso-fail-omg/"     class="crp_title">vCloud Director SAML/SSO FAIL OMG</a></li><li><a href="http://vsential.com/2010/10/vapps-to-use-or-not-to-use/"     class="crp_title">vApps: To use or not to use?</a></li><li><a href="http://vsential.com/2010/10/vcenter-4-1-and-sql-express-gardening/"     class="crp_title">vCenter 4.1 and SQL Express Gardening</a></li><li><a href="http://vsential.com/2013/05/create-orgnetworks-vcloud-director-5-1-powercli/"     class="crp_title">Create OrgNetworks in vCloud Director 5.1 with PowerCLI</a></li></ul></div><p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
]]></description>
				<content:encoded><![CDATA[<p>So I have run into a few issues where trying to delete a vApp with Partially Powered Off VMs live inside the vApp.  It seems to place the vApp and VM into a Pending state in vCloud Director.  When you attempt to run the delete again it says that you need to stop the VM first.  In your eyes you thought the VM was stopped but vCD seems to think otherwise.  You check in vCenter and see the VM is powered off so what now?</p>
<div class="ltt-contentbox red"><span class="icon information"></span>DISCLAIMER:  THIS WAS DONE IN A LAB ENVIRONMENT!  DO NOT ATTEMPT THIS IN PRODUCTION WITHOUT THE PROPER PRECAUTIONS!  IF YOU ARE NOT COMFORTABLE WITH DATABASE WORK THEN PLEASE STOP NOW!</div>
<p><span id="more-897"></span>Ok, sorry for yelling but I can&#8217;t stress this enough!  Make sure you have a backup of your vCD database before doing anything related to modifying the database directly.  Here are some, what I consider, best practice tips for doing vCD database work:</p>
<ul>
<li><ul class="custom bullet-tick" >Quiesce all the vCD cells</li>
<li>Shutdown the vCD cells</li>
<li>Backup the vCD database</li>
</ul>
<p></ul></p>
<p>Once you have completed the above steps open your favorite database UI or go straight to the command line.  I will not go into the specifics on how to do this as I just don&#8217;t want to have that on my conscience if you mess something up! <img src='http://cdn2.vsential.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   When you are in the database you will want to find the VM in the vCD VM table.  You can search for it using the UUID from the error in the vCD interface.  You will notice that the row reports that the status is DELETING_CONTENTS.  You will want to change this to have a status of RESOLVED.</p>
<p>Next, we need to find the vApp in the VM_CONTAINER table in the vCD database.  You can follow the same steps as above to find it by using the UUID of the vApp, which you can grab from the error as well.  Once found, you will see that it shows a status of DELETING_CONTENTS as well.  This will need to be modified to RESOLVED.  When you have completed this and committed the changes you need to refresh your view in the vCD interface.  You will see that the status is no longer Pending.  Go into the vApp and you will probably see the VM is Partially Powered Off.  Go ahead and right-click the VM and Power Off.  It should power off clean now.  Go to the vApp and shut the vApp down, this to should complete successfully.  Finally, go ahead and right-click the vApp and delete!</p>
<p>Yay!  If things worked out for you then awesome&#8230;if not, please open a case with VMware regarding your issue.  As stated in the disclaimer, be careful with this and remember that your mileage will vary!  Hope this helps!</p>
<p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2012/04/vco-vapp-upgrade-issue/"     class="crp_title">vCO vApp Upgrade Issue</a></li><li><a href="http://vsential.com/2012/09/vcloud-director-samlsso-fail-omg/"     class="crp_title">vCloud Director SAML/SSO FAIL OMG</a></li><li><a href="http://vsential.com/2010/10/vapps-to-use-or-not-to-use/"     class="crp_title">vApps: To use or not to use?</a></li><li><a href="http://vsential.com/2010/10/vcenter-4-1-and-sql-express-gardening/"     class="crp_title">vCenter 4.1 and SQL Express Gardening</a></li><li><a href="http://vsential.com/2013/05/create-orgnetworks-vcloud-director-5-1-powercli/"     class="crp_title">Create OrgNetworks in vCloud Director 5.1 with PowerCLI</a></li></ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vSential?a=6Qkrkz7JIck:mWU9Ho0_hUQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/vSential?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=6Qkrkz7JIck:mWU9Ho0_hUQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/vSential?i=6Qkrkz7JIck:mWU9Ho0_hUQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=6Qkrkz7JIck:mWU9Ho0_hUQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/vSential?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=6Qkrkz7JIck:mWU9Ho0_hUQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/vSential?i=6Qkrkz7JIck:mWU9Ho0_hUQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=6Qkrkz7JIck:mWU9Ho0_hUQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/vSential?i=6Qkrkz7JIck:mWU9Ho0_hUQ:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vSential/~4/6Qkrkz7JIck" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vsential.com/2012/10/remove-vapp-vcd-pending-state/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://vsential.com/2012/10/remove-vapp-vcd-pending-state/</feedburner:origLink></item>
		<item>
		<title>Multi-Site vCenter Server Appliance Deployment</title>
		<link>http://feedproxy.google.com/~r/vSential/~3/63ujL3JINbU/</link>
		<comments>http://vsential.com/2012/09/multi-site-vcenter-server-appliance-deployment/#comments</comments>
		<pubDate>Fri, 28 Sep 2012 15:00:54 +0000</pubDate>
		<dc:creator>James Bowling</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[5.1]]></category>
		<category><![CDATA[SSO]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[VCSA]]></category>

		<guid isPermaLink="false">http://vsential.com/?p=868</guid>
		<description><![CDATA[When sitting around today thinking about the grand scheme of things for my future state architecture, I was presented with a question from a co-worker about linked-mode. Knowing the short answer was easy, but explaining how it could be done now with SSO without &#8220;linked-mode&#8221; spawned a test in my home lab.  The test is [...]<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2011/02/veeam-saves-the-day/"     class="crp_title">Veeam saves the day!</a></li><li><a href="http://vsential.com/2010/11/1337-vm-h4ck3r/"     class="crp_title">1337 VM H4ck3r</a></li><li><a href="http://vsential.com/2011/07/vsphere-4-5-license-calculator-virtualvcp/"     class="crp_title">vSphere 4 &#038; 5 License Calculator by VirtualVCP</a></li><li><a href="http://vsential.com/2010/08/esx-esxi-connection-ports-diagram/"     class="crp_title">ESX/ESXi Connections and Ports Diagram</a></li><li><a href="http://vsential.com/2010/11/vsphere-memory-counters-de-mystified/"     class="crp_title">vSphere Memory Counters De-Mystified</a></li></ul></div><p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
]]></description>
				<content:encoded><![CDATA[<p>When sitting around today thinking about the grand scheme of things for my future state architecture, I was presented with a question from a co-worker about linked-mode.</p>
<span class="ltt-quote small text-align-left">   Does the new 5.1 stuff allow for linked-mode in the appliance? </span>
<p>Knowing the short answer was easy, but explaining how it could be done now with SSO without &#8220;linked-mode&#8221; spawned a test in my home lab.  The test is to have more than one vCenter Server Appliance (VCSA) attached and manageable through the 5.1 vSphere Web Client.  In short, the answer is yes, it can be done.  Here is how:</p>
<p>You will first need to deploy another VCSA somewhere, in my case it was in my lab where my other VCSA was deployed.  Once the deployment of the OVF is done you will want to login to the VAMI by going to https://:5480.  Your initial login is, of course, root and the password is vmware.</p>
<p><a href="http://cdn.vsential.com/wp-content/uploads/2012/09/msvcsa011.png"><img class="aligncenter size-medium wp-image-876" title="msvcsa01" src="http://cdn3.vsential.com/wp-content/uploads/2012/09/msvcsa011-300x105.png" alt="" width="300" height="105" /></a></p>
<p><span id="more-868"></span>Once logged in you will be presented with the setup wizard.  Accept the wonderful EULA then select custom configuration.</p>
<p><a href="http://cdn1.vsential.com/wp-content/uploads/2012/09/msvcsa021.png"><img class="aligncenter size-medium wp-image-877" title="msvcsa02" src="http://cdn1.vsential.com/wp-content/uploads/2012/09/msvcsa021-300x216.png" alt="" width="300" height="216" /></a></p>
<p><a href="http://cdn3.vsential.com/wp-content/uploads/2012/09/msvcsa03.png"><img class="aligncenter size-medium wp-image-878" title="msvcsa03" src="http://cdn1.vsential.com/wp-content/uploads/2012/09/msvcsa03-300x212.png" alt="" width="300" height="212" /></a></p>
<p>Set your database to either Oracle or embedded based on your design.  When presented with the SSO settings select external and enter the corresponding information as requested.</p>
<p><a href="http://cdn3.vsential.com/wp-content/uploads/2012/09/msvcsa04.png"><img class="aligncenter size-medium wp-image-879" title="msvcsa04" src="http://cdn3.vsential.com/wp-content/uploads/2012/09/msvcsa04-300x213.png" alt="" width="300" height="213" /></a></p>
<p>Make sure that you check the Trust SHA-1 thumbprint or the registration of the VCSA with your other VCSA/VC will fail.</p>
<p><a href="http://cdn.vsential.com/wp-content/uploads/2012/09/msvcsa05.png"><img class="aligncenter size-medium wp-image-880" title="msvcsa05" src="http://cdn1.vsential.com/wp-content/uploads/2012/09/msvcsa05-300x209.png" alt="" width="300" height="209" /></a></p>
<p><a href="http://cdn3.vsential.com/wp-content/uploads/2012/09/msvcsa06.png"><img class="aligncenter size-medium wp-image-881" title="msvcsa06" src="http://cdn.vsential.com/wp-content/uploads/2012/09/msvcsa06-300x136.png" alt="" width="300" height="136" /></a></p>
<p>Reboot the new VCSA, once all of the services start up you will be able to manage this in the vSphere Web Client&#8230;well, at least if you login as root into the webUI.  How do you fix this?  Easy, the same way you adjust permissions within vCenter.  Login to the webUI as root and go to the vCenter Inventory List where you will see all of the vCenter Servers.  Select the one you just added and click on Manage in the main screen&#8230;set permissions for your ESX Admins group or whatever group you may use&#8230;VIOLA!  You now have the ability to manage multi-site vCenter Server Appliances.  AWESOME!</p>
<p><a href="http://cdn1.vsential.com/wp-content/uploads/2012/09/msvcsa07.png"><img class="aligncenter size-medium wp-image-882" title="msvcsa07" src="http://cdn2.vsential.com/wp-content/uploads/2012/09/msvcsa07-300x182.png" alt="" width="300" height="182" /></a></p>
<p>Hopefully this helps you set this up and if you have any questions/comments/concerns/rants then please feel free to post them in the comments!</p>
<p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2011/02/veeam-saves-the-day/"     class="crp_title">Veeam saves the day!</a></li><li><a href="http://vsential.com/2010/11/1337-vm-h4ck3r/"     class="crp_title">1337 VM H4ck3r</a></li><li><a href="http://vsential.com/2011/07/vsphere-4-5-license-calculator-virtualvcp/"     class="crp_title">vSphere 4 &#038; 5 License Calculator by VirtualVCP</a></li><li><a href="http://vsential.com/2010/08/esx-esxi-connection-ports-diagram/"     class="crp_title">ESX/ESXi Connections and Ports Diagram</a></li><li><a href="http://vsential.com/2010/11/vsphere-memory-counters-de-mystified/"     class="crp_title">vSphere Memory Counters De-Mystified</a></li></ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vSential?a=63ujL3JINbU:yXrF24-HIfg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/vSential?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=63ujL3JINbU:yXrF24-HIfg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/vSential?i=63ujL3JINbU:yXrF24-HIfg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=63ujL3JINbU:yXrF24-HIfg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/vSential?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=63ujL3JINbU:yXrF24-HIfg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/vSential?i=63ujL3JINbU:yXrF24-HIfg:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=63ujL3JINbU:yXrF24-HIfg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/vSential?i=63ujL3JINbU:yXrF24-HIfg:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vSential/~4/63ujL3JINbU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vsential.com/2012/09/multi-site-vcenter-server-appliance-deployment/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://vsential.com/2012/09/multi-site-vcenter-server-appliance-deployment/</feedburner:origLink></item>
		<item>
		<title>vCloud Director SAML/SSO FAIL OMG</title>
		<link>http://feedproxy.google.com/~r/vSential/~3/jhZURIyFNLE/</link>
		<comments>http://vsential.com/2012/09/vcloud-director-samlsso-fail-omg/#comments</comments>
		<pubDate>Wed, 19 Sep 2012 14:15:33 +0000</pubDate>
		<dc:creator>James Bowling</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[5.1]]></category>
		<category><![CDATA[vCD]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://vsential.com/?p=858</guid>
		<description><![CDATA[So like many others I deployed vCloud Suite 5.1 into my home lab&#8230;all things were perfect until I decided to play with vCD and SSO.  SSO has had quite a stream of people complaining about it and also those saying how great it is.  As of right now, my personal take on it is that [...]<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2012/08/autolab-vmware-fusion/"     class="crp_title">AutoLab on VMware Fusion</a></li><li><a href="http://vsential.com/2013/05/create-orgnetworks-vcloud-director-5-1-powercli/"     class="crp_title">Create OrgNetworks in vCloud Director 5.1 with PowerCLI</a></li><li><a href="http://vsential.com/2012/10/remove-vapp-vcd-pending-state/"     class="crp_title">Can&#8217;t Remove vApp in vCD &#8211; Pending State</a></li><li><a href="http://vsential.com/2012/04/vco-vapp-upgrade-issue/"     class="crp_title">vCO vApp Upgrade Issue</a></li><li><a href="http://vsential.com/2012/12/host-disconnects-vcenter-vcloud-director-environment/"     class="crp_title">Host Disconnects from vCenter in a vCloud Director&hellip;</a></li></ul></div><p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
]]></description>
				<content:encoded><![CDATA[<div class="ltt-contentbox red"><span class="icon information"></span>Disclaimer: Use at your own risk!  Be smart and contact VMware GSS if this is a production environment!  This was in my lab so your mileage may vary!</div>
<p>So like many others I deployed vCloud Suite 5.1 into my home lab&#8230;all things were perfect until I decided to play with vCD and SSO.  SSO has had quite a stream of people complaining about it and also those saying how great it is.  As of right now, my personal take on it is that I am indifferent.  Anyway, that is not the point of this quick post&#8230;the point is:</p>
<span class="ltt-quote large text-align-left"> <span class="ltt-quotemark">&ldquo;</span>  I BROKE MY VCD LOGINS!!! </span>
<p>&nbsp;</p>
<p>So I was receiving a crazy 500 error after attempting login through the vSphere Web Client to vCD.  For those of you not in the know about how to do this, check out the <a href="http://pubs.vmware.com/vcd-51/topic/com.vmware.ICbase/PDF/vcd_51_admin_guide.pdf">vCloud Director Admin Guide</a> on page 127, &#8220;<em><strong>Configure vCloud Director to use vCenter Single Sign On</strong></em>&#8220;.  Anywho, after attempting the configuration, which mind you is relatively simple, I somehow managed to bork the configuration.  This resulted in a 500 Internal Server Error exclaiming: Incoming SAML message is invalid.  One would think, &#8220;No worries, I will just disable SAML/SSO in the administration portal.&#8221;</p>
<span class="ltt-quote large text-align-left"> <span class="ltt-quotemark">&ldquo;</span>  OMG WTF!!!!  I can&#8217;t get into the portal to make the change! </span>
<p>&nbsp;</p>
<p>After a cry for help on Twitter late at night with nobody to respond, I decided this morning to dig into the Oracle database.  While looking through I see a table called IDENTITY_PROVIDER&#8230;looks like I may have found a place to disable the SAML/SSO authentication method.  VIOLA!  I did find it!  Now to change it&#8230;to do you will want to:</p>
<ol>
<li><span style="line-height: 21px;">Make sure you have a backup of your database.  (I did this in my lab!  Use at your own risk on ANY environment!)</span></li>
<li><span style="line-height: 21px;">Connect to the Oracle DB.</span></li>
<li><span style="line-height: 21px;">Run the following SQL: <strong>UPDATE VCLOUD.IDENTITY_PROVIDER SET IS_ENABLED = 0 WHERE PROVIDER_TYPE = &#8216;SAML&#8217;;</strong></span></li>
<li><span style="line-height: 21px;"><span style="color: #333333;">Attempt to log back into vCD.</span></span></li>
</ol>
<p>If all goes well, you should be back into vCD!  If you go to Administration-&gt;Federation you should see that <strong>Use vSphere Single Sign-On</strong> is no longer checked!  I am not sure that this is the proper method but it worked for me and I have not had any weird issues since making the change.  Hope this helps!</p>
<p>UPDATE:  Thanks to Luke (<a href="http://twitter.com/thephuck">@ThepHuck</a>) for doing this on Microsoft SQL.  Here is the script:</p>
<div class="codecolorer-container sql geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:535px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">UPDATE</span> <span style="color: #66cc66;">&#91;</span>vcloud<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span>dbo<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span>identity_provider<span style="color: #66cc66;">&#93;</span><br />
<span style="color: #993333; font-weight: bold;">SET</span> <span style="color: #66cc66;">&#91;</span>is_enabled<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0'</span><br />
<span style="color: #993333; font-weight: bold;">WHERE</span> provider_type <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'SAML'</span><br />
<span style="color: #993333; font-weight: bold;">GO</span></div></td></tr></tbody></table></div>
<p>UPDATE:  Thanks to Mathew Lodge (<a href="http://twitter.com/mathewlodge">@mathewlodge</a>) you can just add login.jsp to the URL to gain local login access like so:  http://vcloud.vsential.lab/cloud/login.jsp</p>
<p>This article was originally posted on <a href="http://vsential.com">vSential - virtualization in the real world</a>. Visit the site for more information on virtualization and related technologies.</p>
<div class="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://vsential.com/2012/08/autolab-vmware-fusion/"     class="crp_title">AutoLab on VMware Fusion</a></li><li><a href="http://vsential.com/2013/05/create-orgnetworks-vcloud-director-5-1-powercli/"     class="crp_title">Create OrgNetworks in vCloud Director 5.1 with PowerCLI</a></li><li><a href="http://vsential.com/2012/10/remove-vapp-vcd-pending-state/"     class="crp_title">Can&#8217;t Remove vApp in vCD &#8211; Pending State</a></li><li><a href="http://vsential.com/2012/04/vco-vapp-upgrade-issue/"     class="crp_title">vCO vApp Upgrade Issue</a></li><li><a href="http://vsential.com/2012/12/host-disconnects-vcenter-vcloud-director-environment/"     class="crp_title">Host Disconnects from vCenter in a vCloud Director&hellip;</a></li></ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vSential?a=jhZURIyFNLE:4fQGBfhJ6-s:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/vSential?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=jhZURIyFNLE:4fQGBfhJ6-s:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/vSential?i=jhZURIyFNLE:4fQGBfhJ6-s:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=jhZURIyFNLE:4fQGBfhJ6-s:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/vSential?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=jhZURIyFNLE:4fQGBfhJ6-s:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/vSential?i=jhZURIyFNLE:4fQGBfhJ6-s:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/vSential?a=jhZURIyFNLE:4fQGBfhJ6-s:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/vSential?i=jhZURIyFNLE:4fQGBfhJ6-s:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vSential/~4/jhZURIyFNLE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vsential.com/2012/09/vcloud-director-samlsso-fail-omg/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<feedburner:origLink>http://vsential.com/2012/09/vcloud-director-samlsso-fail-omg/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 1.237 seconds. --><!-- Cached page generated by WP-Super-Cache on 2013-06-16 22:54:14 --><!-- Compression = gzip -->
