Reload the switchĪll the steps so far have been non service impacting, we now come to reboot the switch remotely!
#UPDATE CISCO IOS MANUAL#
In most cases you will have already performed this operation yourself manually so will know the steps, we are just using Ansible here to save on the manual labour. It varies from platform to platform but in most cases you will have to change the boot variable to tell your network device to boot from the new image. We will assume for this demonstration that there is sufficient space to take the new image. Note: This playbook does not check to see if there is available space on the remote device.
#UPDATE CISCO IOS UPGRADE#
Using SCP the Ansible playbook will copy the required upgrade image to the switch, ready for the upgrade.
#UPDATE CISCO IOS SOFTWARE#
Copy the software image to network device There could be a case where changes have been made and not saved, which you will lose when the switch reboots. This step in the Ansible playbook performs a show running-config and saves the live config of the switch before you reload it. Verify the current image running on your deviceīefore you upgrade and reload all your switches, it would make sense to first check what software each switch is running and then eliminate all the compliant ones from the upgrade process. The Ansible playbook will be broken up into steps so you can see how each part works. Whilst the steps are mostly the same for other IOS network devices I suggest you try this on a few local switches before upgrading your entire company’s switching overnight! You can never be 100% sure everything will be ok so the steps below describe the process only to perform the upgrade on a 2960 switch. Perform each step on the CLI and transfer the steps to your playbook.
![update cisco ios update cisco ios](https://thehackernews.com/images/-WcnQo-zrsyc/YU19CHgiFzI/AAAAAAAAD4w/wKlCwcD4bfEW0LAKmR_c094592iIrRy1gCLcBGAsYHQ/s0/cisco-update.png)
But you still need to test every step to make sure it operates correctly. Using Ansible to perform this task can take a lot of the manpower out of the task. The main factor is saving time / manpower. Saying all that, the process to perform an IOS upgrade on a Cisco switch is basically very simple using Network Automation Performing the task remotely is always a concern as switches always take longer to reboot when your not there! Also if the switch fails to reboot you have not option but to gain local console access. Or having out of band management to all your network devices has it’s benefits here. Get remote assistance to console into the switch locallyīoth options come with some risk, but having someone on site is a much safer option if the switch fails to reload.Wait patiently while it comes back online.If you want to upgrade your Cisco IOS remotely you have 2 options.
![update cisco ios update cisco ios](https://www.uccollabing.com/wp-content/uploads/2016/01/upgrade-ios-wrmem-runnconftftp.png)
The upgrade steps will be different for your device so check the upgrade instructions and adjust the below to your specific task.
![update cisco ios update cisco ios](https://venturebeat.com/wp-content/uploads/2020/04/IMG_3032D-e1587505051722.jpeg)
Verify the current image running on your device