commit
Syntax
commit <activate> <and-quit> <at “string”> <check> <comment <comment-string> <confirmed> <peers-synchronize> <prepare> <scripts> <synchronize | no-synchronize> < | >
Description
Commit the set of changes to the database and cause the changes to take operational effect.
The fast-synchronize
option is not supported
in the QFX Series Virtual Chassis.
The peers-synchronize
option is not supported in
SRX Series Firewalls.
Beginning in Junos OS 12.3, it is possible that FPCs brought
offline using the request chassis fpc slot fpc-slot offline
operational-mode CLI command can come online during
a configuration commit or power-supply replacement procedure. As an
alternative, use the set fpc fpc-slot power
off
configuration-mode command at the [edit chassis]
hierarchy level to ensure that the FPCs remain offline.
In Junos OS Evolved, if an FPC or PIC is brought offline, neither
will be started when you enter a commit
command that configures
an element of the offline FPC or PIC.
Options
none | Execute the commit command without any options to commit the configuration changes to the configuration database. |
activate (Optional) | Complete commit in two steps of preparing the configuration for commit and later activating the configuration. This enables you configure a number of devices and simultaneously activate the configurations on multiple devices. |
and-quit (Optional) | Commit the configuration and, if the configuration contains no errors and the commit succeeds, exit from configuration mode. |
at string | (Optional) Save software configuration changes and activate
the configuration at a future time, or upon reboot. The variable string is
|
check | (Optional) Verify the syntax of the configuration, but do not activate it. |
comment comment-string | (Optional) Add a comment that describes the committed
configuration. The comment can be as long as 512 bytes and must be
typed on a single line. You cannot include a comment with the |
confirmed in minutes | (Optional) Require that the commit be confirmed within the specified amount of time.
|
no-synchronize | (Optional)
Configure the
|
peers-synchronize | (Optional) Configure the commit command to automatically perform a peers-synchronize action between peers. The local peer (or requesting peer) on which you enable the peers-synchronize statement copies and loads its configuration to the remote (or responding) peer. Each peer then performs a syntax check on the configuration file being committed. If no errors are found, the configuration is activated and becomes the current operational configuration on both peers. |
synchronize | (Optional)
If your router has two Routing Engines, you can manually direct one
Routing Engine to synchronize its configuration with the other by
issuing the The synchronize option has the following two additional options:
Note:
It can happen that the Note:
When you issue the The responding Routing Engine must use Junos OS Release 5.0 or later. |
prepare | (Optional) Prepare the configuration to activate at a later stage. During the preparation stage, all the required files and databases are generated and the configuration is validated. A file is created that indicates if the commit is pending for activation. In the event of failure during the preparation stage, the log message commit preparation failed is generated. |
scripts | (Optional) Commit newly enabled scripts during the commit operation and push scripts to the other Routing Engine. |
| (pipe) | (Optional)
Use the | (pipe)) options to filter the output of the |
Additional Information
Beginning in Junos OS 12.3, it is possible that FPCs brought
offline using the request chassis fpc slot fpc-slot offline
operational-mode CLI command can come online during
a configuration commit or power-supply replacement procedure. As an
alternative, use the set fpc fpc-slot power
off
configuration-mode command at the [edit chassis]
hierarchy level to ensure that the FPCs remain offline.
| display detail
—(Optional) Monitors the commit
process.
In Junos OS Release 10.4 and later, if the number of commit
details or messages exceeds a page when used with the | display
detail
pipe option, the more
pagination option on
the screen is no longer available. Instead, the messages roll up on
the screen by default, just like using the commit
command
with the | no more
pipe option.
Required Privilege Level
configure—To enter configuration mode.
If you are using Junos OS in a Common Criteria
environment, system log messages are created whenever a secret
attribute is changed (for example, password changes or changes to
the RADIUS shared secret). These changes are logged during the following
configuration load operations:
load merge load replace load override load update
For more information, see the Secure Configuration Guide for Common Criteria and Junos-FIPS
Release Information
Command introduced before Junos OS Release 7.4.
Option synchronize scripts
introduced in Junos OS
Release 13.2.
Option no-synchronize
introduced in Junos OS Release
17.2R1