05-07-2024 01:01 AM
I want to use netconf to get status from C9800. module: Cisco-IOS-XE-wireless-access-point-oper +--ro access-point-oper-data +--ro ap-radio-audit-info* [wtp-mac radio-slot-id]
05-07-2024 01:31 AM
Can you describe what you are looking for more specifically? Are you looking to enable netconf on the 9800? Are you asking how to fetch this with a specific tool(python/go/others)?
05-07-2024 03:41 AM
Here is an example of the Netconf RPC message that you can send, this is just a high-level example, and you may need to adjust the code to fit your specific requirements and the capabilities of your C9800 device. Additionally, ensure that you handle any errors or exceptions that may occur during the NETCONF communication.
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get>
<filter type="subtree">
<cisco-ios-xe-wireless-access-point-oper xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-wireless-access-point-oper">
<access-point-oper-data/>
</cisco-ios-xe-wireless-access-point-oper>
</filter>
</get>
</rpc>
Hope this helps.
05-07-2024 05:38 AM
try this
ap_radio_audit_info_filter = etree . Element ( " {urn:ietf:params:xml:ns:netconf:base:1.0} filter" , type = "xpath" , nsmap = { None : 'urn:cisco:com:ns:yang:Cisco-IOS-XE-wireless-access-point-oper' }, select = "/access-point-oper-data/ap-radio-audit-info[wtp-mac='xx:xx:xx:xx:xx:xx'][radio-slot-id='1']" )
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