Tuesday, July 30, 2013

Juniper Rollback Configuration

JunOS from Juniper Operating System has best management config, due to internal archive config feature. By default JunOS will save 49 archive config, it's very usefull to always save config whenever you modify. The trigger is 'commit' or when execute and save config. The feature is same with Cisco archive config but need to enable first before use.

For rollback, you can rollback anytime, please find demo capture.


user@My_Juniper> configure 
Entering configuration mode

[edit]
user@My_Juniper# set system host-name Juniper 

[edit]
user@My_Juniper# show | compare 
[edit system]
-  host-name My_Juniper;
+  host-name Juniper;

[edit]
user@My_Juniper# commit check 
configuration check succeeds

[edit]
user@My_Juniper# commit     
commit complete

[edit]
user@Juniper# rollback ?  
Possible completions:
  <[Enter]>            Execute this command
  0                    2013-07-30 06:41:27 UTC by user via cli 
  1                    2013-07-30 05:19:50 UTC by user via cli 
  2                     
  3                    
  4                    
  5                    
  6                    
  7                    
  8                     
  9                    
  10                   
  11                   
  ..
  ..
  ..
  48                   
  49                    
  |                    Pipe through a command
  
[edit]
user@Juniper# show | compare rollback 1 
[edit system]
-  host-name My_Juniper;
+  host-name Juniper;

[edit]
user@Juniper# rollback 1 
load complete

[edit]
user@Juniper# show | compare 
[edit system]
-  host-name Juniper;
+  host-name My_Juniper;

[edit]
user@Juniper# commit check 
configuration check succeeds

[edit]
user@Juniper# commit 
commit complete

[edit]
user@My_Juniper# exit 
Exiting configuration mode

user@My_Juniper>


How about external backup configuration, JunOS also has internal function for backup configuration use several protocol ftp, http or scp.

Hope it's usefull for you, enjoy reading.

No comments: