Cisco IOS Configuration Fundamentals Configuration Guide, Release 12.2SR
EXEC Commands in Configuration Mode

Table Of Contents

EXEC Commands in Configuration Mode

Feature Overview

Benefits

Restrictions

Related Documents

Supported Platforms

Supported Standards, MIBs, and RFCs

Configuration Tasks

Executing an EXEC Command in Configuration Mode

Configuration Examples

Executing an EXEC Command in Configuration Mode Examples

Command Reference


EXEC Commands in Configuration Mode


Feature History

Release
Modification

12.1(11b)E, 12.2(7)B, 12.2(7)PB, 12.0(20)SP, 12.0(20)ST, 12.0(21)S, 12.2(8)T

This feature (the do command) was introduced.


This document describes the EXEC Commands in Configuration Mode feature and contains the following sections:

Feature Overview

Supported Platforms

Supported Standards, MIBs, and RFCs

Configuration Tasks

Configuration Examples

Command Reference

Feature Overview

You can now issue EXEC-level Cisco IOS commands (such as show, clear, and debug commands) from within any configuration mode (such as global configuration mode) by issuing the do command followed by the desired EXEC command.

Benefits

This feature provides the convenience of entering EXEC-level commands without needing to exit the current configuration mode.

Restrictions

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.

Related Documents

Cisco IOS Configuration Fundamentals Command Reference

Supported Platforms

This command is supported on all platforms running the software releases (and all derivative releases) listed in the Feature History at the beginning of this document.

Determining Platform Support Through Cisco Feature Navigator

Cisco IOS software is packaged in feature sets that support specific platforms. To get updated information regarding platform support for this feature, access Cisco Feature Navigator. Cisco Feature Navigator dynamically updates the list of supported platforms as new platform support is added for the feature.

Cisco Feature Navigator is a web-based tool that enables you to quickly determine which Cisco IOS software images support a specific set of features and which features are supported in a specific Cisco IOS image. You can search by feature or release. Under the release section, you can compare releases side by side to display both the features unique to each software release and the features in common.

To access Cisco Feature Navigator, you must have an account on Cisco.com. If you have forgotten or lost your account information, send a blank e-mail to cco-locksmith@cisco.com. An automatic check will verify that your e-mail address is registered with Cisco.com. If the check is successful, account details with a new random password will be e-mailed to you. Qualified users can establish an account on Cisco.com by following the directions at http://www.cisco.com/register.

Cisco Feature Navigator is updated regularly when major Cisco IOS software releases and technology releases occur. For the most current information, go to the Cisco Feature Navigator home page at the following URL:

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

Supported Standards, MIBs, and RFCs

Standards

No new or modified standards are supported by this feature.

MIBs

No new or modified MIBs are supported by this feature.

To obtain lists of supported MIBs by platform and Cisco IOS release, and to download MIB modules, go to the Cisco MIB website on Cisco.com at the following URL:

http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml

RFCs

No new or modified RFCs are supported by this feature.

Configuration Tasks

See the following section for the configuration task for the EXEC Commands in Configuration Mode feature:

Executing an EXEC Command in Configuration Mode (optional)

Executing an EXEC Command in Configuration Mode

To execute an EXEC-level command in any configuration mode (including configuration submodes), issue the following command in global configuration mode or the mode from which you want to issue the EXEC command:

Command
Purpose

Router(config)# do command

Router(config)#


or


Router(config-if)# do command

Router(config-if)#

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

command—The EXEC command to be executed.

Configuration Examples

This section provides the following configuration examples:

Executing an EXEC Command in Configuration Mode Examples

Executing an EXEC Command in Configuration Mode Examples

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
.
.
.
Router(config)#

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

Command Reference

The following commands are introduced or modified in the feature or features documented in this module. For information about these commands, see the Cisco IOS Configuration Fundamentals Command Reference at http://www.cisco.com/en/US/docs/ios/fundamentals/command/reference/cf_book.html. For information about all Cisco IOS commands, go to the Command Lookup Tool at http://tools.cisco.com/Support/CLILookup or to the Cisco IOS Master Commands List.

do