Hi. I have lots of esxcli commands that we are using to move hosts to new arrays. So unmounting datastores, detaching the scsi naa, removing the dead path, etc.
Can I just add these to a shell script ie, #!\bin\bash and just dump all these esxcli commands in there? And where would I save it? The scratch partition? I cant do all the esxcli commands we have wiht powercli. So I rather than shove them in shell script and copy it to all our hosts. Thanks,,,
ESXi run busybox so you would need to use:
#!/bin/sh
You could dump the script anywhere, maybe a shared datastore which remains available for all hosts?
---------------------------------------------------------------------------------------------------------
Was it helpful? Let us know by completing this short survey here.
ESXi run busybox so you would need to use:
#!/bin/sh
You could dump the script anywhere, maybe a shared datastore which remains available for all hosts?
---------------------------------------------------------------------------------------------------------
Was it helpful? Let us know by completing this short survey here.
You can add the commands to /etc/rc.local.d/local.sh
This file is executed at the end of the boot process and is persistent between reboots.
> You can add the commands to /etc/rc.local.d/local.sh
That makes no sense as he probably does not want to re-run those commands after every reboot.
Also it is way easier to just store the command on a normal datastore and launch it via a putty session.
Hi. Thank you everyone! Thanks,,,