Chapter 45: CLI Overview
STANDARD Revision 1.0
C4® CMTS Release 8.3 User Guide
© 2016 ARRIS Enterprises LLC. All Rights Reserved.
1122
The command is as follows:
repeat <1-9999> [delay <1-3600>] <cmd>
Where:
<1-9999> - Number of times to repeat the command
[delay <1-3600>] - is the optional delay in seconds between running the
command. The default is one
second if the parameter is not present.
<cmd> - This is the show command to repeat.
Note: Other commands may work but are not supported.
Note: To support when counts are used on commands, all pipe filters (|) will be treated on a per command basis as
opposed to working on the repeat command itself.
repeat <1-999> [delay <1-36000> <cmd> | <pipe filters>
For example:
repeat 3 show cable modem | count include 10.1.74
The output would look similar to:
Piped Line Count: 6
Piped Line Count: 6
Piped Line Count: 6
Any idle-timeout and session-timeouts will treat the repeat command as a single command and not as a series of separate
commands. Idle-timeouts will not be triggered in the middle of the repeat command even if the delay between the
commands exceed the idle-timeout itself. Session-timeouts are absolute timeouts but it will allow a running command to
complete before stopping the session. No additional commands will be allowed to run after the repeat command has
completed if the session-timeout expires while the repeat command is running.
Since the repeat command will be in delay mode most of the time, a single ^C should halt the repeat sequence.
Occasionally, in the case of a long running command, the initial ^C will break the command being run, followed by a
second ^C to break the repeat command.