ICX Health Check and Get Switch Mode
Configures the warning temperature of the chassis. This REST API is used to get the actual temperature, warning temperature, and shutdown temperature of the chassis. It provides the fan and power supply status. It is also used to get the model name of the switch or router.
/components/component
Supported HTTP Operations
URL: https://<host>/restconf/data/openconfig-platform:components
Request body: None
Response body: {
"openconfig-platform:components": {
"component": [
{
"name": "ICX7650-48P POE 48-port Management Module",
"config": {
"name": "ICX7650-48P POE 48-port Management Module"
},
"state": {
"temperature": {
"icx-openconfig-platform-aug:actual_temperature": 27,
"icx-openconfig-platform-aug:warning_temperature": 65,
"icx-openconfig-platform-aug:shutdown_temperature": 70
},
"icx-openconfig-platform-aug:switch-model": "ICX7650-48-HPOE"
},
"power-supply": {
"state": {
"icx-openconfig-platform-aug:power-supply-1-status": "Power supply 1 not present\n",
"icx-openconfig-platform-aug:power-supply-2-status": "Power supply 2 (AC - PoE) present, status ok\n \t"
}
},
"fan": {
"state": {
"icx-openconfig-platform-aug:fan-1-status": "Fan 1 ok, ",
"icx-openconfig-platform-aug:fan-2-status": "Fan 2 ok"
}
}
}
]
}
}
To set the warning temperature of the chassis using PATCH or PUT method:
URL: https://<host>/restconf/data/openconfig-platform:components/component=ICX7650-48P POE 48-port Management Module/config
Request body:
{
"config": {
"stack_id": 1,
"warning_temperature": 66
}
}
Response body: None