<?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: dvSwitch scripting &#8211; Part 1 &#8211; Creation	</title>
	<atom:link href="https://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/</link>
	<description>My PowerShell ramblings</description>
	<lastBuildDate>Wed, 08 Apr 2020 10:19:45 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.10</generator>
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/><atom:link rel="hub" href="https://websubhub.com/hub"/>	<item>
		<title>
		By: ss		</title>
		<link>https://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/#comment-2066</link>

		<dc:creator><![CDATA[ss]]></dc:creator>
		<pubDate>Thu, 28 Mar 2013 08:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://lucd.info/?p=502#comment-2066</guid>

					<description><![CDATA[can anyone share me the perl script to add host to the dvs? Thank you!]]></description>
			<content:encoded><![CDATA[<p>can anyone share me the perl script to add host to the dvs? Thank you!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kevin Smith		</title>
		<link>https://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/#comment-1217</link>

		<dc:creator><![CDATA[Kevin Smith]]></dc:creator>
		<pubDate>Thu, 22 Sep 2011 10:14:07 +0000</pubDate>
		<guid isPermaLink="false">http://lucd.info/?p=502#comment-1217</guid>

					<description><![CDATA[Hi LucD,
Great script

Is there any way to change the &quot;dvSwitch Uplink Group Name&quot; when this is created via PowerCLI as this is referenced in an imported profile and the names need to match. The last part of the name is generated dynamically  i.e. dvSwitch-DVUplinks-.

Cheers
Kevin]]></description>
			<content:encoded><![CDATA[<p>Hi LucD,<br />
Great script</p>
<p>Is there any way to change the &#8220;dvSwitch Uplink Group Name&#8221; when this is created via PowerCLI as this is referenced in an imported profile and the names need to match. The last part of the name is generated dynamically  i.e. dvSwitch-DVUplinks-.</p>
<p>Cheers<br />
Kevin</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LucD		</title>
		<link>https://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/#comment-375</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Thu, 11 Mar 2010 18:48:56 +0000</pubDate>
		<guid isPermaLink="false">http://lucd.info/?p=502#comment-375</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/#comment-374&quot;&gt;robertg&lt;/a&gt;.

Not yet I&#039;m afraid.
But it&#039;s still on my list ;-)]]></description>
			<content:encoded><![CDATA[<p>Not yet I&#8217;m afraid.<br />
But it&#8217;s still on my list 😉</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: robertg		</title>
		<link>https://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/#comment-374</link>

		<dc:creator><![CDATA[robertg]]></dc:creator>
		<pubDate>Thu, 11 Mar 2010 18:45:50 +0000</pubDate>
		<guid isPermaLink="false">http://lucd.info/?p=502#comment-374</guid>

					<description><![CDATA[Hi Luc,

Any luck with the Nexus dVs ??]]></description>
			<content:encoded><![CDATA[<p>Hi Luc,</p>
<p>Any luck with the Nexus dVs ??</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LucD		</title>
		<link>https://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/#comment-247</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Thu, 10 Dec 2009 22:08:54 +0000</pubDate>
		<guid isPermaLink="false">http://lucd.info/?p=502#comment-247</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/#comment-246&quot;&gt;vRob&lt;/a&gt;.

Hi Rob, I must admit I haven&#039;t tried to automate the use of a Nexus vDs myself yet.
But it looks an interesting challenge.
I&#039;ll play around a bit in my lab.
Luc.]]></description>
			<content:encoded><![CDATA[<p>Hi Rob, I must admit I haven&#8217;t tried to automate the use of a Nexus vDs myself yet.<br />
But it looks an interesting challenge.<br />
I&#8217;ll play around a bit in my lab.<br />
Luc.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: vRob		</title>
		<link>https://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/#comment-246</link>

		<dc:creator><![CDATA[vRob]]></dc:creator>
		<pubDate>Thu, 10 Dec 2009 21:20:17 +0000</pubDate>
		<guid isPermaLink="false">http://lucd.info/?p=502#comment-246</guid>

					<description><![CDATA[Hi Luc,

I&#039;ve tried to use your scripts on a Nexus vDs with no luck, do you know of anyone that has created a script to add a host to a Nexus dVs ??   If you like a challange to do what appears no one has done i can provide you the Onyx dump.
Hope to hear from you soon

Cheers

vRob]]></description>
			<content:encoded><![CDATA[<p>Hi Luc,</p>
<p>I&#8217;ve tried to use your scripts on a Nexus vDs with no luck, do you know of anyone that has created a script to add a host to a Nexus dVs ??   If you like a challange to do what appears no one has done i can provide you the Onyx dump.<br />
Hope to hear from you soon</p>
<p>Cheers</p>
<p>vRob</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alasdair		</title>
		<link>https://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/#comment-228</link>

		<dc:creator><![CDATA[Alasdair]]></dc:creator>
		<pubDate>Wed, 25 Nov 2009 13:27:46 +0000</pubDate>
		<guid isPermaLink="false">http://lucd.info/?p=502#comment-228</guid>

					<description><![CDATA[Hi Luc,

It works perfectly.  Thanks for the prompt response as always.]]></description>
			<content:encoded><![CDATA[<p>Hi Luc,</p>
<p>It works perfectly.  Thanks for the prompt response as always.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LucD		</title>
		<link>https://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/#comment-227</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Wed, 25 Nov 2009 13:06:22 +0000</pubDate>
		<guid isPermaLink="false">http://lucd.info/?p=502#comment-227</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/#comment-226&quot;&gt;Alasdair&lt;/a&gt;.

Hi Alasdair, there was indeed a bug in the script.
Where I determined which pNics were in use, I only looked at the classic vSwitches but not at the dvSwitches. The script has been updated (lines 71-75 were added).
Now it should work as designed.
Thanks for finding this &quot;feature&quot;.
Luc.]]></description>
			<content:encoded><![CDATA[<p>Hi Alasdair, there was indeed a bug in the script.<br />
Where I determined which pNics were in use, I only looked at the classic vSwitches but not at the dvSwitches. The script has been updated (lines 71-75 were added).<br />
Now it should work as designed.<br />
Thanks for finding this &#8220;feature&#8221;.<br />
Luc.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alasdair		</title>
		<link>https://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/#comment-226</link>

		<dc:creator><![CDATA[Alasdair]]></dc:creator>
		<pubDate>Wed, 25 Nov 2009 12:16:50 +0000</pubDate>
		<guid isPermaLink="false">http://lucd.info/?p=502#comment-226</guid>

					<description><![CDATA[Hi Luc,

I&#039;ve played around some more and there seems to be an issue with the names of the free nics.  I have three nics to begin with (vmnic1, 2 and 3) and when I run the script the first time, it creates a dvSwitch, adds the ESX hosts and allocates vmnic1.

When I check the pnicInUse and pnicFree variables it lists vmnic0 as in use and vmnic1, 2 and 3 as free.  I would expect this as when the function runs the first time, those cards would be free.

However when I run the script again with a new dvSwitch name, I get an error when adding the ESX hosts as it is trying to add vmnic1 to the new switch even though it has already been allocatd to the previous switch.

Am I missing something really basic here, or is there a function to have the vmnics in use rescanned in order to update the pnicInuse variable?]]></description>
			<content:encoded><![CDATA[<p>Hi Luc,</p>
<p>I&#8217;ve played around some more and there seems to be an issue with the names of the free nics.  I have three nics to begin with (vmnic1, 2 and 3) and when I run the script the first time, it creates a dvSwitch, adds the ESX hosts and allocates vmnic1.</p>
<p>When I check the pnicInUse and pnicFree variables it lists vmnic0 as in use and vmnic1, 2 and 3 as free.  I would expect this as when the function runs the first time, those cards would be free.</p>
<p>However when I run the script again with a new dvSwitch name, I get an error when adding the ESX hosts as it is trying to add vmnic1 to the new switch even though it has already been allocatd to the previous switch.</p>
<p>Am I missing something really basic here, or is there a function to have the vmnics in use rescanned in order to update the pnicInuse variable?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alasdair		</title>
		<link>https://www.lucd.info/2009/10/09/dvswitch-scripting-part-1-creation/#comment-222</link>

		<dc:creator><![CDATA[Alasdair]]></dc:creator>
		<pubDate>Tue, 24 Nov 2009 13:10:47 +0000</pubDate>
		<guid isPermaLink="false">http://lucd.info/?p=502#comment-222</guid>

					<description><![CDATA[Hi Luc,

I&#039;m using your script to try and create two dvSwitches.  The first gets created no problem, but when change the values in lines 50 - 53 and run the script from line 50, the dvSwitch gets created but is not added to any of my hosts.

The error suggests that it is trying to allocate vmnic1 to the second switch on each host, but that nic was already allocated to the first switch.

How can I refresh the pnicFree value so that when I run the script again it picks up that the next available vmnic has changed?

Thanks for any help.]]></description>
			<content:encoded><![CDATA[<p>Hi Luc,</p>
<p>I&#8217;m using your script to try and create two dvSwitches.  The first gets created no problem, but when change the values in lines 50 &#8211; 53 and run the script from line 50, the dvSwitch gets created but is not added to any of my hosts.</p>
<p>The error suggests that it is trying to allocate vmnic1 to the second switch on each host, but that nic was already allocated to the first switch.</p>
<p>How can I refresh the pnicFree value so that when I run the script again it picks up that the next available vmnic has changed?</p>
<p>Thanks for any help.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
