Pattern Matching When Using The Show Command - HP PROCURVE 2520 Management And Configuration Manual

Hewlett-packard switch user manual
Hide thumbs Also See for PROCURVE 2520:
Table of Contents

Advertisement

Syntax: show boot-history

Pattern Matching When Using the Show Command

The pattern matching option with the show command provides the ability to
do searches for specific text. Selected portions of the output are displayed
depending on the parameters chosen.
N o t e
Pattern matching is case-sensitive.
Below are examples of what portions of the running config file display
depending on the option chosen.
ProCurve(config)# show run | include ipv6
ipv6 access-list "EH-01"
ProCurve(config)#
Figure C-22. Example of Pattern Matching with Include Option
Displays the same information as the show interfaces command
and dynamically updates the output every three seconds. Press
Ctrl + C to stop the dynamic updates of system information.
Use the Arrow keys to view information that is off the screen.
Syntax: show <command option> | <include | exclude | begin > <regular
expression>
Use matching pattern searches to display selected portions of
the output from a show command. There is no limit to the
number of characters that can be matched. Only regular
expressions are permitted; symbols such as the asterisk
cannot be substituted to perform more general matching.
include Only the lines that contain the matching pattern are
displayed in the output.
exclude: Only the lines that contain the matching pattern are
not displayed in the output.
begin: The display of the output begins with the line that
contains the matching pattern.
ipv6 enable
ipv6 enable
Viewing Switch Configuration and Operation
Displays only lines that contain "ipv6".
Troubleshooting
C-63

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents