- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
esxi 4.1 - cli - vim-cmd hostsvc/net/portgroup_set ==> cannot deactive all nics
If this is the wrong forum, please move it to the right one. thnx
We use esxi 4.1u1 with no hotfix (customer want so) - all commands run from a script local on esxi during kickstart installation and interpreter is ash/busybox (not python - maybe this is a solution ?):
During installation process I create a function which can override the portgroup nic policy.
e.g.
vSwitch has 4 nics: vmnic0 - 3
Portgroup active: vmnic0
Porgroup standby: vmnic1
with the command:
vim-cmd hostsvc/net/portgroup_set --nicorderpolicy-active=vmnic0 --nicorderpolicy-standby=vmnic1
I can set vmnic2 and 3 to unused. I can check this with
esxcfg-vswitch -l
But how can I set a vmnic to "not use" without this command. I am so sorry, but I cannot find any command in portgroup_set to disable a nic:
--nicorderpolicy-active=vmnic_list
List of active NICs.
--nicorderpolicy-standby=vmnic_list
Order in which failover should occur.
If I leave the parameter --nicorderpolicy-(active/standby) empty, I get a syntax error.
Thank you
Jochen