02-01-2024 02:39 AM - edited 02-01-2024 02:46 AM
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.
02-01-2024 02:44 AM
@deepikax cannot see your screenshot, it does not look like it has attached.
02-01-2024 02:48 AM
Updated the query with attachment.
02-01-2024 03:12 AM - edited 02-01-2024 03:52 AM
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
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