can be done..
command ex :
- Code: Select all
/usr/bin/curl --insecure -c /tmp/cookie --data '{"username": "xxx", "password": "xxx"}' https://192.168.1.9:8443/api/login
then
- Code: Select all
/usr/bin/curl --insecure -b /tmp/cookie -X PUT https://192.168.1.9:8443/api/s/default/stat/user/2c:76:8a:c8:5b:c9
for eg device w mac#2c:76:8a:c8:5b:c9
challenge: this is data from the controller not fro any of the unifi devices that are queried regularly. if we want to do this for all devices this might create some load
this will also give some info .. but a large dump .. also on blocked/unblocked devices:
- Code: Select all
/usr/bin/curl --insecure -b /tmp/cookie -X PUT https://192.168.1.9:8443/api/s/default/list/user/
what would be the update frequency that makes sense? This is not pushed from the controller, but must be pulled. we could query the db once/ minute or so..
still thinking about it
Karl