Cisco Systems WSC2960X48TSL Searching and Filtering Output of show and more Commands, access-list

Models: WSC2960X24TSL C2960XSTACK WSC2960X24PDL WSC2960X24TSLL WSC2960X24PSL WSC2960X48TSL WSC2960X24TDL

1 112
Download 112 pages 36.97 Kb
Page 22
Image 22
access-list

Using the Command-Line Interface

Searching and Filtering Output of show and more Commands

DETAILED STEPS

 

Command or Action

Purpose

Step 1

access-list

Displays the global configuration command entry that extends beyond

 

 

one line.

Example:

Switch(config)# access-list 101 permit tcp

10.15.22.25255.255.255.0 10.15.22.35

Switch(config)# $ 101 permit tcp

10.15.22.25255.255.255.0 10.15.22.35

255.25

Switch(config)# $t tcp 10.15.22.25 255.255.255.0 131.108.1.20 255.255.255.0 eq

Switch(config)# $15.22.25 255.255.255.0

10.15.22.35255.255.255.0 eq 45

When the cursor first reaches the end of the line, the line is shifted ten spaces to the left and redisplayed. The dollar sign ($) shows that the line has been scrolled to the left. Each time the cursor reaches the end of the line, the line is again shifted ten spaces to the left.

Step 2

Ctrl-A

Example:

Switch(config)# access-list 101 permit tcp 10.15.22.25 255.255.255.0 10.15.2$

Checks the complete syntax.

The dollar sign ($) appears at the end of the line to show that the line has been scrolled to the right.

Step 3

Return key

Execute the commands.

The software assumes that you have a terminal screen that is 80 columns wide. If you have a different width, use the terminal width privileged EXEC command to set the width of your terminal.

Use line wrapping with the command history feature to recall and modify previous complex command entries.

Searching and Filtering Output of show and more Commands

You can search and filter the output for show and more commands. This is useful when you need to sort through large amounts of output or if you want to exclude output that you do not need to see. Using these commands is optional.

SUMMARY STEPS

1.{show more} command {begin include exclude} regular-expression

DETAILED STEPS

 

Command or Action

Purpose

Step 1

{show more} command {begin include exclude}

Searches and filters the output.

 

regular-expression

 

 

Catalyst 2960-X Switch Network Management Configuration Guide, Cisco IOS Release 15.0(2)EX

10

OL-29044-01

Page 22
Image 22
Cisco Systems WSC2960X48TSL Searching and Filtering Output of show and more Commands, access-list, one line, Summary Steps