Hi....
I have been looking into monitoring the battery status for a remote control, so the battery can be replaced pro-actively.
The status is present in the web gui and in the MIB I have found a trap.
Web gui ex.:
But traps is currently not an option for me, and manual web gui login is not feasible with the amount of endpoints.
So my question is there is anybody out there that have found a solution or have and idea, maybe with CLI.
Devices is running Poly OS 3.9.0
/Dan
Solved! Go to Solution.
Hello @Dan Hemsø ,
Welcome back to the Poly Community.
Some of the >REST API< is undocumented but I checked and you could use:
curl -b cookies.txt -c cookies.txt -X POST -d "{\"user\": \"admin\",\"password\": \"789\"}" -H "Content-Type: application/json" -k https://10.252.149.104/rest/session
curl -b cookies.txt -c cookies.txt -X GET -H "Content-Type: application/JSON" -k https://10.252.149.104/rest/system/bluetooth
Please be aware this is working at present but could change at any point. If you need this ensured please work with Poly sales to request this to be documented.
The reply would be (if a remote is paired):
[{"batteryLevel":100,"firmwareRevision":"97","id":"80:6F:B0:45:BF:81","name":"Polycom Remote","connected":true}]
Please ensure to provide some feedback if this reply has helped you so other users can profit from your experience.
Best Regards
Steffen Baier
If official support is required please check how to phone or open a case here
----------------Hello @Dan Hemsø ,
Welcome back to the Poly Community.
Some of the >REST API< is undocumented but I checked and you could use:
curl -b cookies.txt -c cookies.txt -X POST -d "{\"user\": \"admin\",\"password\": \"789\"}" -H "Content-Type: application/json" -k https://10.252.149.104/rest/session
curl -b cookies.txt -c cookies.txt -X GET -H "Content-Type: application/JSON" -k https://10.252.149.104/rest/system/bluetooth
Please be aware this is working at present but could change at any point. If you need this ensured please work with Poly sales to request this to be documented.
The reply would be (if a remote is paired):
[{"batteryLevel":100,"firmwareRevision":"97","id":"80:6F:B0:45:BF:81","name":"Polycom Remote","connected":true}]
Please ensure to provide some feedback if this reply has helped you so other users can profit from your experience.
Best Regards
Steffen Baier
If official support is required please check how to phone or open a case here
----------------Hi @SteffenBaierUK
Thanks for the reply.... That works...
Would be nice if SNMP existed for this.. But that would be a feature request.
But now I have something to work with.
/Dan