Well, I went to work today … yeah, I know it’s Sunday right ? I ended up updating two MDS9148 switches and I didn’t want to figure out everything all over again. So I put the system image and kickstart onto one of our FTP servers and ran a short bash loop on it:
1 2 3 4 |
root:(ftp.daheim.heimdaheim.de) PWD:~ Sun Oct 20, 08:57:24 [0] > for file in `ls /srv/ftp/firmware/mds9148/*6.2.3*`; do echo "copy ftp://10.0.0.55/`echo $file | sed 's,/srv/ftp/,,'` bootflash:/`echo $file | sed 's,/srv/ftp/firmware/mds9148/,,'`" done |
Now that’ll generate me two lines, which in turn I can use on the MDS’n:
1 2 |
copy ftp://10.0.0.55/firmware/mds9148/m9100-s3ek9-kickstart-mz.6.2.3.bin bootflash:/m9100-s3ek9-kickstart-mz.6.2.3.bin copy ftp://10.0.0.55/firmware/mds9148/m9100-s3ek9-mz.6.2.3.bin bootflash:/m9100-s3ek9-mz.6.2.3.bin |