Ad Widget

Collapse

Help with custom low level discovery on template for Cisco WLC AP info

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • williamk
    Junior Member
    • Jun 2020
    • 4

    #1

    Help with custom low level discovery on template for Cisco WLC AP info

    Hi, I have a cisco C9800 Wireless LAN controller. Am trying to write a low level discovery rule that will show me all the ap names, ap serial numbers, and ap ip addresses that are associated to the WLC. I found the OID that shows me all the ap info. See the snmpwalk below:

    snmpwalk -c mysnmpcommunity -v 2c 192.168.9.6 1.3.6.1.4.1.14179.2.2.1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.1.16.6.237.53.22.19 2 = Hex-STRING: 10 06 ED 35 16 C0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.1.16.6.237.53.195.1 28 = Hex-STRING: 10 06 ED 35 C3 80
    SNMPv2-SMI::enterprises.14179.2.2.1.1.1.16.6.237.53.226.1 28 = Hex-STRING: 10 06 ED 35 E2 80
    SNMPv2-SMI::enterprises.14179.2.2.1.1.1.16.6.237.60.79.12 8 = Hex-STRING: 10 06 ED 3C 4F 80
    SNMPv2-SMI::enterprises.14179.2.2.1.1.2.16.6.237.53.22.19 2 = INTEGER: 2
    SNMPv2-SMI::enterprises.14179.2.2.1.1.2.16.6.237.53.195.1 28 = INTEGER: 2
    SNMPv2-SMI::enterprises.14179.2.2.1.1.2.16.6.237.53.226.1 28 = INTEGER: 2
    SNMPv2-SMI::enterprises.14179.2.2.1.1.2.16.6.237.60.79.12 8 = INTEGER: 2
    SNMPv2-SMI::enterprises.14179.2.2.1.1.3.16.6.237.53.22.19 2 = STRING: "OF-CherryGH-1"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.3.16.6.237.53.195.1 28 = STRING: "OF-ProdOff-2"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.3.16.6.237.53.226.1 28 = STRING: "OF-ITOffice-2"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.3.16.6.237.60.79.12 8 = STRING: "OF-ScaleHouse-1"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.4.16.6.237.53.22.19 2 = STRING: "default location"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.4.16.6.237.53.195.1 28 = STRING: "default location"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.4.16.6.237.53.226.1 28 = STRING: "default location"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.4.16.6.237.60.79.12 8 = STRING: "default location"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.5.16.6.237.53.22.19 2 = INTEGER: 2
    SNMPv2-SMI::enterprises.14179.2.2.1.1.5.16.6.237.53.195.1 28 = INTEGER: 2
    SNMPv2-SMI::enterprises.14179.2.2.1.1.5.16.6.237.53.226.1 28 = INTEGER: 2
    SNMPv2-SMI::enterprises.14179.2.2.1.1.5.16.6.237.60.79.12 8 = INTEGER: 2
    SNMPv2-SMI::enterprises.14179.2.2.1.1.6.16.6.237.53.22.19 2 = INTEGER: 1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.6.16.6.237.53.195.1 28 = INTEGER: 1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.6.16.6.237.53.226.1 28 = INTEGER: 1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.6.16.6.237.60.79.12 8 = INTEGER: 1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.8.16.6.237.53.22.19 2 = STRING: "17.3.3.26"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.8.16.6.237.53.195.1 28 = STRING: "17.3.3.26"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.8.16.6.237.53.226.1 28 = STRING: "17.3.3.26"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.8.16.6.237.60.79.12 8 = STRING: "17.3.3.26"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.9.16.6.237.53.22.19 2 = STRING: "1.1.2.4"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.9.16.6.237.53.195.1 28 = STRING: "1.1.2.4"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.9.16.6.237.53.226.1 28 = STRING: "1.1.2.4"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.9.16.6.237.60.79.12 8 = STRING: "1.1.2.4"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.10.16.6.237.53.22.1 92 = ""
    SNMPv2-SMI::enterprises.14179.2.2.1.1.10.16.6.237.53.195. 128 = ""
    SNMPv2-SMI::enterprises.14179.2.2.1.1.10.16.6.237.53.226. 128 = ""
    SNMPv2-SMI::enterprises.14179.2.2.1.1.10.16.6.237.60.79.1 28 = ""
    SNMPv2-SMI::enterprises.14179.2.2.1.1.11.16.6.237.53.22.1 92 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.11.16.6.237.53.195. 128 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.11.16.6.237.53.226. 128 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.11.16.6.237.60.79.1 28 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.12.16.6.237.53.22.1 92 = INTEGER: 180
    SNMPv2-SMI::enterprises.14179.2.2.1.1.12.16.6.237.53.195. 128 = INTEGER: 180
    SNMPv2-SMI::enterprises.14179.2.2.1.1.12.16.6.237.53.226. 128 = INTEGER: 180
    SNMPv2-SMI::enterprises.14179.2.2.1.1.12.16.6.237.60.79.1 28 = INTEGER: 180
    SNMPv2-SMI::enterprises.14179.2.2.1.1.13.16.6.237.53.22.1 92 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.13.16.6.237.53.195. 128 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.13.16.6.237.53.226. 128 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.13.16.6.237.60.79.1 28 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.16.16.6.237.53.22.1 92 = STRING: "C9120AXI-B"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.16.16.6.237.53.195. 128 = STRING: "C9120AXI-B"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.16.16.6.237.53.226. 128 = STRING: "C9120AXI-B"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.16.16.6.237.60.79.1 28 = STRING: "C9120AXI-B"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.17.16.6.237.53.22.1 92 = STRING: "FJC25431ENG"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.17.16.6.237.53.195. 128 = STRING: "FJC25431ENU"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.17.16.6.237.53.226. 128 = STRING: "FJC25431ENX"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.17.16.6.237.60.79.1 28 = STRING: "FJC25431ENW"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.18.16.6.237.53.22.1 92 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.18.16.6.237.53.195. 128 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.18.16.6.237.53.226. 128 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.18.16.6.237.60.79.1 28 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.19.16.6.237.53.22.1 92 = IpAddress: 192.168.28.31
    SNMPv2-SMI::enterprises.14179.2.2.1.1.19.16.6.237.53.195. 128 = IpAddress: 192.168.28.25
    SNMPv2-SMI::enterprises.14179.2.2.1.1.19.16.6.237.53.226. 128 = IpAddress: 192.168.28.21
    SNMPv2-SMI::enterprises.14179.2.2.1.1.19.16.6.237.60.79.1 28 = IpAddress: 192.168.28.32
    SNMPv2-SMI::enterprises.14179.2.2.1.1.21.16.6.237.53.22.1 92 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.21.16.6.237.53.195. 128 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.21.16.6.237.53.226. 128 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.21.16.6.237.60.79.1 28 = INTEGER: 0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.22.16.6.237.53.22.1 92 = INTEGER: 93
    SNMPv2-SMI::enterprises.14179.2.2.1.1.22.16.6.237.53.195. 128 = INTEGER: 93
    SNMPv2-SMI::enterprises.14179.2.2.1.1.22.16.6.237.53.226. 128 = INTEGER: 93
    SNMPv2-SMI::enterprises.14179.2.2.1.1.22.16.6.237.60.79.1 28 = INTEGER: 93
    SNMPv2-SMI::enterprises.14179.2.2.1.1.23.16.6.237.53.22.1 92 = ""
    SNMPv2-SMI::enterprises.14179.2.2.1.1.23.16.6.237.53.195. 128 = ""
    SNMPv2-SMI::enterprises.14179.2.2.1.1.23.16.6.237.53.226. 128 = ""
    SNMPv2-SMI::enterprises.14179.2.2.1.1.23.16.6.237.60.79.1 28 = ""
    SNMPv2-SMI::enterprises.14179.2.2.1.1.24.16.6.237.53.22.1 92 = ""
    SNMPv2-SMI::enterprises.14179.2.2.1.1.24.16.6.237.53.195. 128 = ""
    SNMPv2-SMI::enterprises.14179.2.2.1.1.24.16.6.237.53.226. 128 = ""
    SNMPv2-SMI::enterprises.14179.2.2.1.1.24.16.6.237.60.79.1 28 = ""
    SNMPv2-SMI::enterprises.14179.2.2.1.1.25.16.6.237.53.22.1 92 = INTEGER: 1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.25.16.6.237.53.195. 128 = INTEGER: 1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.25.16.6.237.53.226. 128 = INTEGER: 1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.25.16.6.237.60.79.1 28 = INTEGER: 1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.26.16.6.237.53.22.1 92 = IpAddress: 255.255.255.0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.26.16.6.237.53.195. 128 = IpAddress: 255.255.255.0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.26.16.6.237.53.226. 128 = IpAddress: 255.255.255.0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.26.16.6.237.60.79.1 28 = IpAddress: 255.255.255.0
    SNMPv2-SMI::enterprises.14179.2.2.1.1.27.16.6.237.53.22.1 92 = IpAddress: 192.168.28.1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.27.16.6.237.53.195. 128 = IpAddress: 192.168.28.1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.27.16.6.237.53.226. 128 = IpAddress: 192.168.28.1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.27.16.6.237.60.79.1 28 = IpAddress: 192.168.28.1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.28.16.6.237.53.22.1 92 = IpAddress: 192.168.28.31
    SNMPv2-SMI::enterprises.14179.2.2.1.1.28.16.6.237.53.195. 128 = IpAddress: 192.168.28.25
    SNMPv2-SMI::enterprises.14179.2.2.1.1.28.16.6.237.53.226. 128 = IpAddress: 192.168.28.21
    SNMPv2-SMI::enterprises.14179.2.2.1.1.28.16.6.237.60.79.1 28 = IpAddress: 192.168.28.32
    SNMPv2-SMI::enterprises.14179.2.2.1.1.31.16.6.237.53.22.1 92 = STRING: "17.3.3.26"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.31.16.6.237.53.195. 128 = STRING: "17.3.3.26"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.31.16.6.237.53.226. 128 = STRING: "17.3.3.26"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.31.16.6.237.60.79.1 28 = STRING: "17.3.3.26"
    SNMPv2-SMI::enterprises.14179.2.2.1.1.32.16.6.237.53.22.1 92 = INTEGER: 1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.32.16.6.237.53.195. 128 = INTEGER: 1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.32.16.6.237.53.226. 128 = INTEGER: 1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.32.16.6.237.60.79.1 28 = INTEGER: 1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.33.16.6.237.53.22.1 92 = Hex-STRING: 10 06 ED 44 01 24
    SNMPv2-SMI::enterprises.14179.2.2.1.1.33.16.6.237.53.195. 128 = Hex-STRING: 10 06 ED 44 16 BC
    SNMPv2-SMI::enterprises.14179.2.2.1.1.33.16.6.237.53.226. 128 = Hex-STRING: 10 06 ED 44 1A 9C
    SNMPv2-SMI::enterprises.14179.2.2.1.1.33.16.6.237.60.79.1 28 = Hex-STRING: 10 06 ED 44 28 3C
    SNMPv2-SMI::enterprises.14179.2.2.1.1.37.16.6.237.53.22.1 92 = INTEGER: 1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.37.16.6.237.53.195. 128 = INTEGER: 1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.37.16.6.237.53.226. 128 = INTEGER: 1
    SNMPv2-SMI::enterprises.14179.2.2.1.1.37.16.6.237.60.79.1 28 = INTEGER: 1

    I created a custom template with a discovery rule and an item prototype. See attached screen shots of my rule and item as well as latest data for WLC.
    Once I create item prototypes for ap ip and ap serial number I would like some kind of widget or graph that will show me all the aps with their names and serial numbers. So based on my snmp walk I would like a widget or graph to show something like:
    ap_name ap_ip ap_ serial_number
    OF-CherryGH-1 192.168.28.31 FJC25431ENG
    OF-ProdOff-2 192.168.28.25 FJC25431ENU
    OF-ITOffice-2 192.168.28.21 FJC25431ENX
    OF-ScaleHouse- 1 192.168.28.32 FJC25431ENW

    On my discovery rule my full SNMP OID: looks like this:
    SMP OID:discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME}, 1.3.6.1.2.1.47.1.1.1.1.7,{#ENT_SN},1.3.6.1.2.1.47. 1.1.1.1.11]

    Have I created my discovery rule and item prototype correctly? What is correct way to display my info (ie via widget or graph)?


    prototype item
    Latest Data
Working...