Hello everyone,
I want in one order put down after up all vmnic of my esx (vmnic1,vmnic2 and vmnic3)
I know the command is : esxcli network nic down -n vmnicX
But can i do this : esxcli network nic down -n vmnic1 vmnic2 vmnic3 for down and this for up : esxcli network nic up -n vmnic1 vmnic2 vmnic3 ?
If i create a folder at the root and put my script in this folder, do you think can work ?
What kind of script i need to create to use directly on esxi to start esxcli network nic down -n vmnic1 vmnic2 vmnic3 ?
The goal is my colleague just need connect on esxi i start the script.
Thank you for help.
Hello ,
Please use below script
#!/bin/sh
esxcli network nic down -n vmnic6
esxcli network nic down -n vmnic7
Just did in my lab
[root@esxi2:/var] cat test.sh
#!/bin/sh
esxcli network nic down -n vmnic6
esxcli network nic down -n vmnic7
Cheers !!
Moderator: Please do not create duplicate threads on the same topic.
The other thread you created today has been locked and archived.
Thank you for your help but for me is not work.
I have this message : -sh: ./script_down_vmnic.sh: not found
Can you have an idea ?
Please make sure you are in the correct path while running the script and also do not forget to add permissions with chmod to make it executable.
Regards!