4 Replies Latest reply on Aug 14, 2019 9:37 AM by Jeffery Hawks

    run shell script in ESXi

    Jeffery Hawks Enthusiast

      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,,,