VMware Cloud Community
Touffi
Enthusiast
Enthusiast

vSwitch & NIC scripting

Hi,

I try to script the installation of virtuel Swicht and NIC. A exemple of command is like this:

esxcfg-vswitch -a vSwitch4

esxcfg-vswitch -A Production vSwitch4

esxcfg-vswitch -L vmnic5 vSwitch4

esxcfg-vswitch -L vmnic2 vSwitch4

vimsh -n -e "/internalsvc/refresh_network"

I realised that one Nic will be on Active and the other as Stanby.

I did not find a way to move the Standby NIC to Active. In Vic is ok but in script no chance.

Can someone help me

Regards

Tags (2)
Reply
0 Kudos
2 Replies
Chris_S_UK
Expert
Expert

You can probably do that using the vimsh command. Google it for info on the numerous uses of it :smileyshocked:)

Chris

Reply
0 Kudos
Touffi
Enthusiast
Enthusiast

Already tried for the weekend.

Can only work with vimsh when the nic is listed in unused...

Reply
0 Kudos