Network devices like routers and switches should always be updated to the latest firmware version to ensure optimal network performance. Firmware updates provide free and instant improvements to the functionality of these devices that enhance the user experience. Firmware upgrade also helps you fix any existing bugs and protects you from vulnerabilities. This page is about updating firmware using Configlets in Network Configuration Manager.
Note: Before performing any file transfer, the corresponding file has to be moved to "opmanager-home/tftp_files" folder.
To execute firmware upgrade commands in Network Configuration Manager, follow the steps given below:
Go to Config Automation>>Configlets>>Add Configlets
In the tab that open, provide a name for Configlet.
Choose "Advanced script execution mode" in Configlets.
Provide the Configlet content required to upgrade firmware and click "Save".
Advanced script execution is used to execute a series of interconnected commands on a device. Firmware upgrades can be performed on demand, or they can be scheduled for execution at any future point in time. All you need to do is to create a template containing the required commands, and then use this template to execute repetitive tasks for many devices.
Configlets offered by Network Configuration Manager are of two types:
Once all the above requirements are satisfied, you must follow the following steps to upgrade Firmware in a Cisco device:
Download the Cisco IOS software image onto the TFTP Server in Network Configuration Manager.
Verify whether the TFTP Server has IP connectivity to the router. In order to achieve connection, the router interface and the TFTP server must have an IP address in the same range or a default gateway configured.
Once the connection is established, copy the IOS image to the router from the TFTP Server.
Save the configuration and reload the router.
After the reload is complete, the router will run the desired Cisco IOS software image.
Here's the command required to copy an IOS image to your Cisco Router
2600>enable
Password:xxxxx
2600#copy tftp: flash:
Address or name of remote host []? 10.10.10.2
!--- 10.10.10.2 is the IP address of the TFTP server
Source filename []? c2600-adventerprisek9-mz.124-12.bin
Destination filename [c2600-adventerprisek9-mz.124-12.bin]?
Accessing tftp://10.10.10.2/c2600-adventerprisek9-mz.124-12.bin...
Erase flash: before copying? [confirm]y
!--- If there is not enough memory available, erase the Flash.
!--- If you have sufficient memory you can type n and press enter
Erasing the flash filesystem will remove all files! Continue? [confirm]y
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeee ...erased
Erase of flash: complete
Loading c2600-adventerprisek9-mz.124-12.bin from 10.10.10.2 (via Ethernet0/0): !!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 29654656/49807356 bytes]
Verifying checksum... OK (0xAC8A)
29654656 bytes copied in 56.88 secs (80383 bytes/sec)
The above terminal shows the sample command that will be executed in a TELNET or a putty.
The corresponding configlet commands for upgrading Firmware in Network Configuration Manager is shown below:
<command prompt="]?">copy tftp: flash:</command>
<command prompt="]?">$TFTP_SERVER_IP</command>
<command prompt="]?">$SOURCE_FILE_NAME</command>
<command prompt="confirm">$DESTINATION_FILE_NAME</command>
<command timeout="120" suffix="$NO_ENTER">y</command>
Once the commands are given, the configlets can be applied in bulk to multiple devices to upgrade Firmware. Not just that, with the help of configlets you can also execute commands to fix errors and to make bulk changes. Check out "Firmware Vulnerability Management" feature to identify potential vulnerabilities in your network and fix them.