Viewing more information on switch operation

Use the following commands to display additional information on switch operation for troubleshooting purposes.

Syntax:

show boot-history

Displays the crash information saved for each management module on the switch.

Syntax:

show history

Displays the current command history. This command output is used for reference or when you want to repeat a command.

Syntax:

show system-information

Displays globally configured parameters and information on switch operation.

Syntax:

show version

Displays the software version currently running on the switch and the flash image from which the switch booted (primary or secondary.)

Syntax:

show interfaces

Displays information on the activity on all switch ports.

Syntax:

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

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.


[NOTE: ]

NOTE: Pattern matching is case-sensitive.


Examples:

Below are examples of what portions of the running config file display depending on the option chosen.

Pattern matching with include option

Pattern matching with include option

Pattern matching with exclude option

Pattern matching with exclude option

Pattern matching with begin option

Pattern matching with begin option

The show arp command and pattern matching with the include option is an example of the show arp command output, and then the output displayed when the include option has the IP address of 15.255.128.1 as the regular expression.

The show arp command and pattern matching with the include option

The show arp command and pattern matching with the include option