Device OS upgrades

Sometimes we need to upgrade devices such as routers, switches, and firewalls. It is easy to perform upgrades on one device, but we need automation to upgrade multiple routers. Different devices have different ways of upgrading IOS or OS images, and the automation or scripts are created with different methods depending on the device.

Taking an example of upgrading a Cisco IOS router; there are two basic steps or tasks that need to be performed:

  1. Copy the relevant OS or IOS image into flash: or bootflash:.
  2. Change the config to reload the router with the new image.

Task 1: Prerequisites (to copy relevant OS or IOS image):

  • We need a FTP server that's accessible from the router and has the IOS image that we need on the router ...

Get Practical Network Automation now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.