-
- Managing Configuration Files
- Configuration Generation Performance Enhancement
- Exclusive Configuration Change Access (Configuration Lock) and Access Session Locking
- Configuration Replace and Configuration Rollback
- Contextual Configuration Diff Utility
- Configuration Change Notification and Logging
- Configuration Logger Persistency
- Configuration Partitioning
EXEC Commands in Configuration Mode
Last Updated: December 3, 2010
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.
Finding Feature Information
Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Contents
•
Prerequisites for EXEC Commands in Configuration Mode
•
Restrictions for EXEC Commands in Configuration Mode
•
How to Enter EXEC Commands in Configuration Mode
•
Configuration Examples for EXEC Commands in Configuration Mode
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.
Restrictions for EXEC Commands in Configuration Mode
You cannot use the do command to execute the configure terminal EXEC command because issuing the configure terminal command changes the mode to configuration mode.
How to Enter EXEC Commands in Configuration Mode
•
Using the do Command in Configuration Mode
•
Using the do Command in Interface Configuration Mode
Using the do Command in Configuration Mode
To execute an EXEC-level command in any configuration mode (including configuration submodes), complete the tasks in this section:
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
do command
DETAILED STEPS
Using the do Command in Interface Configuration Mode
To execute an EXEC-level command for a specific interface on a router, complete the task in this section:
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
interface type slot/port
4.
do command
|
|
|
|
|---|---|---|
Step 1 |
enable Router> enable |
Enables privileged EXEC mode. • |
Step 2 |
configure terminal Router# configure terminal |
Enters global configuration mode. |
Step 3 |
interface type slot/port Router(config)# interface serial 3/0 |
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 Router(config-if)# do show interfaces serial 3/0 |
Allows you to execute any EXEC mode command from within any configuration mode on a specific interface. command—The EXEC command to be executed. |
DETAILED STEPS
Configuration Examples for EXEC Commands in Configuration Mode
•
Example: do show interface Command
•
Example: do clear vpdn tunnel Command
Example: do show interface Command
The following example shows how to execute the EXEC-level show interface 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
.
.
Example: do clear vpdn tunnel Command
The following example shows how to execute the EXEC-level clear vpdn tunnel command from within VPDN configuration mode:
Router(config-vpdn)# do clear vpdn tunnel
Router(config-vpdn)#
Additional References
Related Documents
|
|
|
|---|---|
Cisco IOS commands |
|
Cisco IOS configuration commands |
Standards
|
|
|
|---|---|
No new or modified standards are supported, and support for existing standards has not been modified |
— |
MIBs
RFCs
|
|
|
|---|---|
No new or modified RFCs are supported, and support for existing RFCs has not been modified. |
— |
Feedback