XPath to collect IOS-XE Temperature metrics

XPath to collect IOS-XE Temperature metrics

  • #xpath
- Last updated on

This will apply Only for physical 9800-40, 9800-80 and 9800-L “on the Wireless side” it should work with other Cisco Catalyst devices like CAT9300-9500, etc.

Cisco Platform

IOS XE

CLI

show environment summary

WLC’s version used

17.9.1ES13

Yang Module

Cisco-IOS-XE-environment-oper

Prefix

environment-ios-xe-oper

XPath

/environment-ios-xe-oper:environment-sensors/environment-sensor

Example:

Sending REST

http://<IP:PORT>/restconf/proxy/https://<IP:PORT>/restconf/data/Cisco-IOS-XE-environment-oper:environment-sensors/environment-sensor={environment-sensor-name},location={environment-sensor-location}

Received message from host

{
  "Cisco-IOS-XE-environment-oper:environment-sensor": [
    {
},
    {
      "name": "Temp: RCRX IN ",
      "location": "R0",
      "state": "Normal",
      "current-reading": 18,
      "sensor-units": "celsius",
      "low-critical-threshold": 62,
      "low-normal-threshold": -2147483647,
      "high-normal-threshold": 51,
      "high-critical-threshold": 72,
      "sensor-name": "temperature"
    },
    {
      "name": "Temp: RCRX OUT",
      "location": "R0",
      "state": "Normal",
      "current-reading": 33,
      "sensor-units": "celsius",
      "low-critical-threshold": 72,
      "low-normal-threshold": -2147483647,
      "high-normal-threshold": 61,
      "high-critical-threshold": 79,
      "sensor-name": "temperature"
    },
    {
      "name": "Temp: Yoda    ",
      "location": "R0",
      "state": "Normal",
      "current-reading": 39,
      "sensor-units": "celsius",
      "low-critical-threshold": 81,
      "low-normal-threshold": -2147483647,
      "high-normal-threshold": 70,
      "high-critical-threshold": 89,
      "sensor-name": "temperature"
    },
    {
      "name": "Temp: XEPhy   ",
      "location": "R0",
      "state": "Normal",
      "current-reading": 40,
      "sensor-units": "celsius",
      "low-critical-threshold": 85,
      "low-normal-threshold": -2147483647,
      "high-normal-threshold": 74,
      "high-critical-threshold": 89,
      "sensor-name": "temperature"
    },
    {
      "name": "Temp: CPU Die ",
      "location": "R0",
      "state": "Normal",
      "current-reading": 50,
      "sensor-units": "celsius",
      "low-critical-threshold": 108,
      "low-normal-threshold": -2147483647,
      "high-normal-threshold": 97,
      "high-critical-threshold": 109,
      "sensor-name": "temperature"
    },
    {
      "name": "Temp: FC FANS",
      "location": "R0",
      "state": "Fan Speed 50%",
      "current-reading": 19,
      "sensor-units": "celsius",
      "low-critical-threshold": 0,
      "low-normal-threshold": 0,
      "high-normal-threshold": 0,
      "high-critical-threshold": 0,
      "sensor-name": "temperature"
    }
  ]
}

Copyright © 2024 Darwin Castro