Command Aliases; Filtering The Output Of A Show Command - Foundry Networks NetIron M2404C User Manual

Metro access switches
Hide thumbs Also See for NetIron M2404C:
Table of Contents

Advertisement

Foundry NetIron M2404C and M2404F Metro Access Switches

Command Aliases

The CLI allows the user to associate a contiguous character string as an alias to any command,
optionally including specific arguments. This user-defined alias is then fully equivalent to the
command expression to which the user has associated it, in the CLI mode in which the user has
defined the alias. The user can thus set a substitute name for a command and use this name instead
of typing the command again.
For example, the user can assign an alias to the show interface 1/1/1 statistics command, by
typing:
device-name#alias sint1 show interface 1/1/1 statistics
Once the alias is assigned, the user can execute the show interface 1/1/1 statistics command by
simply typing sint1 in the mode in which it was assigned (the Privileged mode):
device-name#sint1
Octets
Collisions
Broadcast
Multicast
CRCAlignErrors
Undersize
Oversize
Fragments
Jabbers
DropEvents
Last5secInPkts
Last1minInPkts
Last5minInPkts
Last5secOutPkts
Last1minOutPkts
Last5minOutPkts
To remove the alias sint, type:
device-name#no alias sint1

Filtering the Output of a show Command

The CLI allows the filtering of associated sections of output from the show commands. Filtering
the output of a show command to match a specific regular expression (text string) provides control
over the type and amount of information that is displayed by the system. Filtering is useful, when
displaying large files, for example the configuration file.
The pipe ("|") character indicates a filtering action. If the include or exclude keyword is not
specified, include is the default.
Syntax Description
device-name#show COMMAND | [include | exclude] REGEXP
Argument Description
COMMAND
Getting Started with the CLI
24512
0
0
0
0
0
0
0
0
0
50
353
353
0
0
0
Any CLI command.
© 2008 Foundry Networks, Inc.
Using the Command Line Interface (Rev. 03)
In/OutPkts 64
In/OutPkts 65-127
In/OutPkts 128-255
In/OutPkts 256-511
In/OutPkts 512-1023
In/OutPkts 1024-MaxFrameSize
TotalInPkts
TotalIn/OutPkts
DropCount
Last5secInBps
Last1minInBps
Last5minInBps
Last5secOutBps
Last1minOutBps
Last5minOutBps
383
0
0
0
0
0
383
383
0
409
408
81
0
0
0
Page 10 of 12

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netiron m2404f

Table of Contents