commit-configuration tag (JUNOScript)check tag (JUNOScript)log tag (JUNOScript)at-time tag (JUNOScript)confirmed tag (JUNOScript)confirm-timeout tag (JUNOScript)synchronize tag (JUNOScript)force-synchronize tag (JUNOScript)<rpc>
<commit-configuration/>
<commit-configuration>
<check/>
</commit-configuration>
<commit-configuration>
<log>log-message</log>
</commit-configuration>
<commit-configuration>
<at-time>time-specification</at-time>
<log>log-message</log>
</commit-configuration>
<commit-configuration>
<confirmed/>
<confirm-timeout>rollback-delay</confirm-timeout>
<log>log-message</log>
</commit-configuration>
<commit-configuration>
<synchronize/>
<log>log-message</log>
</commit-configuration>
<commit-configuration>
<synchronize/>
<at-time>time-specification</at-time>
<log>log-message</log>
</commit-configuration>
<commit-configuration>
<synchronize/>
<check/>
<log>log-message</log>
</commit-configuration>
<commit-configuration>
<synchronize/>
<confirmed/>
<confirm-timeout>rollback-delay</confirm-timeout>
<log>log-message</log>
</commit-configuration>
<commit-configuration>
<synchronize/>
<force-synchronize/>
</commit-configuration>
</rpc>
Request that the JUNOScript server perform one of the variants of the commit operation on either the regular candidate configuration or a private copy of the candidate configuration (if the application emitted the <open-configuration><private/></open-configuration> tag sequence before making changes).
Some restrictions apply to the commit operation for a private copy. For example, the commit operation fails if the regular candidate configuration is locked by another user or application, or if it includes uncommitted changes made since the private copy was created. For more information, see the JUNOS CLI User Guide.
Enclose the appropriate tag in the <commit-configuration> tag element to specify the type of commit operation:
![]() |
Note: The time you specify must be more than 1 minute later than the current time on the routing platform. |
The configuration is checked immediately for syntactic correctness. If the check succeeds, the configuration is scheduled for commit at the specified time. If the check fails, the commit operation is not scheduled.
By default, the rollback occurs after 10 minutes; to set a different rollback delay, also emit the optional <confirm-timeout> tag element. To delay the rollback again (past the original rollback deadline), emit the <confirmed/> tag (enclosed in the <commit-configuration> tag element) again before the deadline passes. Include the <confirm-timeout> tag element to specify how long to delay the next rollback, or omit that tag element to use the default of 10 minutes. The rollback can be delayed repeatedly in this way.
To commit the configuration immediately and permanently after emitting the <confirmed/> tag, emit the empty <commit-configuration/> tag before the rollback deadline passes. The JUNOScript server commits the candidate configuration and cancels the rollback. If the candidate configuration is still the same as the current committed configuration, the effect is the same as recommitting the current committed configuration.
![]() |
Note: The confirmed commit operation is not available for a private copy of the configuration. |
<at-time>—Schedules the commit operation for a specified future time.
<check>—Requests verification that the configuration is syntactically correct, but does not actually commit it.
<confirmed>—Requests a commit of the candidate configuration and a rollback to the previous configuration after a short time, 10 minutes by default. Use the <confirm-timeout> tag element to specify a different amount of time.
<confirm-timeout>—Specifies the number of minutes for which the configuration remains active when the <confirmed/> tag is enclosed in the <commit-configuration> tag element.
<log>—Records a message in the file /var/log/commits when the commit operation succeeds.
<synchronize>—On dual control plane systems, requests that the candidate configuration on one control plane be copied to the other control plane, checked for correct syntax, and committed on both Routing Engines.
<force-synchronize>—On dual control plane systems, forces the candidate configuration on one control plane to be copied to the other control plane.
See Committing a Configuration.
<commit-results>, <open-configuration>, <rpc>