What's new

Evaluating "asp" tags locally

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

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
 
Is there a built-in way I could invoke a `<% %>` tag locally (via SSH) to gather the information I want?
No. Processing is only done by httpd prior to transmitting the page to a web client, there is no separate interpreter.
 
Drat, that's what I suspected. I suppose I'll look into SNMP, as this is a pretty deep yak shave I've gotten into. Thank you for the help.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top