Saturday, July 20, 2013

Compare Juniper Config use show | compare


Light posting in weekend about compare. I ever posted about Compare Cisco Config use Diff. Actually I find that feature because I got inspired from JunOS feature.

You can compare configuration with any filename/URL of configuration file or index of rollback configuration file. Usually it's use after modify configuration and want to save or commit.

user@Juniper> configure 
Entering configuration mode

[edit]
user@Juniper# set system services ssh 

[edit]
user@Juniper# show | compare rollback 0 
[edit system services]
+    ssh;

  • it's mean compare new config after modify and current configuration (rollback 0)
  • + indicates the configuration line exists (different) after modify

or you can use : (the same result)
show | compare only it's mean compare new config after modify and current configuration (rollback 0)

[edit]
user@Juniper# show | compare 
[edit system services]
+    ssh;

Easy right! Thank you for reading and have nice weekend :-)

No comments: