Hello
I'm looking for a script witch reports me unused portgroups. So I can delete this portgroups.
I was playing with get-virtualportgroup.
I got the Name, Key, VirtualSwitch, VlanID
How can I display all available columns?
many thanks, Sven
I was intrigued by your question to find unused portgroups.
Have a look at the solution I came up with in my Find unused portgroups in a cluster post.
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Sven,
if you append "| Format-List *" or "| Format-Table *" to your command, you will get all available fields. In this case you will get the following fields:
Name
VirtualSwitchId
Key
Port
VLanId
VirtualSwitchName
VMHostId
You can also append "| Get-Member" to your command to see all available methods and properties.
Robert
thanks, Robert.
Now I can try to get the values.
regards, Sven
I was intrigued by your question to find unused portgroups.
Have a look at the solution I came up with in my Find unused portgroups in a cluster post.
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi LucD
great! many thanks
regards, Sven
Hi LucD,
I am wondering if you can filter port group results by types. I looked everywhere and could not find answer.
For example, when I issue get-virtualporgrop command I get virtual port groups from vmotion, service console, ft, vmkernel, and virtual machine network ports.
I want to find a way query virtual machine network ports only. Is there a way to do this?
Thanks,
David