do
Syntax
do <COMMAND>
Description
Executes a manager context (#
) or operator context (>
) command from a configuration (config
) context.
Deprecated for use with
show
commands. You can execute
show
commands from a configuration context without using the
do
command.
Command context
A configuration context such as
config
or
config-vlan-10
Parameters
<COMMAND>
Specifies the manager context (
#
) or the operator context (>
) command to execute.
Authority
Administrators
Usage
The
do
command is deprecated for use with
show
commands: Although this command is still available for use with the
show
command, it might be removed from a future release. You can execute
show
commands from a configuration context without using the
do
command.
Use the
do
command to execute commands such as
clear
,
checkpoint
, and
auto-confirm
while you are in a configuration context (such as
config
or
config-vlan-10
).
For a list of the commands you can use with the
do
command, from the global configuration context (config
), enter
do
, followed by a space, and then press the
tab key twice.
Examples
Clearing LLDP neighbors from the global configuration context:
switch(config)# clear lldp neighbors % Unknown command switch(config)# do clear lldp neighbors switch(config)#