XPath to get CDP information from Cisco APs

XPath to get CDP information from Cisco APs

  • #xpath
- Last updated on

WLC’s version used

17.9.1ES13

Yang Module

Cisco-IOS-XE-wireless-access-point-oper

Prefix

wireless-access-point-oper

XPath

/wireless-access-point-oper:access-point-oper-data/cdp-cache-data

Example:

GET

curl -X 'GET' \
  'http://<IP:PORT>/restconf/proxy/https://<IP:PORT>/restconf/data/Cisco-IOS-XE-wireless-access-point-oper:access-point-oper-data/cdp-cache-data' \
  -H 'accept: application/yang-data+json'

Sending

http://<IP:PORT>/restconf/proxy/https://<IP:PORT>/restconf/data/Cisco-IOS-XE-wireless-access-point-oper:access-point-oper-data/cdp-cache-data

Received message from host

{
  "Cisco-IOS-XE-wireless-access-point-oper:cdp-cache-data": [
    {
      "mac-addr": "00:11:22:33:44:55",
      "cdp-cache-device-id": "BLV-co-acc-101",
      "ap-name": "LAB-9130-1",
      "last-updated-time": "2023-03-05T00:25:13.513335+00:00",
      "version": 2,
      "cdp-cache-if-index": 1,
      "cdp-cache-version": "Cisco IOS Software [Fuji], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.9.2s, RELEASE SOFTWARE (fc4)\nTechnical Support: http://www.cisco.com/techsupport\nCopyright (c) 1986-2019 by Cisco Systems, Inc.\nCompiled Mon 14-Jan-19 16:45 by mcpre",
      "cdp-cache-device-port": "GigabitEthernet1/0/11",
      "cdp-cache-local-port": "GigabitEthernet0",
      "cdp-cache-platform": "cisco C9300-48U",
      "cdp-capabilities-string": "Switch IGMP ",
      "cdp-cache-ap-address": "192.168.X.X",
      "cdp-addr-count": 1,
      "cdp-cache-ip-address-value": "192.168.X.X",
      "ip-address": {
        "ip-address-value": [
          "192.168.X.X"
        ]
      },
      "cdp-cache-duplex": "cdp-cache-duplex-full",
      "cdp-cache-interface-speed": 4,
      "wtp-mac-addr": "00:11:22:33:44:55",
      "device-index": 1
    },

Copyright © 2024 Darwin Castro