04-30-2024 01:25 AM
Hello,
I'm trying to gather the data usage per SSID on Cisco Catalyst 9800 Wireless controller.
I can see nicely top 10 WLANs with the highest data usage on the dashboard, but I can't figure out how to gather this information from WLC.
I'm trying to send RESTCONF requests with Postman at the moment, but I can't find any documentation which path/information do I need to get back the response that I need.
My plan at the beginning is writing an Ansible playbook because this is the fastest way for me at the moment. Later on, I might be to discover the possibilities for Telemetry streaming to an external tool so that I could have a nice Grafana dashboard.
What I have done so far:
I have sent the following GET request via Postman to WLC and gather back all the “ietf-netconf-monitoring:capabilities” back
https://YOUR-WLC-IP:443/restconf/data/netconf-state/capabilities
I'm searching in the list if I can find any module name that could be relevant to what I am looking for. Then I search the module name in the YANG catalog and then copy the URL from yang catalog into Postman. I tried a bunch of modules so far, but I can't find anything useful for my case.
If someone already dealt with such a thing I will be glad to hear what are my options or even if someone can point me an useful direction I will be more than happy.
Thanks in advance!
Regards.
04-30-2024 05:29 AM
- Another possibility could be try to accomplish that externally by looking at traffic from the associated (SSID) WLAN/VLAN-subnet on the intranet and get the data as such with network management tools,
M.
04-30-2024 08:22 AM - edited 04-30-2024 08:23 AM
So you can find all the YANG models at https://github.com/YangModels/yang/tree/main/vendor/cisco/xe/1791
Looking at https://www.cisco.com/c/en/us/products/collateral/wireless/catalyst-9800-series-wireless-controllers/catalyst-9800-programmability-telemetry-deployment-guide.html#Nativemodels
https://www.cisco.com/c/en/us/td/docs/wireless/controller/technotes/8-8/b_c9800_programmability_telemetry_dg.html
https://www.cisco.com/c/en/us/td/docs/wireless/controller/9800/programmability-guide/b_c9800_programmability_cg/cisco-catalyst-9800-series-wireless-controller-programmability-guide.html
you want to be looking at the Operational models. Without having checked them myself I would start by looking at Cisco-IOS-XE-wireless-access-point-oper.yang and Cisco-IOS-XE-wireless-client-oper.yang
Good to know if you work out where the data is <wink>
05-06-2024 07:30 AM
Hello @Rich R ,
Thank you for your reply. It was very helpful, especially for the following part
@Rich R wrote:...
I would start by looking at Cisco-IOS-XE-wireless-access-point-oper.yang...
I think https://WLCt:443/restconf/data/Cisco-IOS-XE-wireless-access-point-oper:access-point-oper-data/ssid-counters is what I need, but I can't understand why I don't see any response on my WLC. Regarding YANG database, the data should be there. Do you have any idea?
Regards.
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