Hello,
I am trying to obtain all Vlan seen by physical NIC on my ESX.
I tried this for one of my server and for one physical card : vmnic4
$view=get-view -moref (get-vmhost 10.179.100.100).id
$net=get-view -moref $view.configmanager.networksystem
$pnhi=$net.QueryNetworkHint("vmnic4")
After that... I see this result :
Device : vmnic4
Subnet : {151, 150, 511, 703...}
Network :
ConnectedSwitchPort :
DynamicType :
DynamicProperty :
Impossible to access to the content of Subnet field... It's frustrating !
If you have any Id how to see all Subnets I am interested