Cisco Systems ASR 9000 Switch User Manual


 
3-29
Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide
OL-17502-01
Chapter 3 Configuring General Router Features
Managing Configuration Sessions
Examples
The following examples illustrate how to commit a configuration:
Committing a Configuration from Global Configuration Mode: Example, page 3-29
Committing a Configuration from Administration Configuration Mode: Example, page 3-29
Committing a Configuration from Global Configuration Mode: Example
In the following example, the default commit command is entered in global configuration mode:
RP/0/RSP0/CPU0:router# configure
RP/0/RSP0/CPU0:router(config)# interface Gi 0/0/0/2
RP/0/RSP0/CPU0:router(config-if)# description faq
RP/0/RSP0/CPU0:router(config-if)# ipv4 address 10.1.1.1 255.0.0.0
RP/0/RSP0/CPU0:router(config-if)# commit
RP/0/0/0:Aug 6 09:26:17.781 : %LIBTARCFG-6-COMMIT Configuration committed by user
‘cisco'. Use 'show configuration commit changes 1000000124' to view the changes.
Note The preceding message is stored in the log and displays only if logging is configured to display on
screen.
Committing a Configuration from Administration Configuration Mode: Example
In the next example, the commit command is entered with the label and comment options in
administration configuration mode:
RP/0/RSP0/CPU0:router# admin
RP/0/RSP0/CPU0:router(admin)# configure
RP/0/RSP0/CPU0:router(admin-config)# sdr test
RP/0/RSP0/CPU0:router(admin-config-sdr:test)# location 0/1/* primary
RP/0/RSP0/CPU0:router(admin-config-sdr:test)# commit label test comment This is a test
RP/0/RSP0/CPU0:router(admin-config)# show configuration commit list detail
1) CommitId: 2000000018 Label: test
UserId: user1 Line: vty1
Client: CLI Time: 23:45:40 UTC Wed Dec 02 2008
Comment: This is a test
Note Configuration files are stored on the same flash disk as the boot image. Access these configurations only
through the CLI commands for configuration management, history, and rollback. Direct modification or
deletion of these files can result in lost router configurations.
Reloading a Failed Configuration
If the router displays a configuration failure message when you attempt to commit a configuration
change, the configuration changes are not lost. While you remain in global configuration mode or
administration configuration mode, you can load the configuration changes into the target configuration,
correct the errors, and commit the changes.