LSI MegaRaid - get HDD temperature

With megacli 8.02.16 (and maybe older versions, who knows), I found this info per-drive with:

megacli -PDInfo -aALL

Each drive has a line like:

Drive Temperature :26C (78.80 F)


On a newer version of MegaCLI (get it from http://www-947.ibm.com/support/entry/portal/docdisplay?lndocid=migr-5082327) you will get drive temp, with -PDList, tested on my servers. The additional problem would be the fact that for controller temp (also important) you need to have a temp sensor in place (it seems it does not come with one, at least AdpAllInfo says that)


You could try accessing the SMART data with smartmontools. According to their docs, LSI is supported.


With MegaCLI SAS RAID Management Tool Ver 8.07.10 May 28, 2013 it is:

megacli -PDList -aAll | grep Temperature