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

Need API to fetch interfaces data of Access point.

deepikax
Level 1
Level 1

Please find attached screenshot of Interface data, can you please guide us to fetch the below data using API.

We are looking out for interfaces data of access point as per the attached screenshot, which consists of parameters like list of interfaces, admin status, operational status, protocols etc.

3 Replies 3

@deepikax cannot see your screenshot, it does not look like it has attached.

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

deepikax
Level 1
Level 1

Updated the query with attachment.

Marcel Zehnder
Spotlight
Spotlight

Do you have a XE based WLAN controller in place (Cat98xx)? 

If yes, your best option is RESTCONF (currently I don't have access to a WLC, but the below hopfully works... ...if not: Let me know):

 

 

curl  'https://WLC_IP/restconf/data/Cisco-IOS-XE-wireless-access-point-oper:access-point-oper-data/ethernet-if-stats' \
  -k \
  -u username:password \
  -H 'Accept: application/yang-data+json' 
     

 

This endpoint contains the data you're looking for:

pyang -f tree Cisco-IOS-XE-wireless-access-point-oper.yang --tree-path /access-point-oper-data/ethernet-if-stats                                          
module: Cisco-IOS-XE-wireless-access-point-oper
  +--ro access-point-oper-data
     +--ro ethernet-if-stats* [wtp-mac if-index]
        +--ro if-name?              string
        +--ro rx-pkts?              uint32
        +--ro tx-pkts?              uint32
        +--ro oper-status?          wireless-enum-types:oper-state
        +--ro rx-ucast-pkts?        uint32
        +--ro rx-non-ucast-pkts?    uint32
        +--ro tx-ucast-pkts?        uint32
        +--ro tx-non-ucast-pkts?    uint32
        +--ro duplex?               uint32
        +--ro link-speed?           uint32
        +--ro rx-total-bytes?       uint32
        +--ro tx-total-bytes?       uint32
        +--ro input-crc?            uint32
        +--ro input-aborts?         uint32
        +--ro input-errors?         uint32
        +--ro input-frames?         uint32
        +--ro input-overrun?        uint32
        +--ro input-drops?          uint32
        +--ro input-resource?       uint32
        +--ro unknown-protocol?     uint32
        +--ro runts?                uint32
        +--ro giants?               uint32
        +--ro throttle?             uint32
        +--ro resets?               uint32
        +--ro output-collision?     uint32
        +--ro output-no-buffer?     uint32
        +--ro output-resource?      uint32
        +--ro output-underrun?      uint32
        +--ro output-errors?        uint32
        +--ro output-total-drops?   uint32
        +--ro wtp-mac               yang:mac-address
        +--ro if-index              uint16

  HTH