SAF-TE


In computer storage, SAF-TE is an industry standard to interface an enclosure to a SCSI subsystem to gain access to information or control for various elements and parameters. These include temperature, fan status, slot status, door status, power supplies, alarms, and indicators. Practically, any given SAF-TE device will only support a subset of all possible sensors or controls.

Scope

Many RAID controllers can utilize a SAF-TE "activated" backplane by detecting a swapped drive and automatically starting a rebuild. A passive subsystem usually requires a manual rescan and rebuild.
A SAF-TE device is represented as a SCSI processor device that is polled every few seconds by e.g. the RAID controller software. Due to the low overhead required, impact on bus performance is negligible. For SAS or Fibre Channel systems, SAF-TE is replaced by the more standardized SCSI Enclosure Services.
The most widely used version was defined in the SAF-TE Interface Specification Intermediate Review R041497, released on April 14, 1997 by nStor and Intel.

Command interface

Status requests are performed as READ BUFFER SCSI commands, enclosure action requests as WRITE BUFFER commands.
Command typeOpcodemandatory / optionalCommandDescription
READ BUFFER00hmRead enclosure configurationinquire about system components in the enclosure
READ BUFFER01hmRead enclosure statusinquire about operational status of enclosure components
READ BUFFER02hoRead usage statisticsfetch information about total usage time and number of power-cycles
READ BUFFER03hoRead device insertionsreturns information on how many times a device has been inserted into each enclosure slot
READ BUFFER04hmRead device slot statusreturns information on the current state of each slot
READ BUFFER05hoRead global flagsread global flags from processor
WRITE BUFFER10hmWrite device slot statusupdates state of the slots, essentially drives LEDs, alarms etc.
WRITE BUFFER11hoSet SCSI IDset the SCSI ID of any device on the channel
WRITE BUFFER12hmPerform slot operationprepare a slot for insertion or removal
WRITE BUFFER13hoSet fan speedset rotational speed for each fan
WRITE BUFFER14hoActivate power supplyturn a power supply on or off
WRITE BUFFER15hmSend global flagssend global flags to processor