User manual
Using S.M.A.R.T. Disk Monitor 107
SANTOOLS® is registered in US Patent and Trademark Office No 3,107,854 All rights reserved.
Note that very few disk drives support the foreground mode.
Background mode
When the self-test runs in the background mode, the device server shall return status for that command as soon as
the CDB has been validated. After returning status for the SEND DIAGNOSTICS command specifying a self-test to be
performed in the
background mode, the device server shall initialize the Self-Test Results log page. While the device server is
performing a self-test in the background mode, it shall terminate with a CHECK CONDITION status any self-test
command it receives.
When terminating the SEND DIAGNOSTICS command, the sense key shall be set to NOT READY and the additional
sense code shall be set to LOGICAL UNIT NOT READY, SELF-TEST IN PROGRESS. While performing a self-test in
the background mode, the device server shall suspend the self-test to service any other commands received with the
exceptions listed in table 29. Suspension of the self-test to service the command shall occur as soon as practical and
shall not take longer than two seconds.
Table 29 — Exception commands for background self-tests [From ANSI Spec]
Device Type
Command Reference
All device types
SEND DIAGNOSTIC (with SELF-TEST CODE field set to 100b)
WRITE BUFFER (with the mode set to any download
microcode option)
Direct access
(i.e, disks)
· FORMAT UNIT
· START/STOP UNIT
Sequential access
(i.e. tapes)
· ERASE
· FORMAT MEDIUM
· LOAD UNLOAD
· LOCATE
· READ
· READ POSITION
· READ REVERSE
· REWIND
· SPACE
· VERIFY
· WRITE
· WRITE BUFFER
· WRITE FILEMARKS
Medium Changer
· EXCHANGE MEDIUM
· INITIALIZE ELEMENT STATUS
· MOVE MEDIUM
· POSITION TO ELEMENT
· READ ELEMENT STATUS
· WRITE BUFFER
Device types not listed in this table do not have commands that are exceptions for background self-tests, other than
those listed above for all device types.
If one of the exception commands listed in table 29 is received, the device server shall abort the self-test, update
the self-test log, and service the command as soon as practical but not longer than two seconds after the CDB has
been validated. An application client may terminate a self-test that is being performed in the background mode by
issuing a SEND DIAGNOSTICS command with the SELF-TEST CODE field set to 100b (Abort background self-test
function). This corresponds to sending the -str option with smartmon-ux.
Elements common to foreground and background self-test modes
Although devices report the results of the last twenty most recently completed self-tests, smartmon-ux reports only the
last 3 self tests via the -C option, where it reports the results in human-readable text. If you require the results of the