cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
164
Views
0
Helpful
3
Replies

C9800 using netconf

josecarvalho
Level 1
Level 1

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]

1 Accepted Solution

Accepted Solutions

Ruben Cocheno
Spotlight
Spotlight

@josecarvalho 

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']" ) 

Tag me to follow up.
Please mark it as Helpful and/or Solution Accepted if that is the case. Thanks for making Engineering easy again.
Connect with me for more on Linkedin https://www.linkedin.com/in/rubencocheno/

View solution in original post

3 Replies 3

Torbjørn
Spotlight
Spotlight

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)?

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev

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.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Ruben Cocheno
Spotlight
Spotlight

@josecarvalho 

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']" ) 

Tag me to follow up.
Please mark it as Helpful and/or Solution Accepted if that is the case. Thanks for making Engineering easy again.
Connect with me for more on Linkedin https://www.linkedin.com/in/rubencocheno/