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

From Tech-Wiki
Jump to: navigation, search
(Created page with "Category:Juniper_Networks show configuration: Displays the configuration currently running (active) on the device configure: Accesses configuration mode commit confirme...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
[[Category:Juniper_Networks]]
 
[[Category:Juniper_Networks]]
  
show configuration: Displays the configuration currently running (active) on the device
+
Displays the configuration currently running (active) on the device
 +
show configuration
 +
show configuration | display detail
  
configure: Accesses configuration mode
+
Compare candidate config with active configuration
 +
show | compare
 +
show | compare rollback X
  
commit confirmed: Activates configuration changes, but returns to previous configuration automatically if you don’t actively accept the new configuration. Use: When you’re committing a configuration that you think may lock you out of the device or otherwise disrupt access to the device, use this command to guarantee that you’ll be able to log in to the device
+
Returns to the previously active device configuration
 +
rollback
  
request system snapshot: Backs up the device’s file systems, including configurations.
+
Accesses configuration mode
 +
configure
  
rollback: Returns to the previously active device configuration
+
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)

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)