Prerequisites for EXEC Commands in Configuration Mode
You must have your network up and running with Cisco IOS Release 12.1(11b)E or a later release installed.
The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
Beginning in Cisco IOS Release 12.1(11b)E, EXEC-level Cisco IOS commands (such as show , clear , and debug commands) can be entered within any configuration mode (such as global configuration mode) by issuing the do command followed by the desired EXEC command. This feature provides the convenience of entering EXEC-level commands without needing to exit the current configuration mode.
You must have your network up and running with Cisco IOS Release 12.1(11b)E or a later release installed.
To execute an EXEC-level command in any configuration mode (including configuration submodes), complete the tasks in this section:
Command or Action | Purpose | |
---|---|---|
Step 1 |
enable Example:
|
Enables privileged EXEC mode.
|
Step 2 |
configure terminal Example:
|
Enters global configuration mode. |
Step 3 |
do command Example:
|
Allows you to execute any EXEC mode command from within any configuration mode. command --The EXEC command to be executed. |
To execute an EXEC-level command for a specific interface on a router, complete the task in this section:
Command or Action | Purpose | |
---|---|---|
Step 1 |
enable Example:
|
Enables privileged EXEC mode.
|
Step 2 |
configure terminal Example:
|
Enters global configuration mode. |
Step 3 |
interface type slot /port Example:
|
The syntax for this command varies according to your platform and Cisco IOS release. For complete information, refer to the “Additional References” section.
|
Step 4 |
do command Example:
|
Allows you to execute any EXEC mode command from within any configuration mode on a specific interface. command --The EXEC command to be executed. |
The following example shows how to execute the EXEC-level showinterface command from within global configuration mode:
Router(config)# do show interfaces serial 3/0
Serial3/0 is up, line protocol is up
Hardware is M8T-RS232
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input never, output 1d17h, output hang never
Last clearing of "show interface" counters never
.
.
The following example shows how to execute the EXEC-level clearvpdntunnel command from within VPDN configuration mode:
Router(config-vpdn)# do clear vpdn tunnel
Router(config-vpdn)#
Related Topic |
Document Title |
---|---|
Cisco IOS commands |
|
Cisco IOS configuration commands |
Cisco IOS Configuration Fundamentals Command Reference |
Standard |
Title |
---|---|
No new or modified standards are supported, and support for existing standards has not been modified |
-- |
MIB |
MIBs Link |
---|---|
|
To locate and download MIBs for selected platforms, Cisco software releases, and feature sets, use Cisco MIB Locator found at the following URL: |
RFC |
Title |
---|---|
No new or modified RFCs are supported, and support for existing RFCs has not been modified. |
-- |
Description |
Link |
---|---|
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. |
You cannot use the do command to execute the configureterminal EXEC command because issuing the configureterminal command changes the mode to configuration mode.