02-13-2024 06:55 AM
Hi all,
I am currently trying to get the Ethernet link speeds of all APs connected to a C98k Controller via REST API call.
My issue is that the link speeds which get returned always show a value of 0.
I am accessing the following module:
module: Cisco-IOS-XE-wireless-access-point-oper
+--ro access-point-oper-data
+--ro ethernet-if-stats* [wtp-mac if-index]
| +--ro link-speed? uint32
My method looks something like this:
And the output for an AP looks like this:
{'Cisco-IOS-XE-wireless-access-point-oper:ethernet-if-stats': [{'wtp-mac': 'xxxxx', 'if-index': 0, 'if-name': 'GigabitEthernet0', 'rx-pkts': 18308538, 'tx-pkts': 9117891, 'oper-status': 'oper-state-up', 'rx-ucast-pkts': 17541999, 'rx-non-ucast-pkts': 766539, 'tx-ucast-pkts': 9076820, 'tx-non-ucast-pkts': 41071, 'duplex': 2, 'link-speed': 0, 'rx-total-bytes': 1846914231, 'tx-total-bytes': 3800054541, 'input-crc': 0, 'input-aborts': 0, 'input-errors': 0, 'input-frames': 0, 'input-overrun': 0, 'input-drops': 0, 'input-resource': 0, 'unknown-protocol': 0, 'runts': 0, 'giants': 0, 'throttle': 0, 'resets': 3, 'output-collision': 0, 'output-no-buffer': 0, 'output-resource': 0, 'output-underrun': 0, 'output-errors': 0, 'output-total-drops': 0}
I have tried this with 100+ APs and the link speed is always 0 no matter which speed the AP is actually using.
On the WLC GUI itself the speed is shown correctly.
Am I missing something here? Is this a bug?
Do you know if there is another way to get to this information via WLC REST API?
We are running Version 17.9.4, I am unable to test this on another version unfortunately.
Thanks in advance!
Best regards,
Oli
Solved! Go to Solution.
02-14-2024 02:46 AM
Thanks @marce1000
It indeed seems to be a bug.
I found a way to move an AP to a 9800-CL with version 17.13 and test another call.
With this version the link speed is shown correctly (1000).
02-13-2024 09:41 AM
- Most likely a bug as you say ; should for instance be verified against latest release ; 17.13.1 (e.g.) ; theoretically you could download and install the 9800-CL (virtual) controller with that release ,configure the controller and test with an AP ;
if all of that would be worth the effort ....
M.
02-14-2024 02:46 AM
Thanks @marce1000
It indeed seems to be a bug.
I found a way to move an AP to a 9800-CL with version 17.13 and test another call.
With this version the link speed is shown correctly (1000).
02-14-2024 03:41 AM
- Good to know , if future upgrades would be planned , needed and or intended.
M.
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