Configuration Management Commands on Cisco IOS XR Software
commit
SMR-114
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
To replace the default numeric ID for the commit, use the optional
label
keyword. This label is displayed
(instead of the autogenerated commit ID) in the output for the
show configuration commit list
command.
Enter an optional comment with the
comment
keyword to provide additional information about the
commit action. This comment is displayed in the output for the
show configuration commit list
command with the
detail
keyword.
Use the optional
confirmed
minutes
keyword and argument to commit a configuration on a trial basis
for a minimum of 30 seconds and a maximum of 300 seconds (5 minutes). During the trial configuration
period, enter
commit
to confirm the configuration. If
commit
is not entered, then the system reverts to
the previous configuration when the trial time period expires. The confirmed option is not available in
administration configuration mode.
You can use the
commit
command in conjunction with the
load
command. Load a new configuration
with the
load
command, and use the
commit
command with the
replace
keyword to have the loaded
configuration become the active (running) configuration.
Use the optional
save-running filename
file_path
keywords and argument to save the running
configuration to a specified file. To configure automatic saving of the configuration file on every commit,
use the
configuration commit auto-save
command. If automatic saving of the configuration file is
already enabled, specifying
save-running filename
file_path
with the
commit
command has no
additional effect.
Caution
Saving the running configuration to a file is CPU intensive.
Note
If you use the
commit
command without previously loading a target configuration, a blank configuration
is committed.
Task ID
This command requires the task ID for the feature or configuration submode impacted by the command.
Examples
Committing the Target Configuration to the Active Running Configuration
The following example shows how to commit the target configuration to the active running
configuration. In the following example, the
commit
command saves changes to the router hostname.
RP/0/RP0/CPU0:router#
configure
RP/0/RP0/CPU0:router(config)#
hostname
router1
RP/0/RP0/CPU0:router(config)#
commit
RP/0/RP0/CPU0:Feb 21 04:42:57.017 : config[65689]: %MGBL-LIBTARCFG-6-COMMIT : Co
nfiguration committed by user 'user_a'. Use 'show configuration commit changes
1000000033' to view the changes.
Adding a Comment to a Configuration Commit
The following example shows how to use the
commit
command with the optional
comment
keyword
and
line
argument to assign a text description to the commit operation. The comment is then displayed
in the output of the
show configuration commit list detail
command.
RP/0/RP0/CPU0:router#
configure
RP/0/RP0/CPU0:router(config)#
hostname
router2
RP/0/RP0/CPU0:router(config)#
commit comment new name for router