4-38
Cisco IOS XR Getting Started Guide
OL-10957-02
Chapter4 Configuring General Router Features
Configuring the SDR Hostname
If you end a configuration session without committing the configuration changes, the router prompts you
to save changes, discard changes, or cancel the action, as shown in the following example:
RP/0/RP0/CPU0:router(config-if)# end
Uncommitted changes found, commit them before exiting(yes/no/cancel)? [cancel]:
Respond to the prompt by entering one of the following options:
yes, commit the configuration changes and exit configuration mode
no, exit configuration mode without committing the configuration change s
cancel, remain in configuration mode without committing the configuration changes
Note In EXEC mode, the exit command logs the user out of the system.

Aborting a Configuration Session

When you abort a configuration session, any changes are discarded a nd the configuration session ends.
No warning is given before the configuration changes are deleted.
In global configuration mode, the abort command discards configuration changes and returns to EXEC
mode. In administration configuration mode, the abort command discards configuration changes and
returns to administration EXEC mode. To abort a configuration session, enter the abort command, as
shown in the following example:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# hostname host1
RP/0/RP0/CPU0:router(config)# interface POS 0/2/0/2
RP/0/RP0/CPU0:router(config-if)# description this is my interface
RP/0/RP0/CPU0:router(config-if)# ipv4 address 10.1.1.1 255.0.0.0
RP/0/RP0/CPU0:router(config-if)# shutdown
RP/0/RP0/CPU0:router(config-if)# abort
RP/0/RP0/CPU0:router#
Configuring the SDR Hostname
The hostname identifies an SDR on the network. Although devices can be uniquely identified by their
Layer 2 and Layer 3 addresses (such as an IP address), it is often simpl er to remember network devices
by an alphanumeric “hostname.” This name is used in the CLI prompt and default c onfiguration
filenames and to identify the SDR on the network.
To configure the hostname, enter the hostname command with the SDR name as shown in the following
example:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# hostname SDR_SJ
RP/0/RP0/CPU0:router(config)# commit
RP/0/RP0/CPU0:Apr 7 00:07:33.246 : config[65669]: %LIBTARCFG-6-COMMIT : Configu
ration committed by user 'user_a'. Use 'show configuration commit changes 1000000067' to
view the changes.
RP/0/RP0/CPU0:SDR_SJ(config)#
The preceding example sets the SDR name to SDR_SJ.