VMware Cloud Community
RanjnaAggarwal
VMware Employee
VMware Employee

Command to Unlink an Adapter from vMA5

I am using this command but it's not removing any uplink. Anyone who can provide me any help on this:-

To remove an uplink adapter from a virtual switch:
•vicfg-vswitch –-server esxi02 –-unlink vmnic3 vSwitch5
Regards, Ranjna Aggarwal
0 Kudos
8 Replies
RanjnaAggarwal
VMware Employee
VMware Employee

Anyone who can help me this?

Regards, Ranjna Aggarwal
0 Kudos
aravinds3107
Virtuoso
Virtuoso

Does this prompt you for the credentials and throws any error message??

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful |Blog: http://aravindsivaraman.com/ | Twitter : ss_aravind
0 Kudos
RanjnaAggarwal
VMware Employee
VMware Employee

No.....but its not removing the adapter from the vSwitch.

Regards, Ranjna Aggarwal
0 Kudos
aravinds3107
Virtuoso
Virtuoso

What happens when you execute the command?

Can you post the screenshot of the message when you execute the command

can you try the below command

vicfg-vswitch.pl --server FQDN(or)IP --username root --unlink vmnic3 vSwitch5

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful |Blog: http://aravindsivaraman.com/ | Twitter : ss_aravind
0 Kudos
RanjnaAggarwal
VMware Employee
VMware Employee

Please check the screenshoot.

Regards, Ranjna Aggarwal
0 Kudos
rickardnobel
Champion
Champion

Could you run a "vicfg-vswitch -l" towards the host? Perhaps the vmnic actually is removed.

The output above only says it has "updated" something with the link, but not actually that the vmnic is still attached to the vSwitch.

My VMware blog: www.rickardnobel.se
0 Kudos
RanjnaAggarwal
VMware Employee
VMware Employee

No it's not removed it's verified by me from GUI as well as by using the above command.

Regards, Ranjna Aggarwal
0 Kudos
rickardnobel
Champion
Champion

I have no VMA around to test, but from SSH on a ESXi host this works:

esxcfg-vswitch --unlink vmnic1 vSwitch2

so your syntax looks correct.

My VMware blog: www.rickardnobel.se
0 Kudos