Saving The Target Configuration To A File - Cisco XR 12000 Series Getting Started Manual

Hide thumbs Also See for XR 12000 Series:
Table of Contents

Advertisement

Managing Configuration Sessions
Displaying Configuration Error Messages Without Descriptions
Configuration changes are automatically verified during the commit operation, and a message appears
if one or more configuration entry fails. To display only the error message (without a description) for a
failed configuration, enter the show configuration failed noerror command, as shown in the following
example:
RP/0/0/CPU0:router(config-tg)# show configuration failed noerror
!! CONFIGURATION FAILED DUE TO SEMANTIC ERRORS
taskgroup alr
!
You can view configuration errors only during the current configuration session. If you exit
Note
configuration mode after the commit operation, the configuration error information is lost.
Displaying Configuration Error Messages Produced While Loading a Configuration
To display any syntax errors found in a configuration loaded with the load command, enter the show
configuration failed load command.

Saving the Target Configuration to a File

Target configurations can be saved to a separate file without committing them to the running
configuration. Target configuration files can then be loaded at a later time and further modified or
committed.
To save the configuration changes in the target configuration to a file, enter the save configuration
device: command. Replace the device argument with the name of the device on which you want to store
the file (for example, disk0). After you enter this command, the router prompts you to enter a filename.
If you enter only a filename, the file is stored in the root directory of the device. To store the file in a
directory, enter the directory path and filename when prompted. We recommend that you specify the cfg
file extension for easy identification. This suffix is not required, but it can help locate target
configuration files, for example:
myconfig.cfg
The following example shows a target configuration file saved to the usr/cisco directory of disk0:
RP/0/0/CPU0:router(admin-config)# save configuration disk0:
Mon May 31 21:52:13.237 DST
Destination file name (control-c to abort): [/running-config]?/usr/cisco/test.cfg
Building configuration.
1 lines built in 1 second
[OK]
You can also save a configuration to a file using the show configuration | file filename command:
RP/0/0/CPU0:router(config)#show configuration | file abc.cfg
Thu Jul 22 23:03:04.722 DST
Building configuration...
[OK]
Cisco IOS XR Getting Started Guide for the Cisco XR 12000 Series Router
3-60
Chapter 3
Configuring General Router Features
OL-24755-01

Advertisement

Table of Contents
loading

Table of Contents