11-09-2023 11:42 AM - edited 11-09-2023 11:43 AM
Hello guys,
I want to use netconf to get status from C9800.
Particularly this tang model, I know i have two pass two information, mac and slot id but not sure how to do it using xpath.
module: Cisco-IOS-XE-wireless-access-point-oper
+--ro access-point-oper-data
+--ro ap-radio-audit-info* [wtp-mac radio-slot-id]
Here is my code for the filter, but doesn't seems to work. need a hand to figure this out.
11-10-2023 03:05 AM - edited 11-10-2023 03:06 AM
Hi
"radio-slot-id" is a uint8 so you propaply need to change your xpath to
"/access-point-oper-data/ap-radio-audit-info[wtp-mac='xx:xx:xx:xx:xx:xx'][radio-slot-id=1]"
However with the WLC I have access to, there seems to be a problem with this path, im not able to get any info - neither RESTCONF nor NETCONF is working:
RESTCONF GET /restconf/data/Cisco-IOS-XE-wireless-access-point-oper:access-point-oper-data/ap-radio-audit-info returns 204/no content.
NETCONF get with xpath-filter /access-point-oper-data/ap-radio-audit-info returns an empty data section:
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:2de73f9f-f73e-4c44-8417-cf7bfe461de3" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"><data></data></rpc-reply>
Cheers
Marcel
11-10-2023 03:50 AM
Take a look at https://developer.cisco.com/yangsuite/ this can be very helpful in finding the information you need for YANG and Netconf.
Hope this helps.
02-02-2024 06:27 AM
Still facing the issue?All sorted?
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