02-14-2024 07:18 AM
Hello everyone.
Im looking at a way to get the channel utilisation of APs from thier WLC via NETCONF.
The way to get it from the CLI is via "show ap auto-rf dot11 24ghz", example output :
I've searched in pretty much every Yang model I could think of that can relate to that topic.
Does anyone has a way of doing that via netconf ?
02-14-2024 10:40 AM
Hello,
I am thinking of something like the NETCONF script below:
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get>
<filter type="subtree">
<oper-data xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-wireless-ap-oper">
<access-points>
<access-point>
<!-- Specify the AP ID or name -->
<ap-name>AP1</ap-name>
<radios>
<radio>
<!-- Specify the radio interface (e.g., 24 GHz) -->
<band>2.4GHz</band>
<!-- Retrieve channel utilization information -->
<channel-utilization/>
</radio>
</radios>
</access-point>
</access-points>
</oper-data>
</filter>
</get>
</rpc>
02-15-2024 01:31 AM
Hi, thank for your answer
I tried your xml (edited with my ap name) but I got a rpc-error back :
<rpc-error xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
<error-type>protocol</error-type>
<error-tag>unknown-element</error-tag>
<error-severity>error</error-severity>
<error-path>
/rpc
</error-path><error-info><bad-element>rpc</bad-element>
</error-info>
</rpc-error>
It seems like you used the "Cisco-IOS-XE-wireless-ap-oper" yang module but I cannont find it online or in the YangModel/yang github repo. And it doesnt appear in my device capabilities (https://pastebin.com/vB5giFTi). Os Version : 17.06.05
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