EasyManuals Logo

Cisco mds 9124 - fabric switch User Manual

Cisco mds 9124 - fabric switch
1550 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #94 background imageLoading...
Page #94 background image
Send documentation comments to mdsfeedback-doc@cisco.com
1-20
Cisco MDS 9000 Family Command Reference
OL-16217-01, Cisco MDS SAN-OS Release 3.x
Chapter 1 CLI Overview
Searching and Filtering CLI Output
Searching and Filtering CLI Output
The Cisco MDS SAN-OS CLI provides ways of searching through large amounts of command output
and filtering output to exclude information you do not need. These features are enabled for the show
command, which generally displays large amounts of data.
Note The show command is always entered in EXEC mode.
When output continues beyond what is displayed on your screen, the Cisco MDS SAN-OS CLI displays
a --More-- prompt. Pressing Return displays the next line; pressing the Spacebar displays the next
screen of output.
To search the show command output, use the following command in EXEC mode:
Note Cisco MDS SAN-OS documentation generally uses the vertical bar to indicate a choice of syntax.
However, to search the output of the show command, you need to enter the pipe character (the vertical
bar). In this section the pipe appears in bold (|) to indicate that you should enter this character.
To filter show command output, use one of the following commands in EXEC mode:
You can enter the Ctrl-Z key combination at any time to interrupt the output and return to EXEC mode.
For example, you can enter the show running-config | begin hostname command to start the display of
the running configuration file at the line containing the hostname setting, then use Ctrl-Z when you get
to the end of the information you are interested in capturing. See the
“Searching and Filtering CLI
Output Examples” section on page 1-21.
Command Purpose
switch# show any-command | begin pattern
Begins unfiltered output of the show command with
the first line that contains the pattern.
Command Purpose
switch# show any-command | exclude pattern
Displays output lines that do not contain the pattern.
switch# show any-command | include pattern
Displays output lines that contain the pattern.
switch# show any-command | include “pattern1|pattern2
Displays output lines that contain either pattern1 or
pattern2.
Note The alternation patterns, pattern1|pattern2,
must appear within double quotes.
switch# show any-command | include pattern [next
number] [prev number]
Displays output lines that contain the pattern. Optionally,
using the next or prev parameter followed by a number also
displays the designated number of lines.
switch# show any-command | count number
Displays the number lines of output in the display.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco mds 9124 - fabric switch and is the answer not in the manual?

Cisco mds 9124 - fabric switch Specifications

General IconGeneral
BrandCisco
Modelmds 9124 - fabric switch
CategorySwitch
LanguageEnglish

Related product manuals