JUNOS Internet Software Network Operations Guide: Hardware
650 ! CLI Configuration Mode
Displaying Configuration Mode Command History
To display a list of the recent commands you issued while in configuration mode,
use the
run show cli history command. By default, this command displays the last
100 commands issued in the CLI.
[edit]
user@host# run show cli history
12:40:08 -- show
12:40:17 -- edit protocols
12:40:27 -- set isis
12:40:29 -- edit isis
12:40:40 -- run show cli history
Committing a Configuration
To commit a configuration, you can do the following:
! Saving Configuration Changes and Activating the Configuration on page 650
! Saving Configuration Changes, Activating the Configuration, and Exiting
Configuration Mode on page 650
Saving Configuration Changes and Activating the Configuration
To save software configuration changes to the configuration database and activate
the configuration on the router, use the
commit configuration mode command:
[edit]
user@host# commit
commit complete
The configuration is checked for syntax errors. If the syntax is correct, the
configuration is activated and becomes the current, operational router
configuration. If the configuration contains syntax errors, a message indicates the
location of the error and the configuration is not activated. You must correct the
error before recommitting the configuration.
Saving Configuration Changes, Activating the Configuration, and Exiting
Configuration Mode
To save software configuration changes, activate the configuration on the router,
and exit configuration mode, use the
commit and-quit configuration mode
command. This command succeeds only if the configuration contains no errors.
[edit]
user@host# commit and-quit
commit complete
exiting configuration mode
user@host>