Cisco Systems A9KMOD80TR, ASR 9000, A9K24X10GETR Viewing System Information with show Commands

Models: A9KMOD80TR A9K24X10GETR ASR 9000

1 142
Download 142 pages 58.88 Kb
Page 107
Image 107
Editing Command Lines that Wrap

Chapter 5 CLI Tips, Techniques, and Shortcuts

Viewing System Information with show Commands

F I N A L D R A F T — C i s c o C o n f i d e n t i a l

The Cisco IOS XR software command reference publications provide the complete syntax for the configuration commands and describe what the no form of a command does. See the “Related Documents” section on page viii for more information.

Editing Command Lines that Wrap

The CLI provides a wraparound feature for commands that extend beyond a single line on the screen. When the cursor reaches the right margin, the command line shifts ten spaces to the left. The first ten characters of the line are not shown, but it is possible to scroll back and check the syntax at the beginning of the command. To scroll back, press Ctrl-B or the left arrow key repeatedly, or press Ctrl-A to return directly to the beginning of the line.

In the following example, the ipv4 access-listcommand entry is too long to display on one line. When the cursor reaches the end of the line, the line is shifted to the left and redisplayed. The dollar sign ($) after the command prompt indicates that the line has been scrolled to the left and the beginning of the command is hidden.

RP/0/RSP0/CPU0:router(config)# $s-list 101 permit tcp 172.31.134.5 255.255.255.0

172.31.135.0

In the next example, Ctrl-A is used to display the beginning of the command line, and the dollar sign at the end of the command line shows the command has been scrolled to the right and the end of the command is hidden.

RP/0/RSP0/CPU0:router(config)# ipv4 access-list 101 permit tcp 172.31.134.5 255.255.255.0

17$

In the next example, the right arrow key has been used to scroll to the right. Notice that dollar sign symbols appear at both ends of the line, which indicates that command information is hidden from the beginning and end of the command.

RP/0/RSP0/CPU0:router(config)# $ccess-list 101 permit tcp 172.31.134.5 255.255.255.0

172.31.$

By default, the Cisco IOS XR software uses a terminal screen 80 columns wide. To adjust for a different screen width, use the terminal width command in EXEC mode.

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

Viewing System Information with show Commands

The show commands display information about the system and its configuration. The following sections describe some common show commands and provide techniques to manage the output from those commands:

Common show Commands, page 5-6

Browsing Display Output when the --More-- Prompt Appears, page 5-6

Halting the Display of Screen Output, page 5-7

Redirecting Output to a File, page 5-7

Narrowing Output from Large Configurations, page 5-8

Filtering show Command Output, page 5-9

Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide

 

OL-17502-01

5-5

 

 

 

Page 107
Image 107
Cisco Systems A9KMOD80TR, ASR 9000 manual Viewing System Information with show Commands, Editing Command Lines that Wrap