cancel
Showing results for 
Search instead for 
Did you mean: 

EXOS: execute command several times and prompt output to CLI

EXOS: execute command several times and prompt output to CLI

M_Nees
Contributor III
In EOS (S-Series) i use sometimes these to execute a custom command several times and look at the output:

loop 10 1 -r
sh flowlimit stats tg.4.4;tg.1.4;tg.5.4(loop the following command for 10 times with a delay of 1 sec and refresh cursor at home position)

I am looking for a similar command or mechanism in current EXOS.
(I know for counters this is build in output mechanism in EXOS. I need it for custom commands beyond counters ...)

Regards,
Matthias
7 REPLIES 7

OscarK
Extreme Employee

Drew_C
Valued Contributor III
Glad that worked for you, Matthias!

M_Nees
Contributor III
Hi Drew,

thanks for your advice with download url and *.lst file! It works fine and i am able to distribute very fast useful python scripts to my switches.

I use XMC for providing this couple of files:

SW-TEST.28 # download url http://netsight/Clients/scripts.lst vr VR-Default
Downloading http://10.1.1.200/Clients/scripts.lst
Downloading http://10.1.1.200/Clients/flowtrack.py
Downloading http://10.1.1.200/Clients/mlag_config_check.py
Downloading http://10.1.1.200/Clients/conf_diff.py
Downloading http://10.1.1.200/Clients/watch.py
SW-TEST.28 # Thanks

Following Ludo comment (which requires EXOS 21.1+), you could also consider Extreme Management Center (XMC) to do the job, if you have it. Since 8.0.4 it supports Python scripting, so you could have your script on XMC and run it from there.

I see a potential to automate all of that with coming XMC 8.1.
GTM-P2G8KFN