If you work with Cisco gear then you need to keep your code updated to stay ahead of security pugs with IOS etc. I always forget a command or 2 so I figured I would write it down for myself as well as others. I am going to go over tftp updating using cli as it is probably the most common way accomplishing this task.
Step 1 – First thing make sure you have a tftp server installed on your machine with the proper firewall exceptions configured. I personally prefer to use the solarwinds tftp server which is available here https://www.solarwinds.com/free-tools/free-tftp-server
Step 2 – log into Cisco and download your preferred version of code for your switch.
Step 3 – save the code to your tftp root
Step 4 – connect to your switch or router and logon
Step 5 – download the code enter copy tftp flash like listed bellow
# copy tftp flash
>Address or name of remote host? 192.168.1.10
>source filename? c3750-ipbasek9-mz-122-55.SE1.bin
>Destination filename? c3750-ipbasek9-mz-122-55.SE1.bin
Step 6 – check to make sure the file is in flash once completed by entering dir flash:
# dir flash:
c3750-ipbasek9-mz-122-55.SE1.bin
Step 7 – you can set the switch to boot off of the new code. go into config mode with conf t command then enter boot system switch all flash:”code name” like below
# config t
# boot system switch all flash:c3750-ipbasek9-mz-122-55.SE1.bin
Step 8 – leave the config mode by entering end Now check to make sure that the that the new code is active for booting by entering show boot you should see something like this
#show boot
BOOT path-list : flash:/c3750-ipbasek9-mz-122-55.SE1.bin
Config file : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break : no
Manual Boot : no
HELPER path-list :
Auto upgrade : yes
Auto upgrade path :
Step 9 – Save your changes by entering write memory and reboot the switch with reload
# write mem
# reload