bad command name health (line 1 column 17)

Why do I receive and error like on title when I send a command : > system/hardware/health ?

[me@myTik] > system/health/print
Columns: NAME, VALUE, TYPE
#  NAME             VALUE  TYPE
0  cpu-temperature     56  C

Where have you found the hardware part of the path? The above is from ROS 7.16.2, but I cannot remember any other form of the command for past several years.

@sindy

mik 7.16.2.png

miksyshela.png

I could only find the /system/hardware path on a CHR, and there, it has nothing to do with health. Vice versa, there are no temperature, voltage, or fan speed sensors on a virtual router, so the /system/health cannot show any useful values.

So what is your routerboard model, and what you actually want to achieve?

I’m on CHR installation. I’d like to see if there are some values stored about CPU temp or other.

The physical machine on which the CHR is currently running may have tens of CPUs, the CHR gets slices of random ones of them, and at any time it can migrate to another machine. The CHR itself has no way to determine automatically whether it is running on your own hardware or somewhere in a cloud data center.

So if you are running the CHR on your own server and want the CHR itself to do something based on this type of data, you’ll have to obtain them from the IPMI/iLO/iDRAC/whatever the name of the monitoring and management adaptor your server is equipped with using SNMP or maybe from the hypervisor itself using ssh-exec.