Cisco Systems ASR 9000, A9K24X10GETR manual Loading the Target Configuration from a File, 3-27

Models: A9KMOD80TR A9K24X10GETR ASR 9000

1 142
Download 142 pages 58.88 Kb
Page 63
Image 63
Loading the Target Configuration from a File

Chapter 3 Configuring General Router Features

Managing Configuration Sessions

F I N A L D R A F T — C i s c o C o n f i d e n t i a l

To save the configuration changes in the target configuration to a file, type 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, type 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. Example: myconfig.cfg

The following example shows a target configuration file saved to the usr/cisco directory of disk0:

RP/0/RSP1/CPU0:router(admin-config)# save configuration disk0:

Destination file name (control-c to abort): [/running-config]?/usr/cisco/test.cfgBuilding configuration.

1 lines built in 1 second [OK]

Note You can also save a configuration to a file using the show configuration file filename command.

Loading the Target Configuration from a File

To populate the target configuration with the contents of a previously saved configuration file, go to global configuration or administration configuration mode and type the load filename command. Consider the following when entering the filename argument:

The filename argument specifies the configuration file to be loaded into the target configuration.

If the full path of the file is not specified, the router attempts to load the file from the root directory on the device.

The following example shows a target configuration file loaded into the current configuration session. The current configuration session is populated with the contents of the file:

RP/0/RSP1/CPU0:router(config)# load disk0:/usr/cisco/test.cfg

Loading.

77 bytes parsed in 1 sec (76)bytes/sec

Loading an Alternative Configuration at System Startup

When a router is reset or powered on, the last running configuration is loaded and used to operate the router.

You can load an alternative configuration during system boot. See Cisco ASR 9000 Series Aggregation Services Router ROM Monitor Guide for information and instructions on this process.

Clearing All Changes to a Target Configuration

To clear changes made to the target configuration without terminating the configuration session, type the clear command in global configuration mode or administration configuration mode. This command deletes any configuration changes that have not been committed.

 

 

Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide

 

 

 

 

 

 

OL-17502-01

 

 

3-27

 

 

 

 

 

Page 63
Image 63
Cisco Systems ASR 9000 Loading the Target Configuration from a File, Clearing All Changes to a Target Configuration, 3-27