VMware

Need Simple SSH Script

I need to mark all my iSCSI volumes as perennial so the host will boot faster.

I have about 15 volumes to mark and I need to do this on several hosts.

I have the esxcli command I can copy\paste into SSH but I don’t want to do this multiple times.

I am obviously a script beginner.

​

Assuming the script will be run on each host (i don’t need something to find a host and login) how would this be done.

​

Commands are

esxcli storage core device setconfig -d naa.1234 –perennially-reserved=true

esxcli storage core device setconfig -d naa.1324 –perennially-reserved=true

esxcli storage core device setconfig -d naa.A234 –perennially-reserved=true

esxcli storage core device setconfig -d naa.3434 –perennially-reserved=true

​

Thanks for your help.


View Reddit by bhgewilsonView Source

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Close