Configuration Fundamentals Configuration Guide, Cisco IOS Release 15SY
EXEC Commands in Configuration Mode
Downloads: This chapterpdf (PDF - 88.0KB) The complete bookPDF (PDF - 0.98MB) | The complete bookePub (ePub - 0.98MB) | Feedback

EXEC Commands in Configuration Mode

EXEC Commands in Configuration Mode

Last Updated: December 6, 2012

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 docommand 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 caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module.

Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.

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.

How to Enter EXEC Commands in 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
  Command or Action Purpose
Step 1
enable


Example:

Router> enable

 

Enables privileged EXEC mode.

  • Enter your password if prompted.
 
Step 2
configure terminal


Example:

Router# configure terminal

 

Enters global configuration mode.

 
Step 3
do command


Example:

Router(config)# configuration command

 

Allows you to execute any EXEC mode command from within any configuration mode.

command --The EXEC command to be executed.

 

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


DETAILED STEPS
  Command or Action Purpose
Step 1
enable


Example:

Router> enable

 

Enables privileged EXEC mode.

  • Enter your password if prompted.
 
Step 2
configure terminal


Example:

Router# configure terminal

 

Enters global configuration mode.

 
Step 3
interface type slot /port


Example:

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.

  • The slot/port argument identifies the slot and port on the router where you are entering do commands.
 
Step 4
do command


Example:

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.

 

Configuration Examples for EXEC Commands in Configuration Mode

Example do show interface Command

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
.
.

Example do clear vpdn tunnel Command

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)#

Additional References

Related Documents

Related Topic

Document Title

Cisco IOS commands

Cisco IOS Master Commands List, All Releases

Cisco IOS configuration commands

Cisco IOS Configuration Fundamentals Command Reference

Standards

Standard

Title

No new or modified standards are supported, and support for existing standards has not been modified

--

MIBs

MIB

MIBs Link

  • No new or modified MIBs are supported, and support for existing MIBs has not been modified.

To locate and download MIBs for selected platforms, Cisco software releases, and feature sets, use Cisco MIB Locator found at the following URL:

http://www.cisco.com/go/mibs

RFCs

RFC

Title

No new or modified RFCs are supported, and support for existing RFCs has not been modified.

--

Technical Assistance

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.

http://www.cisco.com/cisco/web/support/index.html

Cisco and the Cisco Logo are trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and other countries. A listing of Cisco's trademarks can be found at www.cisco.com/go/trademarks. Third party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1005R)

Restrictions for EXEC Commands in Configuration Mode

You cannot use the do command to execute the configureterminal EXEC command because issuing the configureterminalcommand changes the mode to configuration mode.

Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R)

Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.

© 2012 Cisco Systems, Inc. All rights reserved.