Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

Example: Displaying the Current Junos OS Configuration

The following example shows how you can display the current Junos configuration. To display the entire configuration:

[edit]user@host# set protocols ospf area 0.0.0.0 interface so-0/0/0 hello-interval 5[edit]user@host# show protocols {ospf {area 0.0.0.0 {interface so-0/0/0 {hello-interval 5;}}}}

Display a particular hierarchy in the configuration:

[edit]user@host# show protocols ospf area 0.0.0.0interface so-0/0/0 {hello-interval 5;}

Move down a level and display the configuration at that level:

[edit]user@host# edit protocols ospf area 0.0.0.0[edit protocols ospf area 0.0.0.0]user@host# show interface so-0/0/0 {hello-interval 5;}

Display all of the last committed configuration:

[edit]user@host# set protocols ospf area 0.0.0.0 interface so-0/0/0 hello-interval 5 [edit]user@host# commit commit complete[edit]user@host# quitexiting configuration modeuser@host> show configuration## Last commit: 2006-08-10 11:21:58 PDT by userversion 8.3protocols {ospf {area 0.0.0.0 {interface so-0/0/0 {hello-interval 5;}}}}

Published: 2012-06-25