Sunteți pe pagina 1din 1

JNCIA-Junos Study Guide—Part 1

when users enter configuration mode using the configure private option, which requires the commit command to be
issued at the top hierarchy level.
On devices with redundant Routing Engines, you can perform a commit synchronize, which activates and synchronizes the
configuration on both Routing Engines, as shown in the following capture:
{master:0}[edit]
user@router# commit s?
Possible completions:
synchronize Synchronize commit on both Routing Engines
Alternatively, you can configure the system to automatically perform the synchronize operation when a standard commit is
issued through the set system commit synchronize command.

Checking Configuration Syntax

When you commit a candidate configuration, the software activates the entire configuration in its current form. Use the commit
check command to validate the syntax of a candidate configuration without actually placing it into effect.

Remote Configuration Is Risky

Of course, commit check cannot catch logical errors in your configuration. What happens when you are configuring a device
remotely and make a mistake that leaves that device inaccessible to remote connections? You can solve this scenario by using
the commit confirmed command. When you issue a commit confirmed time-out command, the system starts a
timer, during which time it expects to see another commit. If a second commit does not occur within the time-out value
specified (the software supports a range of 1 to 65,535 minutes, with 10 minutes being the default), the system performs a
rollback 1, commit sequence on your behalf. After the automatic rollback, you can load the rollback 1 file to look for
your mistake. We discuss the rollback command and operation in detail later in this chapter.

Scheduled Commits

You can also schedule a commit that occurs at a specific time using the commit at time command. This command is useful
for synchronizing commits with multiple routers. These routers must have their time synchronized to the same source (likely
through NTP) for the commit operations to execute at the same time. To view and clear pending commits, use the show
system commit and clear system commit commands:
user@router> show system commit
commit requested by user via cli at 2010-05-11 21:00:00 UTC
0 2010-05-11 15:32:42 UTC by user via cli
...

© 2012 Juniper Networks, Inc. All rights reserved. User Interface Options • Chapter 2–21

S-ar putea să vă placă și