Hi All,
I am trying to fetch some vital data of JBOD enclosure like: voltage, temperature or fans speed, and put it into nagios check script. So far after installing sysutils/sg3_utils port I have managed to get some long listing by using command
But I cannot find a shorter solution to just output a value of e.g. temperature, so far I have tried something like
Is there a more elegant way or I will have to grep the output for searched term?
I am trying to fetch some vital data of JBOD enclosure like: voltage, temperature or fans speed, and put it into nagios check script. So far after installing sysutils/sg3_utils port I have managed to get some long listing by using command
sg_ses --page=es /dev/ses0But I cannot find a shorter solution to just output a value of e.g. temperature, so far I have tried something like
sg_ses --page=es --descriptor=TempSenseFP --get=(STR) /dev/ses0 where (STR) was substituted with ident or locate acronyms, which I've got from sg_ses --enumerate output. No success here Is there a more elegant way or I will have to grep the output for searched term?