Reset Search
 

 

Article

How do I continually run CLI commands in a loop?

« Go Back

Information

 
TitleHow do I continually run CLI commands in a loop?
Objective
How do I continually run CLI commands in a loop?
Environment
  • S-Series
  • K-Series
  • 7100
  • N-Series
Procedure
The process to continually run a command is in the example below:
7100(su)->loop 10 60
show port flowcontrol <port-string>
show rmon stats <port-string>
10 = Specifies the number of times to loop.
A value of 0 will make the command loop forever

60 = Specifies the number of seconds to delay between executions.

in order to stop the command: CRTL + C
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255