Getting Started
©2008 Allied Telesis Inc. All rights reserved.
1.26
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
Software Version 5.2.1
Controlling “show” command output
You can control the output of
show
commands by using the | and > tokens in either of the
following ways:
■
To display only part of the output, follow the command with
|
and then other keywords
(see
Output Modifiers
below)
■
To save the output to a file, follow the command with
>
filena
m
e
Using the ? after typing the
show
command displays the following information about these
tokens:
awplus#
show users
| Output modifiers
> Output redirection
Output Modifiers
Type the | (vertical bar) to use
Output modifiers
.
begin Begin with the first line that contains matching output
exclude Exclude lines that contain matching output
include Include lines that contain matching output
redirect Redirect output
Begin
The
begin
parameter causes the display to begin at the first line that contains the input string.
awplus#
show run | begin eth0
...skipping
interface eth0
ip address 192.168.14.1
!!
line con 0
login
line vty 0 4
login
!
end
Exclude
The
exclude
parameter excludes all lines of output that contain the input string. In the following
output all lines containing the word “input” are excluded:
awplus#
show interface eth0 | exclude input
Interface eth0
Scope: both
Hardware is Ethernet, address is 192.168.14.1
index 3 metric 1 mtu 1500 <UP,BROADCAST,RUNNING,MULTICAST>
VRF Binding: Not bound
Label switching is disabled
No Virtual Circuit configured
Administrative Group(s): None
DSTE Bandwidth Constraint Mode is MAM