Searching For Text Using Pattern Matching With Show Command - HP Aruba JL253A Management And Configuration Manual

For arubaos-switch 16.08
Table of Contents

Advertisement

Displays information on the activity on all switch ports (see "Viewing Port Status and Configuring Port
Parameters" in the "Port Status and Configuration" ).
show interfaces-display
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.

Searching for text using pattern matching with show command

Selected portions of the output are displayed, depending on the parameters chosen.
Syntax:
show {< command option > | < include | exclude | begin >} <regular expression>
Uses 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
exclude
begin
NOTE: Pattern matching is case-sensitive.
Following are examples of what portions of the running config file display depending on the option chosen.
Pattern matching with include option
switch(config)# show run | include ipv6
ipv6 enable
ipv6 enable
ipv6 access-list "EH-01"
switch(config)#
1
Displays only lines that contain "ipv6".
Pattern matching with exclude option
switch(config)# show run | exclude ipv6
Running configuration:
; J9299A Configuration Editor; Created on release #WB.15.XX
hostname "Switch"
snmp-server community "notpublic" Unrestricted
vlan 1
name "DEFAULT_VLAN"
untagged A1-A24,B1-B20
ip address dhcp-bootp
Chapter 13 Troubleshooting
Only the lines that contain the matching pattern are displayed in the output.
Only the lines that contain the matching pattern are not displayed in the output.
The display of the output begins with the line that contains the matching pattern.
1
1
539

Advertisement

Table of Contents
loading

Table of Contents