
do
Provides for the invoking of executive-mode commands from within any configuration-mode.
Syntax: do exec-cmd
exec-cmd
Specifies a legal executive-mode command to be invoked within this configuration-mode.
Description: With the exception of a small subset of commands, executive-mode commands can now be invoked within configuration modes. Both the do and run commands, entered within a configuration-mode, followed on the same command line by a legitimate executive-mode command will invoke the entered command as though it were entered from the executive-mode.
The following executive-mode commands are not allowed within configuration-mode: configure, copy, enable, disable, reload, failover, debug buba, debug squirt. All other executive-mode commands can be invoked within configuration-mode using either the do or run commands.
Use the do command to invoke a legal executive-mode command from within this configuration-mode
Factory Default: None.
Command Mode: Any configuration-mode.
Example 1: In the following example:
- The source interface for syslog packets is set to loopback 24000.
- The do show logging source-interface command invoked within the configuration-mode displays the new setting.
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#logging source-interface 1
router(config)#do show logging source-interface
Syslog source interface is loopback 1.
router(config)#
Example 2: In the following example, the ip ospf cost cost command configures the cost for interface POS 1/1/1 to 12, and the do show ip ospf interface pos 1/1/1 command displays the setting from within the interface configuration mode:
router(config)#router ospf 1
router(config-router)#network 10.1.1.0 0.0.0.255 area 1
router(config-router)#interface pos 1/1/1
router(config-if)#ip ospf cost 12
router(config-if)#do show ip ospf interface pos 1/1/1
Name: POS 1/1/1
Address: 201.1.1.10
Net type: PointToPoint
State: P To P
Area: 0.0.0.0
DR: 0.0.0.0
BDR: 0.0.0.0
Priority: 1
Cost: 12
Hello int: 10
Dead int: 40
Retrans int: 5
Transmit delay: 1
Related Commands: run
Copyright © 2005
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: navigation.fm
HTML File Name: navigation4.html
Last Updated: 02/25/05 at 14:25:22