VMware Cloud Community
LeoKurz2
Enthusiast
Enthusiast
Jump to solution

Filter uplink portgroups in get-virtualportgroup

Hi,

is there a chance to filter out the uplink portgroups in the get-virtualportgroup when used on distributed switches (exept the name, which is not secure enough)? I can't find a definite property, not even in the extensiondata but I'm not an expert in browsing the API documentation either.

Any idea?

__Leo

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

I think the experimental means the use of tags by us users.

Internally vSphere is using tags, the uplink portgroup is just one example.

In my experience new features are most of the time categorised as experimental in the 1st generation.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

I normally use the TAG property, that seems to work for me.

This shows that property

Get-VirtualPortGroup -Distributed | 
Select
Name, @{N="TAG";E={$_.ExtensionData.Tag[0].Key}}
And this shows the property in action in a Where-clause

Get-VirtualPortGroup -Distributed |
where
{$_.ExtensionData.Tag[0].Key -match "UPLINK"} |
Select
Name


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

LeoKurz2
Enthusiast
Enthusiast
Jump to solution

Hi Luc,

I've seen this as well, but I was insecure because of the description in the API reference: "...Experimental. Subject to change." I thought there mighte be somthinge more "reliable" 🙂

__Leo

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

I think the experimental means the use of tags by us users.

Internally vSphere is using tags, the uplink portgroup is just one example.

In my experience new features are most of the time categorised as experimental in the 1st generation.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos