mej / nhc

LBNL Node Health Check
Other
213 stars 78 forks source link

Check for cpu number and models #105

Open zhum opened 2 years ago

zhum commented 2 years ago

Please, add this check. Now I check this via dmidecode, but I should to specify id and it could change on different nodes. I would be good to change this

 n45* || check_dmi_data_match -h 0x005A -t 4 "Processor Information: Version: Intel(R) Xeon(R) Gold 6240 CPU @ 2.60GHz"
 n45* || check_dmi_data_match -h 0x005E -t 4 "Processor Information: Version: Intel(R) Xeon(R) Gold 6240 CPU @ 2.60GHz"

into something like this:

 n45* || check_hw_cpunum 2 "Intel(R) Xeon(R) Gold 6240 CPU @ 2.60GHz"