Hello. as part of a university project I wish to remotely pull all (or as much as possible) data relating to configuration, system, network, packages, etc. my first thought would be to make a script to pull this from the router via ssh.
is there a package or something else that is better suited for this functionality? if not, would all the information i need be in /etc/config? or is there usefull information elsewhere?
Keep in mind that exporting UCI settings and files provides only persistent configs, not runtime.
Here's the proper JSON RCP API for remote access and management over HTTP/HTTPS:
Nice! I've been doing the ssh+backup into /tmp on the device, scp the file to my workstation, then ssh+rm on the backup. Time to go fix my backup script!
can ubus show me what devices are connected to the internet, via wan and wilreless? ubus call network.device status or ubus call network.wireless status does not do this unfortunately