SCSI\_MANDAT(8) SG3\_UTILS SCSI\_MANDAT(8)

# [NAME](#NAME)

scsi\_mandat - check SCSI device support for mandatory commands

# [SYNOPSIS](#SYNOPSIS)

**scsi\_mandat** \[*--help*] \[*--log*] \[*--quiet*] \[*--verbose*] *DEVICE*

# [DESCRIPTION](#DESCRIPTION)

This bash shell script calls several SCSI commands on the given *DEVICE*. These SCSI commands are considered mandatory (although that varies a little depending on which standard/draft the *DEVICE* complies with). The results of each test and a pass/fail count are output.

# [OPTIONS](#OPTIONS)

Arguments to long options are mandatory for short options as well.

[**-h**, **--help**](#h)

print out the usage message then exit.

[**-L**, **--log**](#L)

the output to stderr (from each SCSI command executed) is appended to a file called 'scsi\_mandat.err' in the current working directory.

[**-q**, **--quiet**](#q)

the amount of output is reduced and typically only the pass/fail count is output.

[**-v**, **--verbose**](#v)

increase level or verbosity.

# [EXIT STATUS](#EXIT_STATUS)

The exit status of this script is the number of "bad" errors found. So an exit status of 0 means all mandatory SCSI commands worked as expected.

# [AUTHORS](#AUTHORS)

Written by D. Gilbert

# [COPYRIGHT](#COPYRIGHT)

Copyright © 2011-2013 Douglas Gilbert  
This software is distributed under a BSD-2-Clause license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# [SEE ALSO](#SEE_ALSO)

**sg\_inq,sg\_luns,sg\_turs,sg\_requests,sg\_vpd,sg\_senddiag (sg3\_utils)**

May 2013 sg3\_utils-1.36

---

Document: scsi_mandat(8) from sg3-utils 1.49-r2 (Chainguard OS)
Source: https://github.com/doug-gilbert/sg3_utils.git
