<?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: Find unused portgroups in a cluster	</title>
	<atom:link href="https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/</link>
	<description>My PowerShell ramblings</description>
	<lastBuildDate>Fri, 14 Jul 2023 17:57:59 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</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: LucD		</title>
		<link>https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/#comment-22779</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Fri, 14 Jul 2023 17:57:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2101#comment-22779</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/#comment-22774&quot;&gt;Gautam&lt;/a&gt;.

If you have 1 clustername per line in a TXT file, you can package the code in a foreach loop.
Just drop line 1.

Something like this
&lt;code&gt;
Get-Content -Path .\clusterNames.Txt -PipelineVariable clusterName &#124;
Foreach-Object -Process {

# The code from the post

}
&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>If you have 1 clustername per line in a TXT file, you can package the code in a foreach loop.<br />
Just drop line 1.</p>
<p>Something like this<br />
<code><br />
Get-Content -Path .\clusterNames.Txt -PipelineVariable clusterName |<br />
Foreach-Object -Process {</p>
<p># The code from the post</p>
<p>}<br />
</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gautam		</title>
		<link>https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/#comment-22774</link>

		<dc:creator><![CDATA[Gautam]]></dc:creator>
		<pubDate>Fri, 14 Jul 2023 11:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2101#comment-22774</guid>

					<description><![CDATA[Hi Luc,

Is there a way i can input list of clusters in a file, tried using get-content with a txt file but not wokring.]]></description>
			<content:encoded><![CDATA[<p>Hi Luc,</p>
<p>Is there a way i can input list of clusters in a file, tried using get-content with a txt file but not wokring.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LucD		</title>
		<link>https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/#comment-4351</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Fri, 08 Sep 2017 08:37:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2101#comment-4351</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/#comment-4342&quot;&gt;Khoa Trinh&lt;/a&gt;.

Hi Khoa,
For learning PowerCLI, and don&#039;t forget you will need to have some basic PowerShell knowledge as well, there are a number of introductory resources available.
See the sidebar on the &lt;a href=&quot;https://blogs.vmware.com/PowerCLI/&quot; rel=&quot;nofollow&quot;&gt;PowerCLI blog&lt;/a&gt; for some pointers.
For diving into the vSphere API you will need to refer to the &lt;a href=&quot;https://code.vmware.com/web/dp/explorer-apis?id=196&quot; rel=&quot;nofollow&quot;&gt;API Reference&lt;/a&gt;, it also has sample code.

On the PowerShell part, there is a good intro at the &lt;a href=&quot;https://mva.microsoft.com/en-us/training-courses/getting-started-with-microsoft-powershell-8276?l=r54IrOWy_2304984382&quot; rel=&quot;nofollow&quot;&gt;Microsoft MVA site&lt;/a&gt;.

I hope that helps to get you started.
Regards,
Luc]]></description>
			<content:encoded><![CDATA[<p>Hi Khoa,<br />
For learning PowerCLI, and don&#8217;t forget you will need to have some basic PowerShell knowledge as well, there are a number of introductory resources available.<br />
See the sidebar on the <a href="https://blogs.vmware.com/PowerCLI/" rel="nofollow">PowerCLI blog</a> for some pointers.<br />
For diving into the vSphere API you will need to refer to the <a href="https://code.vmware.com/web/dp/explorer-apis?id=196" rel="nofollow">API Reference</a>, it also has sample code.</p>
<p>On the PowerShell part, there is a good intro at the <a href="https://mva.microsoft.com/en-us/training-courses/getting-started-with-microsoft-powershell-8276?l=r54IrOWy_2304984382" rel="nofollow">Microsoft MVA site</a>.</p>
<p>I hope that helps to get you started.<br />
Regards,<br />
Luc</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Khoa Trinh		</title>
		<link>https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/#comment-4342</link>

		<dc:creator><![CDATA[Khoa Trinh]]></dc:creator>
		<pubDate>Mon, 28 Aug 2017 07:53:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2101#comment-4342</guid>

					<description><![CDATA[Dear LucD,

This script is great. However, i wonder did you or vmware public some document how we can manipulate and getting familiar with the powercli.

I already wen to the link https://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.host.NetworkInfo.html, but i don&#039; know how we can manipulate the object or try to discover the value properties.

May you please give me a hint here ? . Thanks.]]></description>
			<content:encoded><![CDATA[<p>Dear LucD,</p>
<p>This script is great. However, i wonder did you or vmware public some document how we can manipulate and getting familiar with the powercli.</p>
<p>I already wen to the link <a href="https://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.host.NetworkInfo.html" rel="nofollow ugc">https://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.host.NetworkInfo.html</a>, but i don&#8217; know how we can manipulate the object or try to discover the value properties.</p>
<p>May you please give me a hint here ? . Thanks.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: TJ		</title>
		<link>https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/#comment-3620</link>

		<dc:creator><![CDATA[TJ]]></dc:creator>
		<pubDate>Tue, 15 Sep 2015 14:22:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2101#comment-3620</guid>

					<description><![CDATA[Hi Luc,
Wondering if there had been updates to this script to work with VDS and vSphere 5.5?  This is exactly what I&#039;m looking for in order to complete some tasks.  Would appreciate any insight!
Thanks.]]></description>
			<content:encoded><![CDATA[<p>Hi Luc,<br />
Wondering if there had been updates to this script to work with VDS and vSphere 5.5?  This is exactly what I&#8217;m looking for in order to complete some tasks.  Would appreciate any insight!<br />
Thanks.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jim		</title>
		<link>https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/#comment-3329</link>

		<dc:creator><![CDATA[Jim]]></dc:creator>
		<pubDate>Thu, 25 Sep 2014 15:31:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2101#comment-3329</guid>

					<description><![CDATA[I&#039;m going to hazard a guess that you never determined why it didn&#039;t work for vSphere 5.0+?  Running into the same issue.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m going to hazard a guess that you never determined why it didn&#8217;t work for vSphere 5.0+?  Running into the same issue.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ken		</title>
		<link>https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/#comment-1835</link>

		<dc:creator><![CDATA[Ken]]></dc:creator>
		<pubDate>Thu, 01 Nov 2012 21:17:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2101#comment-1835</guid>

					<description><![CDATA[Luc,
This script does not seem to function properly on ESX 5.0.  Are there changes that need to be made for the newer ESX versions?  It&#039;s not accurately displaying the VMs connected to my portgroups so most of them appear unused.]]></description>
			<content:encoded><![CDATA[<p>Luc,<br />
This script does not seem to function properly on ESX 5.0.  Are there changes that need to be made for the newer ESX versions?  It&#8217;s not accurately displaying the VMs connected to my portgroups so most of them appear unused.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LucD		</title>
		<link>https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/#comment-1581</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Wed, 23 May 2012 20:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2101#comment-1581</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/#comment-1580&quot;&gt;Jordan&lt;/a&gt;.

Hi Jordan, yes, you are correct, that Ports property doesn&#039;t exist for portgroups on dvSwitches.
It should be possible to do this though, have a look at my &lt;a href=&quot;https://www.lucd.info/2012/02/14/dvswitch-scripting-part-12-find-free-ports/&quot; rel=&quot;nofollow&quot;&gt;dvSwitch scripting – Part 12 – Find free ports&lt;/a&gt; post, where I find the first free ports on a dvSwitch portgroup.
I&#039;ll see if I can come up with something.]]></description>
			<content:encoded><![CDATA[<p>Hi Jordan, yes, you are correct, that Ports property doesn&#8217;t exist for portgroups on dvSwitches.<br />
It should be possible to do this though, have a look at my <a href="https://www.lucd.info/2012/02/14/dvswitch-scripting-part-12-find-free-ports/" rel="nofollow">dvSwitch scripting – Part 12 – Find free ports</a> post, where I find the first free ports on a dvSwitch portgroup.<br />
I&#8217;ll see if I can come up with something.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jordan		</title>
		<link>https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/#comment-1580</link>

		<dc:creator><![CDATA[Jordan]]></dc:creator>
		<pubDate>Wed, 23 May 2012 19:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2101#comment-1580</guid>

					<description><![CDATA[Luc,

I know this an old post, but what about Distributed Switches?  They don&#039;t seem to have to Ports property...]]></description>
			<content:encoded><![CDATA[<p>Luc,</p>
<p>I know this an old post, but what about Distributed Switches?  They don&#8217;t seem to have to Ports property&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LucD		</title>
		<link>https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/#comment-800</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Fri, 05 Nov 2010 10:32:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2101#comment-800</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2010/04/20/find-unused-portgroups-in-a-cluster/#comment-799&quot;&gt;Sven&lt;/a&gt;.

@Sven. I&#039;m currently in the final days of writing for our upcoming book.
Once that is done I will tackle all the open questions and requests.
Sorry to keep you waiting.]]></description>
			<content:encoded><![CDATA[<p>@Sven. I&#8217;m currently in the final days of writing for our upcoming book.<br />
Once that is done I will tackle all the open questions and requests.<br />
Sorry to keep you waiting.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
