![Cisco ASR 14000 Series Скачать руководство пользователя страница 103](http://html.mh-extra.com/html/cisco/asr-14000-series/asr-14000-series_management-command-reference_66667103.webp)
Configuration Management Commands on Cisco IOS XR Software
clear (global)
SMR-101
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
clear (global)
To discard changes to the target configuration that have not yet been committed without exiting the
configuration session, use the
clear
command in administration configuration or in global configuration
mode.
clear
[
feature
]
Syntax Description
Defaults
No default behavior or values
Command Modes
Administration configuration
Global configuration
Command History
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper
task IDs.
Use the
clear
command in administration configuration mode or global configuration mode to discard
changes to a target configuration session without exiting from global configuration mode.
Tip
The
clear
command can also be used in administration EXEC mode or EXEC mode to reset the contents
of a feature. See the
command.
Task ID
This command requires the task ID for the feature or configuration submode impacted by the command.
Examples
The following example shows how to discard uncommitted changes to the target configuration without
exiting the configuration session. In the following example, an IPv4 address is configured on
Packet-over-SONET/SDH (POS) interface 0/2/0/0. The
show
configuration
command displays the
uncommitted changes to the target configuration. The
clear
command discards the uncommitted
changes. The
show
configuration
verifies that the changes made to the target configuration were
discarded.
RP/0/RP0/CPU0:router#
configure
RP/0/RP0/CPU0:router(config)#
interface pos 0/2/0/0
RP/0/RP0/CPU0:router(config-if)#
ipv4 address 1.1.1.1 255.0.0.0
RP/0/RP0/CPU0:router(config-if)#
exit
RP/0/RP0/CPU0:router(config)#
show configuration
Building configuration...
feature
(Optional) System feature or functionality to reset.
Release
Modification
Release 3.7.1
This command was introduced on the Cisco ASR 14000 Series Router.