I’m using Linux Mint as my OS for this. In case you (or other forum members) are not familar with xdotools, it is a command-line tool used to automate GUI tasks such as window manipulation, cursor movement, key presses, mouse clicks, etc. Since I couldn’t find a way to directly download the logs, I developed this xdotool script that logs onto the router home page, ‘clicks’ to the Apps > Access Control, etc… when it gets to the logs page, it ‘clicks’ the Raw option, moves the cursor to the window with logs and does a right click “Save As …”. It then repeats that 11 times by clicking the left arrow and moving back in time to get all 24 hours. It is essentially automating what the human would do to download the logs. I just learned of this tool a few months ago so I am really a neophyte with it. I can send you the actual code if that’s helpful.
It is inconsistent because sometimes the cursor ends up slightly off where it needs to be make the correct click, the window doesn’t resize properly, etc. and therefore it fails to save the log correctly. Also, there can be NO other GUI interaction happening on the computer concurrently or the cursor gets all confused and ‘clicks’ in wrong locations. Therefore, I set it up to run very early in the morning hours via cron job.
A more direct way to download the logs, e.g., simply pull a CSV file, would be more consistent, easier to run in the background, and greatly appreciated.
-
This reply was modified 9 months, 2 weeks ago by
Rocket.