From Internetworkpro
| This page or section provides device configuration instructions
Please note that the information on this page has not been checked for accuracy and is not intended as a replacement to documentation. Please ensure you understand your desired objectives before attempting to apply any examples listed.
|
Router#mkdir flash:/archive
Create directory filename [archive]?
Created dir flash:/archive
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#archive
Router(config-archive)#path flash:archive/config
Router(config-archive)#write-memory
Router(config-archive)#end
Router#wri mem
*May 3 21:25:36.019: %SYS-5-CONFIG_I: Configured from console by console
Building configuration...
[OK]
Router#dir flash:archive
Directory of flash:/archive/
10 -rw- 830 May 03 2006 21:25:42 +00:00 config-1
64016384 bytes total (37220352 bytes free)
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname NewFancyHostname
NewFancyHostname(config)#end
NewFancyHostname#wri mem
Building configuration...
*May 3 21:26:09.631: %SYS-5-CONFIG_I: Configured from console by console[OK]
NewFancyHostname#dir flash:/archive
Directory of flash:/archive/
10 -rw- 830 May 03 2006 21:25:42 +00:00 config-1
11 -rw- 840 May 03 2006 21:26:14 +00:00 config-2
64016384 bytes total (37216256 bytes free)
NewFancyHostname#show archive config differences flash:archive/config-1 system:running-config
Contextual Config Diffs:
+hostname NewFancyHostname
-hostname Router
NewFancyHostname#show archive config incremental-diffs flash:archive/config-1
!List of Commands:
hostname Router
end
NewFancyHostname#configure replace flash:archive/config-1 time 10
Timed Rollback: Backing up to flash:archive/config-3
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]: yes
Total number of passes: 1
Rollback Done
Router#