Difference between revisions of "Editing, Saving and (auto)reverting configuration"

From Tech-Wiki
Jump to: navigation, search
 
Line 4: Line 4:
 
  show configuration
 
  show configuration
 
  show configuration | display detail
 
  show configuration | display detail
 +
 +
Compare candidate config with active configuration
 +
show | compare
 +
show | compare rollback X
 +
 +
Returns to the previously active device configuration
 +
rollback
  
 
Accesses configuration mode
 
Accesses configuration mode
 
  configure
 
  configure
 +
 +
Check configuration before a commit
 +
commit check
 +
 +
Auto commit at a particular time
 +
commit at 02:00:00
 +
 +
Delete pending auto commit
 +
clear system commit
 +
 +
Show pending auto commits and commits history
 +
show system commit
  
 
Activates configuration changes
 
Activates configuration changes
Line 13: Line 32:
 
Activates changes but returns to previous configuration automatically if you don’t actively accept the new configuration. Useful when  committing may lock you out of the device or otherwise disrupt access to the device
 
Activates changes but returns to previous configuration automatically if you don’t actively accept the new configuration. Useful when  committing may lock you out of the device or otherwise disrupt access to the device
 
  commit confirmed
 
  commit confirmed
 +
 +
Load some configuration snippets from file
 +
load override /var/tmp/router-config
 +
commit
 +
 +
Load snippets from clipboard
 +
load merge terminal
 +
[Type ^D at a new line to end input]
 +
...
 +
commit
  
 
Backs up the device’s file systems, including configurations
 
Backs up the device’s file systems, including configurations
Line 27: Line 56:
 
  set system archival configuration transfer interval 1440
 
  set system archival configuration transfer interval 1440
 
  set system archival configuration transfer-on-commit (backup on every commit instead)
 
  set system archival configuration transfer-on-commit (backup on every commit instead)
 
Returns to the previously active device configuration
 
rollback
 

Latest revision as of 22:36, 9 October 2016


Displays the configuration currently running (active) on the device

show configuration
show configuration | display detail

Compare candidate config with active configuration

show | compare
show | compare rollback X

Returns to the previously active device configuration

rollback

Accesses configuration mode

configure

Check configuration before a commit

commit check

Auto commit at a particular time

commit at 02:00:00

Delete pending auto commit

clear system commit

Show pending auto commits and commits history

show system commit

Activates configuration changes

commit

Activates changes but returns to previous configuration automatically if you don’t actively accept the new configuration. Useful when committing may lock you out of the device or otherwise disrupt access to the device

commit confirmed

Load some configuration snippets from file

load override /var/tmp/router-config
commit

Load snippets from clipboard

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

Backs up the device’s file systems, including configurations

request system snapshot

Manually backup active configuration in your homedir

run show configuration | save config.txt

Manually backup candidate configuration in your homedir

save config.txt

Auto backup of configuration once a day to remote backup machine

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 (backup on every commit instead)