O'Reilly logo

Junos® OS For Dummies®, 2nd Edition by Michael Bushong, Cathy Gadecki, Walter Goralski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying Output

The Junos CLI offers you a great deal of flexibility in displaying output. For example, you can request output in different formats, specify how to show more, and pipe (|) the output to display exactly what you want.

Choosing your format

The Junos operational mode show commands commonly include these display options: terse, brief, detail, and extensive (where the commands are listed from the least to the most displayed output). You can use these options to adjust the show output listings according to what you need.

For example, compare the output when adding terse and brief to the following show interfaces command:

wiley@netnik> show interfaces fe-1/1/1 terse
Interface Admin Link Proto Local Remote
fe-1/1/1 up up
at-1/3/0.0 up up inet 1.0.0.1 --> 1.0.0.2
iso
wiley@netnik> show interfaces fe-1/1/1 brief
Physical interface: fe-1/1/1 Enabled, Physic link is Down
Link-level type:Ethernet, MTU: 1514, Spped: 100mbps, Loopback:
Disabled, Source filtering: Disabled
Flow control : Enabled
Device flags : Present Running Down
Interface flags: Hardware-Down SNMP-Traps Internal: Ox4000
Link flags : None

Tell me more

The Junos CLI display screen automatically paginates output, including the <more> prompt as the last line. Press the h key at any <more> prompt to ask for help and list the options, such as moving forward and backward in the output, searching, and saving. Listing 3-4 shows an example of using the <more> prompt.

Listing 3-4: Options for Responding to a <more> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required