<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Automate Migrating ESX Host Interfaces to Nexus 1000V</title>
	<atom:link href="http://blogs.cisco.com/datacenter/automate-migrating-esx-host-interfaces-to-nexus-1000v/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.cisco.com/datacenter/automate-migrating-esx-host-interfaces-to-nexus-1000v/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 10:47:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: John David Dove</title>
		<link>http://blogs.cisco.com/datacenter/automate-migrating-esx-host-interfaces-to-nexus-1000v/#comment-698047</link>
		<dc:creator>John David Dove</dc:creator>
		<pubDate>Tue, 22 Jan 2013 23:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.cisco.com/?p=97663#comment-698047</guid>
		<description><![CDATA[John,

Here is the working funciton (modified) It adds the UplinkKey paramater. 

Thanks for your help.

------------------------------------------------

function Add-dvSwHost{
param($dvSwitch, $hostMoRef, $pnic, $nrUplink,$UplinkKey)

$spec = New-Object VMware.Vim.DVSConfigSpec
$tgthost = New-Object VMware.Vim.DistributedVirtualSwitchHostMemberConfigSpec
$tgthost.operation = &quot;add&quot;
$tgthost.backing = New-Object VMware.Vim.DistributedVirtualSwitchHostMemberPnicBacking
0..($nrUplink - 1) &#124; % {
$tgthost.Backing.PnicSpec += New-Object VMware.Vim.DistributedVirtualSwitchHostMemberPnicSpec
$tgthost.Backing.PnicSpec[$_].pnicDevice = $pnic[$_]
$tgthost.Backing.PnicSpec[$_].UplinkPortGroupKey = $UplinkKey
}
$tgthost.host = $hostMoRef
$spec.Host = $tgthost
$dvSwitch.UpdateViewData()
$spec.ConfigVersion = $dvSwitch.Config.ConfigVersion

$taskMoRef = $dvSwitch.ReconfigureDvs_Task($spec)
$task = Get-View $taskMoRef
while(&quot;running&quot;,&quot;queued&quot; -contains $task.Info.State){
$task.UpdateViewData(&quot;Info&quot;)
}
}]]></description>
		<content:encoded><![CDATA[<p>John,</p>
<p>Here is the working funciton (modified) It adds the UplinkKey paramater. </p>
<p>Thanks for your help.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>function Add-dvSwHost{<br />
param($dvSwitch, $hostMoRef, $pnic, $nrUplink,$UplinkKey)</p>
<p>$spec = New-Object VMware.Vim.DVSConfigSpec<br />
$tgthost = New-Object VMware.Vim.DistributedVirtualSwitchHostMemberConfigSpec<br />
$tgthost.operation = &#8220;add&#8221;<br />
$tgthost.backing = New-Object VMware.Vim.DistributedVirtualSwitchHostMemberPnicBacking<br />
0..($nrUplink &#8211; 1) | % {<br />
$tgthost.Backing.PnicSpec += New-Object VMware.Vim.DistributedVirtualSwitchHostMemberPnicSpec<br />
$tgthost.Backing.PnicSpec[$_].pnicDevice = $pnic[$_]<br />
$tgthost.Backing.PnicSpec[$_].UplinkPortGroupKey = $UplinkKey<br />
}<br />
$tgthost.host = $hostMoRef<br />
$spec.Host = $tgthost<br />
$dvSwitch.UpdateViewData()<br />
$spec.ConfigVersion = $dvSwitch.Config.ConfigVersion</p>
<p>$taskMoRef = $dvSwitch.ReconfigureDvs_Task($spec)<br />
$task = Get-View $taskMoRef<br />
while(&#8220;running&#8221;,&#8221;queued&#8221; -contains $task.Info.State){<br />
$task.UpdateViewData(&#8220;Info&#8221;)<br />
}<br />
}
<p class="comment-like"><img class="comment-like-btn" title="Vote" onclick="cl_like_this('http://blogs.cisco.com/wp-admin/admin-ajax.php',698047)" src="http://blogs.cisco.com/wp-content/plugins/comments-likes/images/like.png" />&nbsp;&nbsp;&nbsp;<span id="comment-like-cnt-698047">0</span> likes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John David Dove</title>
		<link>http://blogs.cisco.com/datacenter/automate-migrating-esx-host-interfaces-to-nexus-1000v/#comment-698038</link>
		<dc:creator>John David Dove</dc:creator>
		<pubDate>Tue, 22 Jan 2013 15:50:46 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.cisco.com/?p=97663#comment-698038</guid>
		<description><![CDATA[Thanks, John.

Yes, I have read through all of LucD&#039;s logs on dVs scripting. However, there is currently nothing that supports adding a Nexus 1000V with a specific uplink name. 

Hopefully you are able to do so in your lab tests.

Thanks,

JD]]></description>
		<content:encoded><![CDATA[<p>Thanks, John.</p>
<p>Yes, I have read through all of LucD&#8217;s logs on dVs scripting. However, there is currently nothing that supports adding a Nexus 1000V with a specific uplink name. </p>
<p>Hopefully you are able to do so in your lab tests.</p>
<p>Thanks,</p>
<p>JD
<p class="comment-like"><img class="comment-like-btn" title="Vote" onclick="cl_like_this('http://blogs.cisco.com/wp-admin/admin-ajax.php',698038)" src="http://blogs.cisco.com/wp-content/plugins/comments-likes/images/like.png" />&nbsp;&nbsp;&nbsp;<span id="comment-like-cnt-698038">0</span> likes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John McDonough</title>
		<link>http://blogs.cisco.com/datacenter/automate-migrating-esx-host-interfaces-to-nexus-1000v/#comment-698036</link>
		<dc:creator>John McDonough</dc:creator>
		<pubDate>Tue, 22 Jan 2013 15:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.cisco.com/?p=97663#comment-698036</guid>
		<description><![CDATA[The DistributedVirtualSwitchHostMemberPnicSpec object allows for the attributes

UplinkPortgroupKey
UplinkPortKey

So you should be able to select the UplinkPortgroup perhaps even the specific port within that group, if it makes sense to do that. However I have not tried this but will update my lab and give it a shot and comment with my results.

The object reference is located here, http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.dvs.HostMember.PnicSpec.html

I would recommend reading all of lucd&#039;s blogs, http://www.lucd.info/ there is in depth information in them on networking and adpaters as well as other things.

Regards,
John]]></description>
		<content:encoded><![CDATA[<p>The DistributedVirtualSwitchHostMemberPnicSpec object allows for the attributes</p>
<p>UplinkPortgroupKey<br />
UplinkPortKey</p>
<p>So you should be able to select the UplinkPortgroup perhaps even the specific port within that group, if it makes sense to do that. However I have not tried this but will update my lab and give it a shot and comment with my results.</p>
<p>The object reference is located here, <a href="http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.dvs.HostMember.PnicSpec.html" rel="nofollow">http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.dvs.HostMember.PnicSpec.html</a></p>
<p>I would recommend reading all of lucd&#8217;s blogs, <a href="http://www.lucd.info/" rel="nofollow">http://www.lucd.info/</a> there is in depth information in them on networking and adpaters as well as other things.</p>
<p>Regards,<br />
John
<p class="comment-like"><img class="comment-like-btn" title="Vote" onclick="cl_like_this('http://blogs.cisco.com/wp-admin/admin-ajax.php',698036)" src="http://blogs.cisco.com/wp-content/plugins/comments-likes/images/like.png" />&nbsp;&nbsp;&nbsp;<span id="comment-like-cnt-698036">0</span> likes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John David Dove</title>
		<link>http://blogs.cisco.com/datacenter/automate-migrating-esx-host-interfaces-to-nexus-1000v/#comment-698000</link>
		<dc:creator>John David Dove</dc:creator>
		<pubDate>Mon, 21 Jan 2013 17:14:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.cisco.com/?p=97663#comment-698000</guid>
		<description><![CDATA[how about the function listed here..  

http://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/

function Add-dvSwHost

This will add the host to the Nexus 1000V but you are unable to specify an uplink for your pnic to use. Anyway to add this in?]]></description>
		<content:encoded><![CDATA[<p>how about the function listed here..  </p>
<p><a href="http://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/" rel="nofollow">http://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/</a></p>
<p>function Add-dvSwHost</p>
<p>This will add the host to the Nexus 1000V but you are unable to specify an uplink for your pnic to use. Anyway to add this in?
<p class="comment-like"><img class="comment-like-btn" title="Vote" onclick="cl_like_this('http://blogs.cisco.com/wp-admin/admin-ajax.php',698000)" src="http://blogs.cisco.com/wp-content/plugins/comments-likes/images/like.png" />&nbsp;&nbsp;&nbsp;<span id="comment-like-cnt-698000">0</span> likes</p>
]]></content:encoded>
	</item>
</channel>
</rss>
