12-03-2024 09:28 AM
Hi,
In Cisco Spaces Location API, there is a GET operation for retrieve information about clients history (/v1
1) I saw that more records are identical with same data, for example:
tenantid,macaddress,devicetype,campusid,buildingid,floorid,floorhierarchy,coordinatex,coordinatey,sourcetimestamp,manufacturer,associated,ssid,username,associatedapmac,computetype,source,hierarchy_id
XXXX,XX:XX:XX:XX:dd,CLIENT,8685ebd5-5b61-4a12-8b64-d582e980368e,f5eb76a9-ecc3-49df-8949-1f37bcdee2bc,181d2380-7eab-4359-9fa7-95f9dd0d3983,XXXX,215.4,345.2,1730761205170,Unknown,true,XXXX,84842f814abb66fc31d5e5b6bc092a923a4b3bb2,90:e9:5e:e4:41:60,RSSI,Compute,abe2b01a-f581-4398-995b-1dea72ad5633
XXXX,XX:XX:XX:XX:dd,CLIENT,8685ebd5-5b61-4a12-8b64-d582e980368e,f5eb76a9-ecc3-49df-8949-1f37bcdee2bc,181d2380-7eab-4359-9fa7-95f9dd0d3983,XXXX,215.4,345.2,1730761205170,Unknown,true,XXXX,84842f814abb66fc31d5e5b6bc092a923a4b3bb2,90:e9:5e:e4:41:60,RSSI,Compute,abe2b01a-f581-4398-995b-1dea72ad5633
XXXX,XX:XX:XX:XX:dd,CLIENT,8685ebd5-5b61-4a12-8b64-d582e980368e,f5eb76a9-ecc3-49df-8949-1f37bcdee2bc,181d2380-7eab-4359-9fa7-95f9dd0d3983,XXXX,215.4,345.2,1730761205170,Unknown,true,XXXX,84842f814abb66fc31d5e5b6bc092a923a4b3bb2,90:e9:5e:e4:41:60,RSSI,Compute,abe2b01a-f581-4398-995b-1dea72ad5633
It is correct? Does it have a special meaning?
2) Each record contains coordinatex and coordinatey fields, Do this fields are relative position on floor maps or are they related to accesspoint position?
Please if you can provide some help about the them it would be highly appreciated.
12-03-2024 10:13 AM
Based on what I am reading here is the breakdown
for the other question, client coordinates in Cisco DNA Spaces are mapped to the actual physical locations within the building's floor plan
12-03-2024 10:18 AM - edited 12-03-2024 10:22 AM
1) Might be a result of an implementation issue, do you get the same records if you query for that specific deviceid and associatedapmac in a single API call?
2) These are relative position on floor maps.
12-03-2024 10:38 AM
Hi Torbjørn,
Yes, Might be a result of an implementation issue.
I need to retrieve clients history data in a time range, for example each day.
I notice that If I use a time interval of a day I retrieve less data then I use the same time range splitting requests by hours.
Have you found any strange behaviour with pagination?
Thanks in advance
12-04-2024 11:40 AM
Sounds likely that the API isn't returning the objects in a consistent order which can cause issues like this. You can work around this by adding the retrieved records to a set and verifying that you have retrieved all records by comparing the length of the set with the expected count of records.
12-21-2024 08:11 AM
Is there a way to stream these data points like when client disassocates (back in 8540s) enhanced Snmptraps gave great data but 9800s they dont offer those type of disassocated with bytes/ssid/apname/ thus pulling from API in a minute/minute chunk with API pagination doesnt seem the best route when you have 1000s of clients online.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide