crunchyrouters
New Around Here
I'd like to retrieve information about active clients (both wired and wireless) programmatically for a dashboard I'm working on. The `get_clientlist()` function appears to do what I want and I tried writing up a quick script to log in (via the WebUI) & pull the contents of that page. Unfortunately, it seems that I'm limited to one admin session at a time so this prevents me from performing administrative tasks via the WebUI. I'm not sure how this is enforced in the source code - a quick review implies that multiple sessions should be supported via `add_asus_token`...
I looked into getting httpd to evaluate an asp file pre-auth, which does work with some creative use of bind mounts* but this isn't optimal either.
Is there a built-in way I could invoke a `<% %>` tag locally (via SSH) to gather the information I want? Is my only option compiling some subset of httpd to accomplish this? Are there better ways to accomplish what I want (`get_clientlist()` is nice because it includes DNS names, signal strength, etc)? Any recommendations are welcome!
* I replaced /www/manifest.asp with a custom script
I looked into getting httpd to evaluate an asp file pre-auth, which does work with some creative use of bind mounts* but this isn't optimal either.
Is there a built-in way I could invoke a `<% %>` tag locally (via SSH) to gather the information I want? Is my only option compiling some subset of httpd to accomplish this? Are there better ways to accomplish what I want (`get_clientlist()` is nice because it includes DNS names, signal strength, etc)? Any recommendations are welcome!
* I replaced /www/manifest.asp with a custom script