extends:
  - _aruba-base.yaml
  - _system-base.yaml
  - _std-if-mib.yaml

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.14823.1.1.1
        - 1.3.6.1.4.1.14823.1.1.2
        - 1.3.6.1.4.1.14823.1.1.3
        - 1.3.6.1.4.1.14823.1.1.4
        - 1.3.6.1.4.1.14823.1.1.7
        - 1.3.6.1.4.1.14823.1.1.8
        - 1.3.6.1.4.1.14823.1.1.9
        - 1.3.6.1.4.1.14823.1.1.10
        - 1.3.6.1.4.1.14823.1.1.11
        - 1.3.6.1.4.1.14823.1.1.12
        - 1.3.6.1.4.1.14823.1.1.13
        - 1.3.6.1.4.1.14823.1.1.14
        - 1.3.6.1.4.1.14823.1.1.15
        - 1.3.6.1.4.1.14823.1.1.16
        - 1.3.6.1.4.1.14823.1.1.17
        - 1.3.6.1.4.1.14823.1.1.18
        - 1.3.6.1.4.1.14823.1.1.19
        - 1.3.6.1.4.1.14823.1.1.20
        - 1.3.6.1.4.1.14823.1.1.23
        - 1.3.6.1.4.1.14823.1.1.24
        - 1.3.6.1.4.1.14823.1.1.25
        - 1.3.6.1.4.1.14823.1.1.26
        - 1.3.6.1.4.1.14823.1.1.27
        - 1.3.6.1.4.1.14823.1.1.28
        - 1.3.6.1.4.1.14823.1.1.29
        - 1.3.6.1.4.1.14823.1.1.30
        - 1.3.6.1.4.1.14823.1.1.31
        - 1.3.6.1.4.1.14823.1.1.32
        - 1.3.6.1.4.1.14823.1.1.33
        - 1.3.6.1.4.1.14823.1.1.34
        - 1.3.6.1.4.1.14823.1.1.35
        - 1.3.6.1.4.1.14823.1.1.39
        - 1.3.6.1.4.1.14823.1.1.40
        - 1.3.6.1.4.1.14823.1.1.41
        - 1.3.6.1.4.1.14823.1.1.42
        - 1.3.6.1.4.1.14823.1.1.47
        - 1.3.6.1.4.1.14823.1.1.48
        - 1.3.6.1.4.1.14823.1.1.56

metadata:
  device:
    fields:
      type:
        value: WLC
      vendor:
        value: Aruba

metric_tags:
  - tag: wlsx_sys_ext_hw_version
    OID: 1.3.6.1.4.1.14823.2.2.1.2.1.27.0
    symbol: wlsxSysExtHwVersion
  - tag: wlsx_sys_ext_sw_version
    OID: 1.3.6.1.4.1.14823.2.2.1.2.1.28.0
    symbol: wlsxSysExtSwVersion
  - tag: wlsx_model_name
    OID: 1.3.6.1.4.1.14823.2.2.1.1.1.2.0
    symbol: wlsxModelName
  - tag: wlsx_switch_role
    OID: 1.3.6.1.4.1.14823.2.2.1.1.1.4.0
    symbol: wlsxSwitchRole
    mapping:
      1: master
      2: local
      3: standbymaster
      4: branch
      5: md
  - tag: wlsx_switch_license_serial_number
    OID: 1.3.6.1.4.1.14823.2.2.1.1.1.12.0
    symbol: wlsxSwitchLicenseSerialNumber

metrics:
  - MIB: WLSX-SYSTEMEXT-MIB
    symbol:
      name: cpu.usage
      OID: 1.3.6.1.4.1.14823.2.2.1.2.1.30.0
      chart_meta:
        description: The current CPU utilization
        family: 'System/CPU/Usage'
        unit: "%"
  - MIB: WLSX-SYSTEMEXT-MIB
    symbol:
      name: memory.usage
      OID: 1.3.6.1.4.1.14823.2.2.1.2.1.31.0
      chart_meta:
        description: Memory usage percentage
        family: 'System/Memory/Usage'
        unit: "%"
  - MIB: WLSX-SYSTEMEXT-MIB
    symbol:
      name: wlsxSysExtPacketLossPercent
      OID: 1.3.6.1.4.1.14823.2.2.1.2.1.32.0
      chart_meta:
        description: Packet loss percentage
        family: 'Network/Packet/Loss'
        unit: "%"
  - MIB: WLSX-SWITCH-MIB
    table:
      name: wlsxSysXStorageTable
      OID: 1.3.6.1.4.1.14823.2.2.1.1.1.10
    symbols:
      - name: sysXStorageSize
        OID: 1.3.6.1.4.1.14823.2.2.1.1.1.10.1.3
        chart_meta:
          description: Size of the storage filesystem in MB
          family: 'System/Storage/Total'
          unit: "MBy"
      - name: sysXStorageUsed
        OID: 1.3.6.1.4.1.14823.2.2.1.1.1.10.1.4
        chart_meta:
          description: Size of the storage filesystem in MB
          family: 'System/Storage/Used'
          unit: "MBy"
    metric_tags:
      - symbol:
          name: sysXStorageType
          OID: 1.3.6.1.4.1.14823.2.2.1.1.1.10.1.2
        tag: sys_x_storage_type
        mapping:
          1: ram
          2: flash_memory
      - symbol:
          name: sysXStorageName
          OID: 1.3.6.1.4.1.14823.2.2.1.1.1.10.1.5
        tag: sys_x_storage_name
  - MIB: WLSX-SWITCH-MIB
    table:
      name: wlsxSwitchAccessPointTable
      OID: 1.3.6.1.4.1.14823.2.2.1.1.3.3
    symbols:
      - name: apChannelNoise
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.3.1.13
        chart_meta:
          description: Noise on the channel
          family: 'Network/Wireless/AccessPoint/Channel/Noise'
          unit: "dB"
      - name: apSignalToNoiseRatio
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.3.1.14
        chart_meta:
          description: Signal to noise ratio for the BSSID
          family: 'Network/Wireless/AccessPoint/Signal/SNR'
          unit: "dB"
    metric_tags:
      - symbol:
          name: apESSID
          OID: 1.3.6.1.4.1.14823.2.2.1.1.3.3.1.2
        tag: ap_essid
      - symbol:
          name: apPhyType
          OID: 1.3.6.1.4.1.14823.2.2.1.1.3.3.1.6
        tag: ap_phy_type
        mapping:
          1: dot11a
          2: dot11b
          3: dot11g
      - symbol:
          name: apType
          OID: 1.3.6.1.4.1.14823.2.2.1.1.3.3.1.7
        tag: ap_type
        mapping:
          1: ap
          2: am
      - symbol:
          name: apCurrentChannel
          OID: 1.3.6.1.4.1.14823.2.2.1.1.3.3.1.8
        tag: ap_current_channel
      - symbol:
          name: apLoadBalancing
          OID: 1.3.6.1.4.1.14823.2.2.1.1.3.3.1.12
        tag: ap_load_balancing
        mapping:
          1: "true"
          2: "false"
  - MIB: WLSX-SWITCH-MIB
    table:
      name: wlsxSwitchAccessPointStatsTable
      OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5
    symbols:
      - name: apChannelFrameRetryRate
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.3
        chart_meta:
          description: Number of retry packets as a percentage of the total packets transmitted and received on this channel
          family: 'Network/Wireless/AccessPoint/Channel/Frame/Retry'
          unit: "%"
      - name: apChannelFrameLowSpeedRate
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.4
        chart_meta:
          description: Number of low data rate packets as a percentage of the total packets transmitted and received on this channel
          family: 'Network/Wireless/AccessPoint/Channel/Frame/LowSpeed'
          unit: "%"
      - name: apChannelFrameNonUnicastRate
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.5
        chart_meta:
          description: Number of broadcast and multicast packets as a percentage of the total packets transmitted on this channel
          family: 'Network/Wireless/AccessPoint/Channel/Frame/NonUnicast'
          unit: "%"
      - name: apChannelFrameFragmentationRate
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.6
        chart_meta:
          description: Number of fragments as a percentage of the total packets transmitted on this channel
          family: 'Network/Wireless/AccessPoint/Channel/Frame/Fragmentation'
          unit: "%"
      - name: apChannelFrameReceiveErrorRate
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.7
        chart_meta:
          description: Number of error packets as a percentage of the total packets received on this channel
          family: 'Network/Wireless/AccessPoint/Channel/Frame/Error'
          unit: "%"
      - name: apBSSTxPackets
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.8
        chart_meta:
          description: Total packets transmitted by the ap on this BSSID
          family: 'Network/Wireless/AccessPoint/BSS/Packet/Out'
          unit: "{packet}/s"
      - name: apBSSRxPackets
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.10
        chart_meta:
          description: Total packets received by the ap on this BSSID
          family: 'Network/Wireless/AccessPoint/BSS/Packet/In'
          unit: "{packet}/s"
      - name: apChannelBwRate
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.2
        chart_meta:
          description: Bandwidth rate in Kbps of the apChannel
          family: 'Network/Wireless/AccessPoint/Channel/Bandwidth'
          unit: "kbit/s"
      - name: apBSSTxBytes
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.9
        chart_meta:
          description: Total bytes transmitted by the ap on this BSSID
          family: 'Network/Wireless/AccessPoint/BSS/Traffic/Out'
          unit: "By/s"
      - name: apBSSRxBytes
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.11
        chart_meta:
          description: Total bytes received by the ap on this BSSID
          family: 'Network/Wireless/AccessPoint/BSS/Traffic/In'
          unit: "By/s"
      - name: apBSSBwRate
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.12
        chart_meta:
          description: Bandwidth rate in Kbps of the ap on this BSSID
          family: 'Network/Wireless/AccessPoint/BSS/Bandwidth'
          unit: "kbit/s"
      - name: apBSSFrameRetryRate
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.13
        chart_meta:
          description: Frame retry rate on this BSSID
          family: 'Network/Wireless/AccessPoint/BSS/Frame/Retry'
          unit: "%"
      - name: apBSSFrameLowSpeedRate
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.14
        chart_meta:
          description: Frame low speed rate on this BSSID
          family: 'Network/Wireless/AccessPoint/BSS/Frame/LowSpeed'
          unit: "%"
      - name: apBSSFrameNonUnicastRate
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.15
        chart_meta:
          description: Frame non unicast packet rate on this BSSID
          family: 'Network/Wireless/AccessPoint/BSS/Frame/NonUnicast'
          unit: "%"
      - name: apBSSFrameFragmentationRate
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.16
        chart_meta:
          description: Frame fragmentation rate on this BSSID
          family: 'Network/Wireless/AccessPoint/BSS/Frame/Fragmentation'
          unit: "%"
      - name: apBSSFrameReceiveErrorRate
        OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.17
        chart_meta:
          description: Frame receive error rate on this BSSID
          family: 'Network/Wireless/AccessPoint/BSS/Frame/Error'
          unit: "%"
    metric_tags:
      - symbol:
          name: apStatsChannel
          OID: 1.3.6.1.4.1.14823.2.2.1.1.3.5.1.1
        tag: ap_stats_channel
  - MIB: WLSX-USER-MIB
    symbol:
      name: wlsxNumOfUsers8021x
      OID: 1.3.6.1.4.1.14823.2.2.1.4.1.4.1.0
      chart_meta:
        description: Number of 802.1x users
        family: 'System/User/802.1x/Count'
        unit: "{user}"
  - MIB: WLSX-USER-MIB
    symbol:
      name: wlsxNumOfUsersVPN
      OID: 1.3.6.1.4.1.14823.2.2.1.4.1.4.2.0
      chart_meta:
        description: Number of VPN users
        family: 'System/User/VPN/Count'
        unit: "{user}"
  - MIB: WLSX-USER-MIB
    symbol:
      name: wlsxNumOfUsersCP
      OID: 1.3.6.1.4.1.14823.2.2.1.4.1.4.3.0
      chart_meta:
        description: Number of Captive Portal users
        family: 'System/User/CaptivePortal/Count'
        unit: "{user}"
  - MIB: WLSX-USER-MIB
    symbol:
      name: wlsxNumOfUsersMAC
      OID: 1.3.6.1.4.1.14823.2.2.1.4.1.4.4.0
      chart_meta:
        description: Number of MAC users
        family: 'System/User/MAC/Count'
        unit: "{user}"
  - MIB: WLSX-USER-MIB
    symbol:
      name: wlsxNumOfUsersStateful8021x
      OID: 1.3.6.1.4.1.14823.2.2.1.4.1.4.5.0
      chart_meta:
        description: Number of stateful 802.1x users
        family: 'System/User/Stateful802.1x/Count'
        unit: "{user}"
  - MIB: WLSX-HA-MIB
    symbol:
      name: haActiveAPs
      OID: 1.3.6.1.4.1.14823.2.2.1.20.1.2.1.1.0
      chart_meta:
        description: Number of active APs
        family: 'System/HighAvailability/AccessPoint/Active'
        unit: "{access_point}"
  - MIB: WLSX-HA-MIB
    symbol:
      name: haStandbyAPs
      OID: 1.3.6.1.4.1.14823.2.2.1.20.1.2.1.2.0
      chart_meta:
        description: Number of standby APs
        family: 'System/HighAvailability/AccessPoint/Standby'
        unit: "{access_point}"
  - MIB: WLSX-HA-MIB
    symbol:
      name: haTotalAPs
      OID: 1.3.6.1.4.1.14823.2.2.1.20.1.2.1.3.0
      chart_meta:
        description: Total number of APs
        family: 'System/HighAvailability/AccessPoint/Total'
        unit: "{access_point}"
  - MIB: WLSX-HA-MIB
    table:
      name: wlsxHighAvalabilityTunnelTable
      OID: 1.3.6.1.4.1.14823.2.2.1.20.1.5
    symbols:
      - name: haActiveVapTunnels
        OID: 1.3.6.1.4.1.14823.2.2.1.20.1.5.1.1
        chart_meta:
          description: Number of active per VAP GRE tunnels
          family: 'Network/HighAvailability/Tunnel/VAPGRE/Active'
          unit: "{tunnel}"
      - name: haStandbyVapTunnels
        OID: 1.3.6.1.4.1.14823.2.2.1.20.1.5.1.2
        chart_meta:
          description: Number of standby per VAP GRE tunnels
          family: 'Network/HighAvailability/Tunnel/VAPGRE/Standby'
          unit: "{tunnel}"
      - name: haTotalVapTunnels
        OID: 1.3.6.1.4.1.14823.2.2.1.20.1.5.1.3
        chart_meta:
          description: Total number of per VAP GRE tunnels
          family: 'Network/HighAvailability/Tunnel/VAPGRE/Total'
          unit: "{tunnel}"
      - name: haAPHbtTunnels
        OID: 1.3.6.1.4.1.14823.2.2.1.20.1.5.1.4
        chart_meta:
          description: Number of AP hbt GRE tunnels
          family: 'Network/HighAvailability/Tunnel/APHBTGRE/Total'
          unit: "{tunnel}"
    metric_tags:
      - symbol:
          OID: 1.3.6.1.4.1.14823.2.2.1.20.1.1.1.2
          name: haMembership
        table: wlsxHighAvalabilityConfigTable
        tag: ha_membership
        # The actual index of the table is haProfileName that is not accessible

  - MIB: WLSX-WLAN-MIB
    table:
      name: wlsxWlanStationTable
      OID: 1.3.6.1.4.1.14823.2.2.1.5.2.2.1
    symbols:
      - name: wlanStaTransmitRate
        OID: 1.3.6.1.4.1.14823.2.2.1.5.2.2.1.1.10
        chart_meta:
          description: Transmit rate with which the station is associated with this system
          family: 'Network/Wireless/Station/Transmit'
          unit: "bit/s"
      - name: wlanStaRSSI
        OID: 1.3.6.1.4.1.14823.2.2.1.5.2.2.1.1.14
        chart_meta:
          description: Signal to noise ratio for the station
          family: 'Network/Wireless/Station/Signal/RSSI'
          unit: "dB"
      - name: wlanStaUpTime
        OID: 1.3.6.1.4.1.14823.2.2.1.5.2.2.1.1.15
        chart_meta:
          description: Time since the station associated to the current BSSID
          family: 'Network/Wireless/Station/Uptime'
          unit: "cs"
      # - name: wlanStaTransmitRateCode
      #   OID: 1.3.6.1.4.1.14823.2.2.1.5.2.2.1.1.17
      #   description: Transmit rate code of the station
      #   family: Station/TransmitRateCode
      #   unit: "TBD"
      # No mapping found
    metric_tags:
      - tag: wlan_sta_phy_type
        symbol:
          name: wlanStaPhyType
          OID: 1.3.6.1.4.1.14823.2.2.1.5.2.2.1.1.3
        mapping:
          1: dot11a
          2: dot11b
          3: dot11g
          4: dot11ag
          5: wired
      - tag: wlan_sta_access_point_essid
        symbol:
          name: wlanStaAccessPointESSID
          OID: 1.3.6.1.4.1.14823.2.2.1.5.2.2.1.1.12
      - tag: wlan_sta_channel
        symbol:
          name: wlanStaChannel
          OID: 1.3.6.1.4.1.14823.2.2.1.5.2.2.1.1.6
      - tag: wlan_sta_vlan_id
        symbol:
          name: wlanStaVlanId
          OID: 1.3.6.1.4.1.14823.2.2.1.5.2.2.1.1.7
      - tag: wlan_sta_is_authenticated
        symbol:
          name: wlanStaIsAuthenticated
          OID: 1.3.6.1.4.1.14823.2.2.1.5.2.2.1.1.4
        mapping:
          1: "true"
          2: "false"
      - tag: wlan_sta_is_associated
        symbol:
          name: wlanStaIsAssociated
          OID: 1.3.6.1.4.1.14823.2.2.1.5.2.2.1.1.5
        mapping:
          1: "true"
          2: "false"
      - tag: wlan_sta_ht_mode
        symbol:
          name: wlanStaHTMode
          OID: 1.3.6.1.4.1.14823.2.2.1.5.2.2.1.1.16
        mapping:
          1: none
          2: ht20
          3: ht40
          4: vht20
          5: vht40
          6: vht80
          7: vht160
          8: vht80plus80
          9: he20
          10: he40
          11: he80
          12: he160
          13: he80plus80

  - MIB: WLSX-WLAN-MIB
    table:
      name: wlsxWlanStationStatsTable
      OID: 1.3.6.1.4.1.14823.2.2.1.5.3.2.1
    symbols:
      - name: wlanStaTxBytes64
        OID: 1.3.6.1.4.1.14823.2.2.1.5.3.2.1.1.25
        chart_meta:
          description: Number of bytes transmitted by this station, 64-bit value
          family: 'Network/Wireless/Station/Traffic/Out'
          unit: "By"
      - name: wlanStaRxBytes64
        OID: 1.3.6.1.4.1.14823.2.2.1.5.3.2.1.1.26
        chart_meta:
          description: Number of bytes received by this station, 64-bit value
          family: 'Network/Wireless/Station/Traffic/In'
          unit: "By"
    metric_tags:
      - tag: wlan_sta_channel_num
        symbol:
          name: wlanStaChannelNum
          OID: 1.3.6.1.4.1.14823.2.2.1.5.3.2.1.1.1
