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 Command Line Reference Guide 9.10(0.0)

PDF

Filtering show Commands

To find specific information, display certain information only or begin the command output at the first instance of a regular expression or phrase, you can filter the display output of a show command.

When you execute a show command, and then enter a pipe ( | ), one of the following parameters, and a regular expression, the resulting output either excludes or includes those parameters.

  • NOTE: The Dell Networking OS accepts a space before or after the pipe, no space before or after the pipe, or any combination. For example: Dell#command | grep TenGig|except regular-expression | find regular-expression .
except displays only the text that does not match the pattern (or regular expression)
find searches for the first occurrence of a pattern
grep displays text that matches a pattern.
no-more does not paginate the display output
save copies the output to a file for future use

The grep command option has an ignore-case sub-option that makes the search 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 the search result above because it only searches for instances containing a non-capitalized “ethernet”.
  • show run | grep Ethernet ignore-case returns instances containing both “Ethernet” and “ethernet”.

Displaying All Output

To display the output all at once (not one screen at a time), use the no-more option after the pipe. This operation is similar to the terminal length screen-length command except that the no-more option affects the output of just the specified command. For example:

Dell#show running-config|no-more

Filtering the Command Output Multiple Times

You can filter a single command output multiple times. To filter a command output multiple times, place the save option as the last filter. For example:

Dell# command | grep regular-expression | except regular-expression | grep other-regular-expression | find regular-expression | no-more | 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: <>"(", ")", "\"