EXOS: execute command several times and prompt output to CLI
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎02-08-2018 12:54 PM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎02-08-2018 01:08 PM
Maybe this python script can help ?
https://github.com/extremenetworks/ExtremeScripting/tree/master/EXOS/Python/watch
https://github.com/extremenetworks/ExtremeScripting/tree/master/EXOS/Python/watch
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎02-08-2018 01:08 PM
Glad that worked for you, Matthias!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎02-08-2018 01:08 PM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎02-08-2018 01:08 PM
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.
I see a potential to automate all of that with coming XMC 8.1.
