Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Example: Displaying the Current Junos OS Configuration

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

Set a configuration:

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

To display the current configuration:

[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.0
interface 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;}

Set and commit a 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 mode

Display the last committed configuration:

user@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;}}}
}

Modified: 2015-06-29