VMware Cloud Community
repl1cant
Contributor
Contributor

esxcfg-vswitch new output format

howdy folks,

it seems with esx 3.5.0 the esxcfg-vswitch -l command no longer lists the portgroups. Well, this has done and gone broken

some usefull portgroup replication scripts i have written Smiley Sad is there another way to pull this infomation easily on a per vswitch basis?

Reply
0 Kudos
6 Replies
depping
Leadership
Leadership

in 3.5 this still works by default, so something broke your installation i guess....

Duncan

My virtualisation blog:

Reply
0 Kudos
kinsden
Enthusiast
Enthusiast

It still does. Here you go:

Switch Name Num Ports Used Ports Configured Ports MTU Uplinks

vSwitch0 64 4 64 1500 vmnic0

PortGroup Name VLAN ID Used Ports Uplinks

Service Console 0 1 vmnic0

Switch Name Num Ports Used Ports Configured Ports MTU Uplinks

vSwitch2 64 4 64 1500 vmnic2

PortGroup Name VLAN ID Used Ports Uplinks

VMKernel 0 1 vmnic2

Reply
0 Kudos
repl1cant
Contributor
Contributor

sorry,

lemme re-phrase .. it no longer lists the internal portgroup ID. On 3.0.2 you had an "Internal ID" field which

is no longer listed.

Reply
0 Kudos
kinsden
Enthusiast
Enthusiast

Yeah...looks like VMware has removed it!!! Can't you replace the ID with 'PortGroup Name' parameter in your scripts?

Reply
0 Kudos
repl1cant
Contributor
Contributor

i just had to change some of the regex's and it worked, for some reason i thought we were using the actual portgroup ID in the replication, but were weren't!

Reply
0 Kudos
repl1cant
Contributor
Contributor

question closed

Reply
0 Kudos