Omitir para ir al contenido principal
  • Hacer pedidos rápida y fácilmente
  • Ver pedidos y realizar seguimiento al estado del envío
  • Cree y acceda a una lista de sus productos
  • Administre sus sitios, productos y contactos de nivel de producto de Dell EMC con Administración de la empresa.

Dell PowerEdge FN I/O Module Configuration Guide 9.10(0.0)

PDF

Filtering show Command Outputs

Filter the output of a show command to display specific information by adding | [except | find | grep | no-more | save] specified_text after the command.

The variable specified_text is the text for which you are filtering and it IS case sensitive unless you use the ignore-case sub-option.

Starting with Dell Networking OS version 7.8.1.0, the grep command accepts an ignore-case sub-option that forces the search to case-insensitive. For example, the commands:
  • show run | grep Ethernet returns a search result with instances containing a capitalized “Ethernet,” such as interface TenGigabitEthernet 0/1.
  • show run | grep ethernet does not return that search result because it only searches for instances containing a non-capitalized “ethernet.”
  • show run | grep Ethernet ignore-case returns instances containing both “Ethernet” and “ethernet.”
The grep command displays only the lines containing specified text. The following example shows this command used in combination with the show linecard all command.
Dell(conf)#do show stack-unit all stack-ports all pfc details | grep 0
                                    stack unit 0 stack-port all
                                    	0 Pause Tx pkts, 0 Pause Rx pkts
                                    	0 Pause Tx pkts, 0 Pause Rx pkts
                                    	0 Pause Tx pkts, 0 Pause Rx pkts
                                    	0 Pause Tx pkts, 0 Pause Rx pkts
                                    	0 Pause Tx pkts, 0 Pause Rx pkts
                                    	0 Pause Tx pkts, 0 Pause Rx pkts
                                 
  • NOTE: Dell accepts a space or no space before and after the pipe. To filter a phrase with spaces, underscores, or ranges, enclose the phrase with double quotation marks.

The except keyword displays text that does not match the specified text. The following example shows this command used in combination with the show linecard all command.

Example of the except Keyword

Dell(conf)#do show stack-unit all stack-ports all pfc details | except 0
                                 
                                 Admin mode is On
                                 Admin is enabled
                                 Local is enabled
                                 Link Delay 65535 pause quantum
                                 Dell(conf)#
                                 
                              

The find keyword displays the output of the show command beginning from the first occurrence of specified text. The following example shows this command used in combination with the show linecard all command.

Example of the find Keyword

Dell(conf)#do show stack-unit all stack-ports all pfc details | find 0
                                 stack unit 0 stack-port all
                                 Admin mode is On
                                 Admin is enabled
                                 Local is enabled
                                 Link Delay 65535 pause quantum
                                 0 Pause Tx pkts, 0 Pause Rx pkts
                                 Dell(conf)#
                                 
                              

The no-more command displays the output all at once rather than one screen at a time. This is similar to the terminal length command except that the no-more option affects the output of the specified command only.

The save command copies the output to a file for future reference.

  • NOTE: You can filter a single command output multiple times. The save option must be the last option entered. For example: Dell# command | grep regular-expression | except regular-expression | grep other-regular-expression | find regular-expression | save .

Califique este contenido

Preciso
Útil
Fácil de comprender
¿Este artículo fue útil?
0/3000 characters
  Proporcione calificaciones (1 a 5 estrellas).
  Proporcione calificaciones (1 a 5 estrellas).
  Proporcione calificaciones (1 a 5 estrellas).
  Seleccione si el artículo fue útil o no.
  Los comentarios no pueden contener estos caracteres especiales: <>"(", ")", "\"