Hi,
I am trying to add a vmkernel adapter to distributed switch by the below command:
esxcli network ip interface add --interface-name=vmk1 --dvs-name=DVSWITCHNAME --dvport-id=PORT_ID
It is failing every time with error invalid port id. esxcfg-vswitch -l command shows that vmnic1 and vmnic2 of the hosts are connected to 636 and 637 port of this dvswitch.
How to determine what port_ID should be used to execute the command successfully.
Please help.