Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


commit prepare


Hierarchy Level


Prepare for an upcoming commit activation. Prepare the configurations that can be activated 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.



(Optional) Commit the configuration and, if the configuration contains no errors and the commit succeeds, exit from configuration mode.


(Optional) Do not synchronize the commit. Configure the commit prepare statement to run without synchronization.


(Optional) Synchronize the commit on remote peers.


(Optional) Synchronize the commit on both Routing Engines.

Required Privilege Level

configure—To enter configuration mode.

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 17.3.