Guest

Cisco IOS Software Releases 12.2 Special and Early Deployments

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

do


EXEC Commands in Configuration Mode


Feature History

Release
Modification

12.1(11b)E

This feature was introduced.

12.0(20)S

This feature was integrated into Cisco IOS Release 12.0(20)S.

12.0(20)SP

This feature was integrated into Cisco IOS Release 12.0(20)SP.

12.0(20)ST

This feature was integrated into Cisco IOS Release 12.0(20)ST.

12.1(11)EC

This feature was integrated into Cisco IOS Release 12.1(11)EC.

12.2(15)B

This feature was integrated into Cisco IOS Release 12.2(15)B.

12.2(8)T

This feature was integrated into Cisco IOS Release 12.2(8)T.


This document describes the EXEC Commands in Configuration Mode feature in Cisco IOS Release 12.2(15)B 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 global configuration mode or other modes by issuing the do command followed by the 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 Configuration Guide, Release 12.1

Cisco IOS Configuration Fundamentals Command Reference, Release 12.1

Supported Platforms

Catalyst 5000 family ATM modules

Catalyst 6000 family ATM modules

Catalyst 6000 family switches

Catalyst 8510 switch routers

Catalyst 8540 switch routers

Cisco ONS 15000 series routers

Cisco 7100 series

Cisco 7200 series

Cisco 7500 series

Cisco 7600 Series Internet Router

LightStream 1010 switch routers

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 configuration mode (or other mode), 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)#

Enables you to enter an EXEC level command from within another 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

This section documents the new command introduced by this feature. All other commands used with this feature are documented in the Cisco IOS Release 12.1 command reference publications.

do

do

To execute an EXEC-level command from global configuration mode or other configuration mode, use the do command in the required configuration mode.

do command

Syntax Description

command

The EXEC command to be executed.


Defaults

No default behavior or values.

Command Modes

Global configuration or any other configuration mode or submode from which you are executing the EXEC-level command

Command History

Release
Modification

12.1(11b)E

This command was introduced.

12.0(20)S

This feature was integrated into Cisco IOS Release 12.0(20)S.

12.0(20)SP

This feature was integrated into Cisco IOS Release 12.0(20)SP.

12.0(20)ST

This feature was integrated into Cisco IOS Release 12.0(20)ST.

12.1(11)EC

This feature was integrated into Cisco IOS Release 12.1(11)EC.

12.2(15)B

This feature was integrated into Cisco IOS Release 12.2(15)B.

12.2(8)T

This feature was integrated into Cisco IOS Release 12.2(8)T.


Usage Guidelines

Use this command to execute EXEC commands such as show, clear, and debug commands from global configuration mode or other configuration modes or submodes.

Examples

The following example shows how to execute the EXEC-level show interfaces 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)#