Here are some examples of scripts that I have written using the command-line engine in smartmon-ux.
Emulate the typical LED and alarms one would see with a hardware-based RAID controller so an appliance that uses software-based RAID has same look-and feel …
The ANSI SCSI Enclosure Services (SES-2) specification can be downloaded here.
Below is a dump from a Xyratex SES compliant enclosure, using SANtools smartmon-ux software. Portions in blue are vendor-specific.
root@morph smartmon]# ./smartmon-ux -E+ /dev/sdc
SMARTMon-ux [Release 1.23, Build 30-NOV-2003] - Copyright 2003 SANtools, Inc. http://www.SANtools.com SEAGATE ST336753FC S/N "3HX00LE3" on /dev/sdc [SES] (Not Enabling SMART)(35003 MB)
Discovered XYRATEX RS1600-FC2-FFX2 WWN=20-00-00-50-CC-00-7B-8E:
Configuration switches numbered from 1-12 as viewed from rear, top to bottom
Vendor-specific features (Notes) [SWITCH SETTING]
SoftSelect Mode (Disabled) [SW11-OFF]
Drive Speed (2 Gbit FC Mode)
SCSI Enclosure Services, referred as SES or SES-2, depending on the revision level, is a command set that is used to manage and sense the state of the power supplies, cooling devices, displays, indicators, individual drives, and other non-SCSI elements installed in a fibre channel or SAS (host-attached) enclosure. Intelligent enclosures that connect to the host via a SCSI cable will normally speak the SAF-TE protocol.
The command set is defined as an ANSI specification, and utilizes the SCSI commands to obtain configuration information for the enclosure as well as reprogram it to light external indicator LEDs or audible alarms to inform the user about the health and maintenance information for attached RAID controllers and disk drives.
Yes – SES, which stands for SCSI ENCLOSURE SERVICES, is the ANSI standard by which Fibre Channel-attached subsystems adhere to. SCSI enclosures “speak” SAF-TE, which stands for SCSI Accessed Fault Tolerant Enclosures.
The SES specification has a great deal of intelligence, which allows for not only reporting health, but changing fan speeds, manipulating the LEDs, and controlling audible alarms. SAF-TE is a rather dumb interface that reports the most basic information in more of a pass/fail form.