Reference Guide 5. Debug Commands
Version 7.2 63 Mediant MSBR
5.7 debug cli delayed-command
This command allows you to run a specified command after a user-defined duration.
Syntax
# debug cli delayed-command
Command Description
<Delay Time>
{minutes|seconds}
'<Command Name>'
Configures how much time (in minutes or seconds) to wait
before running a specific command. The entire command
path must be specified, where carriage returns in the path
are denoted by semi-colons (;).
cancel <Command
Cancels the delayed timer for a specific command.
show
Displays configured delayed commands whose timers have
not yet expired.
Command Mode
Privileged User
Example
This example shows how to configure a delay timer of 30 seconds on the configure data
command, and then how to display it:
# debug cli delayed-command 30 seconds "conf d;int g 0/0; no sh"
Timer set.
# configure data
(config-data)# interface gigabitethernet 0/0
(conf-if-GE 0/0)# shutdown
(conf-if-GE 0/0)#
# debug cli delayed-command show
[1]
command: conf d;int g 0/0; no sh
expires in: 12 seconds
Before commands are executed, the status of interface GigabitEthernet 0/0 is
disabled:
# sh d ip int br
Interface IP Address Status Protocol
GigabitEthernet 0/0 0.0.0.0 Disabled Down
Fiber 0/1 unassigned Enabled Up
EFM 0/2 unassigned Connected Up
ATM 0/2 0.0.0.0 Disabled Down