I have searched for hours and not been able to find a way to do this:
Given a vmkernel adapter name, I want to be able to find the "display name" of the Portgroup on dvSwitch it is associated with.
This is how it shows in vSphere client:
so, in this case: input string would be: "vmk3" and output string would be "NFS".
none of the cli commands I've tried including:
esxcli network ip interface list
esxcfg-vmknic -l
esxcfg-vswitch -l
seem to show this secret Port Group name.
How, via cli can I find this association?