Configuration Archiving on Cisco Routers

Create directory in flash to store arhived configs

Router#cd slot0:
Router#mkdir configs
Create directory filename [ configs] ?
Created dir slot0: /configs
Router#

Configure archiving. Configuration stored in archive every time you do a write memory or copy running-config startup-config.

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config) #archive
Router(config-archive) #path slot0: /configs/$h ($h uses hostname, $t uses date/time stamp)
Router(config-archive) #write-memory
Router(config-archive) #time-period 1440 (automatic scheduled archive every 1,440 minutes)
Router(config-archive) #end
Router#

View archives

Router#show archive
There are currently 5 archive configurations saved.
The next archive file will be named slot0: /configs/Router1-5
Archive # Name
0
1 slot0: /configs/Router1-1
2 slot0: /configs/Router1-2
3 slot0: /configs/Router1-3
4 slot0: /configs/Router1-4 <- Most Recent
5
6
7
8
9
10
11
12
13
14
Router#

Change number of archive files stored

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config) #archive
Router(config-archive) #maximum 10
Router(config-archive) #end
Router#

Show differences between current running config and an archived config

Router#show archive config differences slot0: /configs/Router1-1
Contextual Config Diffs:
+ip cef
-no ip cef
Router#

Rollback to previous configuration archive file

Router#archive config (store current running config)
Router#configure replace slot0: /configs/Router1-1
This will apply all necessary additions and deletions
to replace the current running configuration with the
contents of the specified configuration file, which is
assumed to be a complete configuration, not a partial
configuration. Enter Y if you are sure you want to proceed. ? [ no] : y
Total number of passes: 1
Rollback Done
Router#

Comments

2 Responses to "Configuration Archiving on Cisco Routers"

Jay ward said... April 25, 2014 at 8:01 PM

Awesome! This can surely help me. firewall appliance do rocks!

kate reid said... May 5, 2014 at 7:49 PM

The contents you mentioned in post is too good and can be very useful. untangle premium is the best for me.

Post a Comment

Search This Blog

Blog Archive

Total Pageviews