Thanks for the input. Perhaps I need to approach this from a different angle. Given these assumptions:
1. If a VLAN is trunked to any host in the cluster, it should be trunked to all hosts.
2. It isn't known if ANY of the hosts can function as a reference - neglect of VLAN trunking could have taken place on any or all hosts.
Probably I need to do this:
1. Get a list that lists each vlan present on the cluster - one line per VLAN. I have to compile this list by looking at every esxi host, running the commands, and rolling it up into the list
2. For each VLAN, list the ESXI hosts that it is trunked to, and the ESXi hosts that it is NOT trunked to. Then i can go to the network team, and have them trunk the vlans to the hosts and interfaces that they are not yet trunked to.
I do apologize that this changes the original design of the report somewhat. Should we start a different thread for this?
For example:
VLAN ID | Trunked to | Not Trunked To |
---|
135 | esxi100, esxi101, esxi102 | esxi103,esxi104,esx105 |
150 | esxi100, esxi101 | esxi102, esxi103, esxi104, esxi105 |
| | |
| | |