GenieACS API - Find a device by its MAC address

YuZhiGang gairy.yu at gmail.com
Wed Sep 2 05:32:01 EDT 2015


Dear GenieACS Mailing List Friends,

I have a test to use the API to find a device by its MAC address, the
command is:

$ curl -i '
http://localhost:7557/devices/?query=%7B%22Device.LAN.MACAddress%22%3A%2200:0B:82:69:08:B6%22%7D
'


but this command returns nothing, just the following info. Does anybody
know what's wrong in my usage?

HTTP/1.1 200 OK
Content-Type: application/json
total: 0
Date: Wed, 02 Sep 2015 08:27:21 GMT
Connection: keep-alive
Transfer-Encoding: chunked
[
]



And I confirm this mac address is correct, please see the following
snapshot on the web GUI:



Best Regards
Gary Yu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20150902/5109f487/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2015-09-02 at 5.29.26 pm.png
Type: image/png
Size: 90031 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20150902/5109f487/attachment-0001.png>


More information about the Users mailing list