The "Do" Command: Executing Commands Without Exiting; Managing Command Output - Cisco SCE2020-4XGBE-SM Configuration Manual

Software configuration guide
Table of Contents

Advertisement

Managing Command Output

The "do" Command: Executing Commands Without Exiting

There are four configuration command modes:
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
Some commands, such as many show commands, may have many lines of output. There are several ways
of managing the command output:
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.
Cisco SCE 2000 and SCE 1000 Software Configuration Guide
2-14
Global configuration mode
Management interface configuration mode
Interface configuration mode
Line configuration mode
Scrolling the Screen Display, page 2-15
Filtering Command Output, page 2-15
Redirecting Command Output to a File, page 2-15
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.
Chapter 2
Command Line Interface
OL-7827-12

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sce 2000Sce 1000

Table of Contents