2-14
Cisco SCE 2000 and SCE 1000 Software Configuration Guide
OL-7827-12
Chapter 2 Command Line Interface
Managing Command Output
The "do" Command: Executing Commands Without Exiting
There are four configuration command modes:
• Global configuration mode
• Management interface configuration mode
• Interface configuration mode
• Line configuration mode
When you are in one of these configuration modes, it is possible to execute an EXEC mode command
(such as a show command) or a privileged EXEC (such as show running-config ) without exiting to the
relevant command mode. Use the 'do' command for this purpose.
How to execute an exec mode command from a configuration command mode
Step 1 At the SCE(config)# (or SCE(config if)# ) prompt, type do <command>.
The specified command executes without exiting to the appropriate exec command mode.
The following example shows how to display the running configuration while in interface configuration
mode.
SCE(config if#) do show running-config
Managing Command Output
• Scrolling the Screen Display, page 2-15
• Filtering Command Output, page 2-15
• Redirecting Command Output to a File, page 2-15
Some commands, such as many show commands, may have many lines of output. There are several ways
of managing the command output:
• Scrolling options — When the command output is too large to be displayed all at once, you can
control whether the display scrolls line by line or refreshes the entire screen.
• Filtering options — You can filter the output so that output lines are displayed only if they include
or exclude a specified expression.
• Redirecting to a file — You can send the output to a specified file.
Note that by default, the show commands act the same as the more commands; that is, the output is
displayed interactively a single screen at a time. Use the no more (on page ) command to disable this
feature so that show commands display the complete output all at one time.