Send netdisco-users mailing list submissions to
netdisco-users@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
netdisco-users-requ...@lists.sourceforge.net
You can reach the person managing the list at
netdisco-users-ow...@lists.sourceforge.net
When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:
1. No results in API searching for a MAC address (Sebastien BEAUDLOT)
--- Begin Message ---
Hi,
I am playing with Netdisco's API and it seems that it does not give me a
response when asking /port searching for a specific MAC address.
Eg : curl -k -s -X GET \
-H "Accept: application/json" \
-H "Authorization: xxxx" \
"https://localhost/api/v1/search/port?q=d8%3A9e%3Af3%3A3e%3A8a%3A01"
Tried with and without escaping semicolons. Searching for a partial MAC
address, eg : /port?q=d8* is working and giving results.
Netdisco's is up to date
App::Netdisco 2.52.1
SNMP::Info 3.81
DB Schema 70
PostgreSQL 11.00.14
Perl 5.20.2
Bigger picture, in case i took it wrong : i want to get all ports for a room,
as nodes hostnames contain the room name. So i do search/node?q=room24* to get
all MACs for this room, then search/port?q=mac for each MAC to get the ports
list.
What am i doing wrong ? :-)
Regards.
--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users