Quota query/monitoring by client

Report issues relating to bandwith monitoring, bandwidth quotas or QoS in this forum.

Moderator: Moderators

Post Reply
landersohn
Posts: 13
Joined: Sat May 30, 2015 3:55 pm

Quota query/monitoring by client

Post by landersohn »

I would like to write a little app that I can run on a PC connected to my router which displays the current quota for that PC. Onbiously I can get this info when I just go to the router login page but it would be nioce to have it running in some little window somewhere and refreshed every so often.

Question: Is this somehow possible without writing a essentially web browser? can I just scp some file from the router in /dev/.... which might have that info?

Thanks

landersohn
Posts: 13
Joined: Sat May 30, 2015 3:55 pm

Re: Quota query/monitoring by client

Post by landersohn »

OK, I found how get current quota usage when I ssh into the router.
Question now is, how could I edit the crontabs so that I run the print_quotas script every so often and copy the result into a file which I can then access via SCP?
How would I write an updated crontabs file into the ROM?

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Quota query/monitoring by client

Post by Lantis »

You just want to direct the output of the script to a file.

print_quotas > /tmp/file.txt

We've discussed this topic before and the implications of excessive flash writes aren't brilliant. I'd be wary of the frequency that you choose.
You might be better to instead do some kind of result grabbing from the ssh client itself and then do all the manipulation locally.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

landersohn
Posts: 13
Joined: Sat May 30, 2015 3:55 pm

Re: Quota query/monitoring by client

Post by landersohn »

Thanks, I'll try that

Post Reply