# Base profile for Cisco Wireless LAN Controllers
# This profile is only compatible with the core SNMP integration

metadata:
  device:
    fields:
      vendor:
        value: Cisco

metrics:
  # Connected APs metrics

  - MIB: AIRESPACE-WIRELESS-MIB
    table:
      OID: 1.3.6.1.4.1.14179.2.2.1
      name: bsnAPTable
    symbols:
      - OID: 1.3.6.1.4.1.14179.2.2.1.1.6
        name: bsnAPOperationStatus
        chart_meta:
          description: Operation State of the AP
          family: 'Network/Wireless/AccessPoint/Operational/Status'
          unit: "{status}"
        mapping:
          1: associated
          2: disassociating
          3: downloading
      - OID: 1.3.6.1.4.1.14179.2.2.1.1.37
        name: bsnAPAdminStatus
        chart_meta:
          description: Admin State of the AP
          family: 'Network/Wireless/AccessPoint/Admin/Status'
          unit: "{status}"
        mapping:
          1: enable
          2: disable
    metric_tags:
      - tag: ap_mac_address
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.1
          name: bsnAPDot3MacAddress
      - tag: ap_name
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.3
          name: bsnAPName
      - tag: ap_location
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.4
          name: bsnAPLocation
      - tag: ap_ip_address
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.19
          name: bsnApIpAddress

  # Connected APs 802.11 interfaces metrics

  - MIB: AIRESPACE-WIRELESS-MIB
    table:
      OID: 1.3.6.1.4.1.14179.2.2.2
      name: bsnAPIfTable
    symbols:
      - OID: 1.3.6.1.4.1.14179.2.2.2.1.12
        name: bsnAPIfOperStatus
        chart_meta:
          description: Operational status of the interface
          family: 'Network/Wireless/AccessPoint/Interface/Operational/Status'
          unit: "{status}"
        mapping:
          1: down
          2: up
      - OID: 1.3.6.1.4.1.14179.2.2.2.1.34
        name: bsnAPIfAdminStatus
        chart_meta:
          description: Admin status of the interface
          family: 'Network/Wireless/AccessPoint/Interface/Admin/Status'
          unit: "{status}"
        mapping:
          1: enable
          2: disable
    metric_tags:
      - tag: ap_if_slot_id
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.2.1.1
          name: bsnAPIfSlotId
      - tag: ap_mac_address
        table: bsnAPTable
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.1
          name: bsnAPDot3MacAddress
        index_transform: # Keep only MAC address index
          - start: 0
            end: 5
      - tag: ap_name
        table: bsnAPTable
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.3
          name: bsnAPName
        index_transform: # Keep only MAC address index
          - start: 0
            end: 5
      - tag: ap_location
        table: bsnAPTable
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.4
          name: bsnAPLocation
        index_transform: # Keep only MAC address index
          - start: 0
            end: 5
      - tag: ap_ip_address
        table: bsnAPTable
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.19
          name: bsnApIpAddress
        index_transform: # Keep only MAC address index
          - start: 0
            end: 5

  - MIB: AIRESPACE-WIRELESS-MIB
    table:
      OID: 1.3.6.1.4.1.14179.2.2.2
      name: bsnAPIfTable
    metric_type: gauge
    symbols:
      - OID: 1.3.6.1.4.1.14179.2.2.2.1.15
        name: bsnApIfNoOfUsers
        chart_meta:
          description: "Number of users associated with this radio"
          family: 'Network/Wireless/AccessPoint/Interface/User/Count'
          unit: "{user}"
    metric_tags:
      - tag: ap_if_slot_id
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.2.1.1
          name: bsnAPIfSlotId
      - tag: ap_mac_address
        table: bsnAPTable
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.1
          name: bsnAPDot3MacAddress
        index_transform: # Keep only MAC address index
          - start: 0
            end: 5
      - tag: ap_name
        table: bsnAPTable
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.3
          name: bsnAPName
        index_transform: # Keep only MAC address index
          - start: 0
            end: 5
      - tag: ap_location
        table: bsnAPTable
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.4
          name: bsnAPLocation
        index_transform: # Keep only MAC address index
          - start: 0
            end: 5
      - tag: ap_ip_address
        table: bsnAPTable
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.19
          name: bsnApIpAddress
        index_transform: # Keep only MAC address index
          - start: 0
            end: 5

  # Load metrics

  - MIB: AIRESPACE-WIRELESS-MIB
    table:
      OID: 1.3.6.1.4.1.14179.2.2.13
      name: bsnAPIfLoadParametersTable
    symbols:
      - OID: 1.3.6.1.4.1.14179.2.2.13.1.1
        name: bsnAPIfLoadRxUtilization
        chart_meta:
          description: "Percentage of time the Airespace AP receiver is busy operating on packets"
          family: 'Network/Wireless/AccessPoint/Radio/Receiver/Utilization'
          unit: "%"
      - OID: 1.3.6.1.4.1.14179.2.2.13.1.2
        name: bsnAPIfLoadTxUtilization
        chart_meta:
          description: "Percentage of time the Airespace AP transmitter is busy operating on packets"
          family: 'Network/Wireless/AccessPoint/Radio/Transmitter/Utilization'
          unit: "%"
      - OID: 1.3.6.1.4.1.14179.2.2.13.1.24
        name: bsnAPIfPoorSNRClients
        chart_meta:
          description: "Number of clients with poor SNR attached to this Airespace AP at the last measurement interval"
          family: 'Network/Wireless/AccessPoint/Client/PoorSNR'
          unit: "{client}"
      - OID: 1.3.6.1.4.1.14179.2.2.13.1.3
        name: bsnAPIfLoadChannelUtilization
        chart_meta:
          description: "Channel utilization"
          family: 'Network/Wireless/AccessPoint/Radio/Channel/Utilization'
          unit: "%"
    metric_tags:
      - tag: ap_if_slot_id
        table: bsnAPIfTable
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.2.1.1
          name: bsnAPIfSlotId
      - table: bsnAPTable
        tag: ap_mac_address
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.1
          name: bsnAPDot3MacAddress
        index_transform: # Keep only MAC address index
          - start: 0
            end: 5
      - tag: ap_name
        table: bsnAPTable
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.3
          name: bsnAPName
        index_transform: # Keep only MAC address index
          - start: 0
            end: 5
      - tag: ap_location
        table: bsnAPTable
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.4
          name: bsnAPLocation
        index_transform: # Keep only MAC address index
          - start: 0
            end: 5
      - tag: ap_ip_address
        table: bsnAPTable
        symbol:
          OID: 1.3.6.1.4.1.14179.2.2.1.1.19
          name: bsnApIpAddress
        index_transform: # Keep only MAC address index
          - start: 0
            end: 5

  # WLAN Metrics

  - MIB: AIRESPACE-WIRELESS-MIB
    table:
      OID: 1.3.6.1.4.1.14179.2.1.1
      name: bsnDot11EssTable
    symbols:
      - OID: 1.3.6.1.4.1.14179.2.1.1.1.6
        name: bsnDot11EssAdminStatus
        chart_meta:
          description: Administrative Status of ESS(WLAN)
          family: 'Network/Wireless/WLAN/Admin/Status'
          unit: "{status}"
        mapping:
          0: disable
          1: enable
      - OID: 1.3.6.1.4.1.14179.2.1.1.1.60
        name: bsnDot11EssRowStatus
        chart_meta:
          description: Row status type for the bsnDot11EssEntry
          family: 'Network/Wireless/WLAN/Config/RowStatus'
          unit: "{status}"
        mapping:
          1: active
          2: notInService
          3: notReady
          4: createAndGo
          5: createAndWait
          6: destroy
      - OID: 1.3.6.1.4.1.14179.2.1.1.1.38
        name: bsnDot11EssNumberOfMobileStations
        chart_meta:
          description: Number of mobile stations currently associated with the WLAN
          family: 'Network/Wireless/WLAN/Station/Count'
          unit: "{station}"
    metric_tags:
      - tag: wlan_index
        symbol:
          OID: 1.3.6.1.4.1.14179.2.1.1.1.1
          name: bsnDot11EssIndex
      - tag: ssid
        symbol:
          OID: 1.3.6.1.4.1.14179.2.1.1.1.2
          name: bsnDot11EssSsid
