script to run manual bandwidth test and save to file
Posted: Thu Jan 11, 2018 10:18 pm
I am hoping some one can help get this correct.
Here is the desired end result. I want to be able to run a script (manually) where my CRS109 runs a bandwidth test and then saves the results to a file. I want the test to run only 10 seconds.
This line of code works from the terminal screen and running a script from the terminal screen:
I am sure everyone has seen that code run. I get the results:
What I would like here is to take all of those values, and dump them into a text file. Creating a test script, I have been able to use
and have created just junk data into a file. So I know how to put data into a file, and I can run a test to get the data. Where I am having issues right now is getting the data to dump into the file.
Thank you in advance for your help.
Here is the desired end result. I want to be able to run a script (manually) where my CRS109 runs a bandwidth test and then saves the results to a file. I want the test to run only 10 seconds.
This line of code works from the terminal screen and running a script from the terminal screen:
Code: Select all
/tool bandwidth-test $target duration=10s direction=both local-udp-tx-size=1000 protocol=udp remote-udp-tx-size=1000 user=$user pass=$pass
I am sure everyone has seen that code run. I get the results:
Code: Select all
status: completetd
duration: 10s
tx-current: 0bps
.......(and so on)
What I would like here is to take all of those values, and dump them into a text file. Creating a test script, I have been able to use
Code: Select all
/file set $filename contents=$data
Thank you in advance for your help.