|
|
|
Backing up Cisco configurations using the Opengear TFTP Server
|
Using the advanced consoles server USB flash memory to store local config files for Cisco equipment is an easy way to maximize uptime. Opengear enables you to you store local copies of your config files and keep the most recent working copies backed up automatically.
By default the TFTP server is disabled, to enable it navigate to the web manager and choose
System, Services and check the box to enable TFTP server.
With firmware versions 2.8 and above, the ACM5000 and IM4000 family devices will automatically format the USB flash memory and build the directory /var/tmp/usbdisk/tftpboot/ upon enabling the TFTP server option in the web manager.

click to enlarge
Use Opengear TFTP Server to Backup and Restore a Configuration to a Cisco Device
Below is a step-by-step approach to copy a configuration from a router to a TFTP server, and back to another router. Before you proceed with this method, make sure you have a TFTP server on the network to which you have IP connectivity.
- At the Router> prompt issue the enable command, and provide the required password when prompted.
The prompt changes to Router# which indicates that the router is now in privileged mode.
- Copy the running configuration file to the TFTP server:
CE_2#copy running-config tftp:
Address or name of remote host []? 64.104.207.171
Destination filename [ce_2-confg]? backup_cfg_for_my_router
!!
1030 bytes copied in 2.489 secs (395 bytes/sec)
CE_2#
-
Open the configuration file with a text editor. Search for and remove any line that starts with "AAA".
Note: This step is to remove any security commands that can lock you out of the router.
-
Copy the configuration file from the TFTP server to a new router in privileged (enable) mode which has a basic configuration.
Router#copy tftp: running-config
Address or name of remote host []? 64.104.207.171
Source filename []? backup_cfg_for_my_router
Destination filename [running-config]?
Accessing tftp://10.66.64.10/backup_cfg_for_my_router...
Loading backup_cfg_for_router from 64.104.207.171 (via FastEthernet0/0): !
[OK - 1030 bytes]
1030 bytes copied in 9.612 secs (107 bytes/sec)
CE_2#
Scheduling Automatic Backups of Cisco Configuration files
Both Opengear and Cisco support options for scheduling automatic backups of Cisco configuration files. In this example we will use the Cron function of the Opengear to schedule a backup of a particular Cisco configuration every Friday at 1am.
Opengear Cron
At the command prompt of the Opengear type crontab -e (this will open the
default editor vi)
Drop the cron command in the crontab -example:
So if we want to schedule the script to execute at 1AM every Friday, we would
need the following cronjob:
0 1 * * 5 /etc/config/scripts/cisco-backup.sh
The script is now being executed when the system clock hits:
1. minute: 0
2. of hour: 1
3. of day of month: * (every day of month)
4. of month: * (every month)
5. and weekday: 5 (=Friday)
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)
|
|