Multiple Filter Commands; Searching And Filtering Cli Output Examples - Cisco AJ732A - MDS 9134 Fabric Switch Command Reference Manual

Cisco mds 9000 family command reference guide - release 4.x (ol-18089-01, february 2009)
Hide thumbs Also See for AJ732A - Cisco MDS 9134 Fabric Switch:
Table of Contents

Advertisement

Chapter 1
CLI Overview
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m

Multiple Filter Commands

Cisco MDS NX-OS supports using multiple filters in the same show command output. This means you
can use a combination of the available filters to format the output of any show command.
The maximum number of commands allowed is four. For example, you can enter a maximum of three
Note
filter commands or two filter commands and a redirection.
Cisco MDS NX-OS also supports both filters and redirection in the same command. Now you can apply
the required filters to the output of any command, and save the output using the file redirection. See the
next section,

Searching and Filtering CLI Output Examples

The following is partial sample output of the show running-config | begin EXEC command. It begins
displaying unfiltered output with the first line that contain the pattern
switch# show running-config | begin vsan
fcdomain fcid persistent vsan 1
fcdomain fcid persistent vsan 2
fcdomain fcid persistent vsan 3
fcdomain fcid persistent vsan 101
fcdomain fcid persistent vsan 102
fcdomain fcid database
vsan 1 wwn 29:00:00:05:30:00:06:ea fcid 0x680000 dynamic
vsan 1 wwn 28:0f:00:05:30:00:06:ea fcid 0x680001 dynamic
vsan 1 wwn 28:10:00:05:30:00:06:ea fcid 0x680002 dynamic
vsan 1 wwn 28:11:00:05:30:00:06:ea fcid 0x680003 dynamic
vsan 1 wwn 28:12:00:05:30:00:06:ea fcid 0x680004 dynamic
vsan 1 wwn 28:13:00:05:30:00:06:ea fcid 0x680005 dynamic
vsan 1 wwn 28:14:00:05:30:00:06:ea fcid 0x680006 dynamic
vsan 1 wwn 28:1f:00:05:30:00:06:ea fcid 0x680007 dynamic
vsan 1 wwn 28:20:00:05:30:00:06:ea fcid 0x680008 dynamic
vsan 1 wwn 21:00:00:e0:8b:05:76:28 fcid 0x680100 area dynamic
vsan 1 wwn 20:c5:00:05:30:00:06:de fcid 0x680200 area dynamic
vsan 1 wwn 28:2b:00:05:30:00:06:ea fcid 0x680012 dynamic
vsan 1 wwn 28:2d:00:05:30:00:06:ea fcid 0x680013 dynamic
vsan 1 wwn 28:2e:00:05:30:00:06:ea fcid 0x680014 dynamic
vsan 1 wwn 28:2f:00:05:30:00:06:ea fcid 0x680015 dynamic
vsan 1 wwn 28:30:00:05:30:00:06:ea fcid 0x680016 dynamic
--More--
The following is partial sample output of the show tech-support EXEC command. It begins displaying
unfiltered output with the first line that contain the string
switch# show tech-support | begin "show interface brief"
-------------------- show interface brief ------------------
-------------------------------------------------------------------------------
Interface
-------------------------------------------------------------------------------
fc4/1
fc4/2
fc4/3
fc4/4
fc4/5
OL-18089-01, Cisco MDS NX-OS Release 4.x
"Searching and Filtering CLI Output Examples" section on page
Vsan
Admin
Admin
Mode
Trunk
Mode
1
FX
--
1
FX
--
1
FX
--
1
FX
--
1
FX
--
show interface brief
Status
FCOT
sfpAbsent
--
sfpAbsent
--
sfpAbsent
--
sfpAbsent
--
up
swl
Cisco MDS 9000 Family Command Reference
Searching and Filtering CLI Output
1-21.
.
vsan
.
Oper
Oper
Port
Mode
Speed
Channel
(Gbps)
--
--
--
--
--
--
--
--
F
1
--
1-21

Advertisement

Table of Contents
loading

Table of Contents