Hello,
I want to monitor the count of free ports in a portgroup (Distributed Virtual Switch). The number for total ports is no problem, I can get this value from the DVS-Object.
The better question is: where to get the count of used ports from. I can't get this value from the DVS-Object.
I tried to fill a hash with the portgroups used in all VMs, but it seems, that there were some ports missing (i.e. VM powered off).
Has anyone some scripts or ideas how to get an overview of all portgroups with used/free ports?
Thanks so far,
Greets,
Alex