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
Quota query/monitoring by client
Moderator: Moderators
-
- Posts: 13
- Joined: Sat May 30, 2015 3:55 pm
Re: Quota query/monitoring by client
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?
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?
Re: Quota query/monitoring by client
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.
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.
Please be respectful when posting. I do this in my free time on a volunteer basis.
-
- Posts: 13
- Joined: Sat May 30, 2015 3:55 pm
Re: Quota query/monitoring by client
Thanks, I'll try that