[an error occurred while processing this directive][an error occurred while processing this directive]

Activating a JUNOS Configuration but Requiring Confirmation

When you commit the current candidate configuration, you can require an explicit confirmation for the commit to become permanent. This is useful if you want to verify that a configuration change works correctly and does not prevent access to the router. If the change prevents access or causes other errors, the router automatically returns to the previous configuration and restores access after the rollback confirmation timeout passes. This feature is called automatic rollback.

To commit the current candidate configuration but require an explicit confirmation for the commit to become permanent, use the commit confirmed configuration mode command:

[edit]user@host# commit confirmed commit confirmed will be automatically rolled back in 10 minutes unless confirmedcommit complete#commit confirmed will be rolled back in 10 minutes[edit]user@host#

Once you have verified that the change works correctly, you can keep the new configuration active by entering a commit or commit check command within 10 minutes of the commit confirmed command. For example:

[edit]user@host# commit check commit confirmed will be automatically rolled back in 10 minutes unless confirmedcommit complete#commit confirmed will be rolled back in 10 minutes[edit]user@host#

If the commit is not confirmed within a certain time (10 minutes by default), JUNOS Software automatically rolls back to the previous configuration and a broadcast message is sent to all logged-in users.

To show when a rollback is scheduled after a commit confirmed command, enter the show system commit command. For example:

user@host>show system commit0 2005-01-05 15:00:37 PST by root via cli commit confirmed, rollback in 3mins

Like the commit command, the commit confirmed command verifies the configuration syntax and reports any errors. If there are no errors, the configuration is activated and begins running on the router.

Figure 1 illustrates how the commit confirmed command works.

Figure 1: Confirm a Configuration

Image h1414.gif

To change the amount of time before you have to confirm the new configuration, specify the number of minutes when you issue the command:

[edit]user@host# commit confirmed minutes commit complete[edit]user@host#

Published: 2010-04-27

[an error occurred while processing this directive]