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> ...

Get Junos® OS For Dummies®, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.