02-06-2025 01:35 AM
Hi,
We are retrieving data traffic volume for a certain wired client by referring to the Catalyst Center API documentation below.
https://developer.cisco.com/docs/dna-center/2-3-7/get-client-detail/
A part of the retrieved results via API: (★ indicates the returned value of data traffic volume)
"snrIsInclude": "true",
"avgSnr": "44.0",
"dataRate": "400.0",
"txBytes": "3548.0", ★
"rxBytes": "3229.0", ★
"dnsResponse": "10.0"
Questions:
1.
For wireless endpoints, the values obtained via the API (txBytes/rxBytes) match the Connectivity (tx/rx) values in Client 360 in Catalyst Center.
However, the rx/tx is not displayed in Client 360 Connectivity section for wired endpoints(by default).
In this case, how were the traffic volume values (txBytes/rxBytes) captured?
(I'm also a bit concerned about the accuracy of the retrieved values.)
See Capture for a Client 360 view of wired and wireless PCs.
2.
The Connectivity data in Client 360 appears to be updated at 10-minute intervals.
I would like to confirm whether the values obtained via the API are also not real-time and if they change in accordance with the Connectivity display.Is that correct?
02-06-2025 02:43 AM
First one, this might be done by polling the switchport, and it might be that if the polling interval is too long, data may not reflect real time traffic. The switch would maintain these counters for each port and Catalyst Center can poll these counters periodically
On the second question not 100% sure on this, on a few endpoints it does not state if API might include historical or cached data, while the GUI or WLC shows real time data. I know on other endpoints values obtained via the API are not real time. I think you are correct here, they are updated in accordance with the polling and aggregation intervals configured in Catalyst Center and for Client 360, the data is typically updated at 10-minute intervals, and the API reflects the same data.
I am assuming here and it might be worth reaching out the team at Cisco directly for this to be confirmed.
Hope this helps.
03-06-2025 10:20 AM
The UI provides stats for wired connected clients, too:
The clients stats are saved for 5 min time intervals. See the above screenshot.
The API will return the stats for the last 5 min interval before the timestamp provided. If no timestamp provided, it will be considered current time.
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