1SCSI_MANDAT(8) SG3_UTILS SCSI_MANDAT(8)
2
3
4
6 scsi_mandat - check SCSI device support for mandatory commands
7
9 scsi_mandat [--help] [--log] [--quiet] [--verbose] DEVICE
10
12 This bash shell script calls several SCSI commands on the given DEVICE.
13 These SCSI commands are considered mandatory (although that varies a
14 little depending on which standard/draft the DEVICE complies with). The
15 results of each test and a pass/fail count are output.
16
18 Arguments to long options are mandatory for short options as well.
19
20 -h, --help
21 print out the usage message then exit.
22
23 -L, --log
24 the output to stderr (from each SCSI command executed) is
25 appended to a file called 'scsi_mandat.err' in the current work‐
26 ing directory.
27
28 -q, --quiet
29 the amount of output is reduced and typically only the pass/fail
30 count is output.
31
32 -v, --verbose
33 increase level or verbosity.
34
36 The exit status of this script is the number of "bad" errors found. So
37 an exit status of 0 means all mandatory SCSI commands worked as
38 expected.
39
41 Written by D. Gilbert
42
44 Copyright © 2011-2013 Douglas Gilbert
45 This software is distributed under a FreeBSD license. There is NO war‐
46 ranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR‐
47 POSE.
48
50 sg_inq,sg_luns,sg_turs,sg_requests,sg_vpd,sg_senddiag (sg3_utils)
51
52
53
54sg3_utils-1.36 May 2013 SCSI_MANDAT(8)