Cisco Catalyst 2000 Configuration Handbook page 25

Catalyst series lan switching
Table of Contents

Advertisement

4 Cisco LAN Switching Configuration Handbook
c. Command history.
Note The Up and Down Arrow keys require the use of an ANSI-compatible terminal
emulator (that is, VT100).
d. Searching and filtering command output.
If a command line is entered but doesn't have the correct syntax, an error "%
Invalid input detected at '^' marker" is returned. A caret (^) appears below the
command character where the syntax error was detected.
(Optional) Set the number of commands to save (default 10). To set the history
size for the current terminal session, enter the following:
Switch# terminal history [size lines]
To set the history size for all sessions on a line, enter the following:
Switch(config-line)# history [size lines]
Recalling commands to use again.
From any input mode, each press of the Up Arrow (q) key or Ctrl-p recalls the
next older command. Each press of the Down Arrow (Q) key or Ctrl-n recalls
the next most recent command. When commands are recalled from history, they
can be edited as if you had just typed them. The show history command dis-
plays the recorded command history.
Sift through output from a show command:
Switch# show command ... | {begin | include | exclude} reg-expression
contains more lines than the terminal session can display (set using the length
parameter), it displays a screenful at a time with a More— prompt at the bottom.
To see the next screen, press the Spacebar. To advance one line, press the Return
key. To exit back out to the command line, press Ctrl-c, the Q key, or any key on
the keyboard other than Enter or the Spacebar.
To search for a specific regular expression and start the output listing there, use
the begin keyword. This can be useful if your switch has many interfaces in its
configuration. Instead of using the Spacebar to eventually find a certain configu-
ration line, you can use begin to jump right to the desired line. To display only
the lines that include a regular expression, use the include keyword. To display
all lines that don't include a regular expression, use the exclude keyword.
Sift through output from a more command:
Switch# more file-url | {begin | include | exclude} reg-expression
The more command displays the contents of a file on the switch. A typical use is
to display the startup (more nvram:startup-config) or running (more

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents