How can I view the sensor readings from the Sovereign 4897-JBOD enclosure?

Problem:

How can I view the sensor readings from the Sovereign 4897-JBOD enclosure?

Solution:

Sensor readings are available via SES (SAS Enclosure Services). Access to SES is provided by the sg_ses command which is part of the sg3_utils package. A sample Python script using sg_ses can be downloaded from ASL:

ftp://ftp.aslab.com/pub/utility/ses_status

The script requires version 1.35 or higher of sg3_utils. An updated package for CentOS 6 can be downloaded from ASL:

ftp://ftp.aslab.com/pub/utility/sg3_utils-1.35-1.x86_64.rpm

Sample output:

***** 0x50030480002b153d /dev/sg187 *****
  LSI       SAS2X36           0e0b
  Primary enclosure logical identifier (hex): 50030480002b153f
Fan1 [2,0]  Element type: Cooling
  Enclosure Status:
    Predicted failure=0, Disabled=0, Swap=0, status: OK
    Ident=0, Hot swap=0, Fail=0, Requested on=1, Off=0
    Actual speed=5760 rpm, Fan at intermediate speed

  LSI       SAS2X36           0e0b
  Primary enclosure logical identifier (hex): 50030480002b153f
Fan2 [2,1]  Element type: Cooling
  Enclosure Status:
    Predicted failure=0, Disabled=0, Swap=0, status: OK
    Ident=0, Hot swap=0, Fail=0, Requested on=1, Off=0
    Actual speed=6240 rpm, Fan at second highest speed

  LSI       SAS2X36           0e0b
  Primary enclosure logical identifier (hex): 50030480002b153f
Fan3 [2,2]  Element type: Cooling
  Enclosure Status:
    Predicted failure=0, Disabled=0, Swap=0, status: OK
    Ident=0, Hot swap=0, Fail=0, Requested on=1, Off=0
    Actual speed=6060 rpm, Fan at third highest speed

  LSI       SAS2X36           0e0b
  Primary enclosure logical identifier (hex): 50030480002b153f
Fan4 [2,3]  Element type: Cooling
  Enclosure Status:
    Predicted failure=0, Disabled=0, Swap=0, status: OK
    Ident=0, Hot swap=0, Fail=0, Requested on=1, Off=0
    Actual speed=5580 rpm, Fan at third lowest speed

  LSI       SAS2X36           0e0b
  Primary enclosure logical identifier (hex): 50030480002b153f
Temperature [1,0]  Element type: Temperature sensor
  Enclosure Status:
    Predicted failure=0, Disabled=0, Swap=0, status: OK
    Ident=0, Fail=0, OT failure=0, OT warning=0, UT failure=0
    UT warning=0
    Temperature=30 C

***** 0x50030480002e70bd /dev/sg140 *****
  LSI       SAS2X36           0e0b
  Primary enclosure logical identifier (hex): 50030480002e703f
Power Supply 1 [4,0]  Element type: Power supply
  Enclosure Status:
    Predicted failure=0, Disabled=0, Swap=0, status: OK
    Ident=1, DC overvoltage=0, DC undervoltage=0, DC overcurrent=0
    Hot swap=0, Fail=0, Requested on=1, Off=0, Overtmp fail=0
    Temperature warn=0, AC fail=0, DC fail=0

  LSI       SAS2X36           0e0b
  Primary enclosure logical identifier (hex): 50030480002e703f
Power Supply 2 [4,1]  Element type: Power supply
  Enclosure Status:
    Predicted failure=0, Disabled=0, Swap=0, status: OK
    Ident=1, DC overvoltage=0, DC undervoltage=0, DC overcurrent=0
    Hot swap=0, Fail=0, Requested on=1, Off=0, Overtmp fail=0
    Temperature warn=0, AC fail=0, DC fail=0

  LSI       SAS2X36           0e0b
  Primary enclosure logical identifier (hex): 50030480002e703f
Fan1 [2,0]  Element type: Cooling
  Enclosure Status:
    Predicted failure=0, Disabled=0, Swap=0, status: OK
    Ident=0, Hot swap=0, Fail=0, Requested on=1, Off=0
    Actual speed=5520 rpm, Fan at second lowest speed

  LSI       SAS2X36           0e0b
  Primary enclosure logical identifier (hex): 50030480002e703f
Fan2 [2,1]  Element type: Cooling
  Enclosure Status:
    Predicted failure=0, Disabled=0, Swap=0, status: OK
    Ident=0, Hot swap=0, Fail=0, Requested on=1, Off=0
    Actual speed=5700 rpm, Fan at third lowest speed

  LSI       SAS2X36           0e0b
  Primary enclosure logical identifier (hex): 50030480002e703f
Fan3 [2,2]  Element type: Cooling
  Enclosure Status:
    Predicted failure=0, Disabled=0, Swap=0, status: OK
    Ident=0, Hot swap=0, Fail=0, Requested on=1, Off=0
    Actual speed=5580 rpm, Fan at third lowest speed

  LSI       SAS2X36           0e0b
  Primary enclosure logical identifier (hex): 50030480002e703f
Temperature [1,0]  Element type: Temperature sensor
  Enclosure Status:
    Predicted failure=0, Disabled=0, Swap=0, status: OK
    Ident=0, Fail=0, OT failure=0, OT warning=0, UT failure=0
    UT warning=0
    Temperature=36 C