You are here

iperf results

3 posts / 0 new
Last post
N7GYL
iperf results

Is there an easy way to delete the iperf test results?  It seems letting them build up would use memory resources.  If deleted memory would be conserved.
Chris N7GYL

AB7PA
You can delete the previous test summaries manually

You can delete the previous test summaries manually by logging into your node at the command line and navigating to /www/iperfspeed.  In that directory there will be a logfile called "tests.log" which stores between 40-60 bytes per test.  The space used is minimal since only the test summary stats are recorded there.  But if you want to clean up your iperfspeed UI then you can either delete that file or edit it to remove some of the older lines.

One other thing you could do is add a new action to the /www/cgi-bin/iperfspeed file.  Around line 37 you'll notice some tests for action strings that call system functions.  You could add a new one (something like the example below) that would allow you to delete the tests.log file from your web browser.

} elsif ($query{action} eq 'clear_tests') {                                      
    print "Access-Control-Allow-Origin: *\r\nContent-type: text/plain\r\n\r\nOK";
    system "rm /www/iperfspeed/tests.log";

Once this function is available in the /www/cgi-bin/iperfspeed file, you could open your web browser and enter this URL:

http://your-node-name.local.mesh/cgi_bin/iperfspeed?action=clear_tests

You should get an "OK" response from the node, and the previous tests display will be empty.

N7GYL
Thanks for the response, will
Thanks for the response, will attempt to do this.  
Chris
 

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer