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)
Below is a dump from a DotHill SAF-TE compliant enclosure, using SANtools smartmon-ux software. The text in RED indicates the SAF-TE components. This was run on a Windows-based O/S, but the software is ported to Solaris, LINUX, IRIX, AIX, HP-UX, and other UNIX Variants.
smartmon-ux -I+ -E+ \\.\SCSI3:
SMARTMon-ux [Release 1.13, Build 4-SEP-2002] - Copyright 2002 SANtools, Inc. http://www.SANtools.com
Discovered CNSi JSS122 S/N " " on \\.\SCSI3: (processor) [SAF-TE] [Adapter/ID.LUN=0/0.6]
Inquiry Text Page Data - ANSI defined fields
Device Type: processor
Peripheral Qualifier: Connected to this LUN
Removable Device: NO
ANSI Version: 3 (SPC ANSI X3.301:1997)
ISO/IEC Version: 0
ECMA Version: 0
Vendor Identification: CNSi
Product Identification: JSS122
Firmware Revision: L421
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.
SAF-TE: SCSI accessed fault-tolerant enclosures interface specification
(Editor’s note: Below from Intel’s SAF-TE site)
This specification defines a set of SCSI commands for setting drive status information, including status for RAID arrays, into a (SAF-TE compliant) disk drive array enclosure. The drive array enclosure may be a separate enclosure, or the same enclosure. The specification also defines commands for managing hot-swap drive slots and returning environmental health information for a drive enclosure.
The status commands are typically used by the enclosure manufacturer to assert lights or other indicators Read more…
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.