Jump to content
Toggle menu
  • 51 articles
  • 24 files
  • 4 users
  • 750 edits
Tech-Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Editing, Saving and (auto)reverting configuration

From Tech-Wiki


Common Junos configuration-mode commands for reviewing, comparing, committing, rolling back and backing up configuration.

Review configuration

>_Show the active configuration
show configuration
show configuration | display detail

Compare candidate and active configuration

>_Compare pending changes
show | compare

Compare against an earlier rollback:

>_Compare with a rollback
show | compare rollback X

Enter configuration mode

>_Configuration mode
configure

Validate and commit

>_Check the candidate configuration
commit check

Commit immediately:

>_Commit
commit

Schedule a commit:

>_Commit at a specific time
commit at 02:00:00

Show commit history and pending scheduled commits:

>_Show commit status/history
show system commit

Cancel a pending scheduled commit:

>_Clear pending commit
clear system commit

Commit confirmed

✓
Useful for remote changes
commit confirmed automatically returns to the previous configuration if the new commit is not explicitly confirmed within the configured period.
>_Commit with automatic rollback protection
commit confirmed

Roll back

>_Return to a previous candidate configuration
rollback

Load configuration

Load a configuration from a file:

>_Load an override file
load override /var/tmp/router-config
commit

Load configuration from the terminal:

load merge terminal
[Type ^D at a new line to end input]
...
commit

Back up configuration

Create a system snapshot:

>_System snapshot
request system snapshot

Save the active configuration:

>_Save active configuration
run show configuration | save config.txt

Save the candidate configuration:

>_Save candidate configuration
save config.txt

Archive configuration automatically

set system archival configuration archive-sites ftp://admin:password@host/archives
set system archival configuration transfer interval 1440
set system archival configuration transfer-on-commit
!
Protect archive credentials
The original example includes credentials in an FTP URL. Use the secure transport and credential-handling approach approved for the target environment.

See also