1SG_RMSN(8)                         SG3_UTILS                        SG_RMSN(8)
2
3
4

NAME

6       sg_rmsn - sends a SCSI READ MEDIA SERIAL NUMBER command
7

SYNOPSIS

9       sg_rmsn [--help] [--raw] [--verbose] [--version] DEVICE
10

DESCRIPTION

12       Send  a SCSI READ MEDIA SERIAL NUMBER command to DEVICE and outputs the
13       response.
14
15       This command is described in SPC-3 found at www.t10.org . It was origi‐
16       nally added to SPC-3 in revision 11 (2003/2/12). It is not an mandatory
17       command and the author has not seen any SCSI devices that support it.
18

OPTIONS

20       Arguments to long options are mandatory for short options as well.
21
22       -h, --help
23              output the usage message then exit.
24
25       -r, --raw
26              sends the serial number (if found) to stdout.  This  output  may
27              contain  non-printable  characters  (e.g.  the  serial number is
28              padded with NULLs at the end so its length is a multiple of  4).
29              The  default  action  is  to  print  the  serial  number  out in
30              ASCII-HEX with ASCII characters to the right. All error messages
31              are sent to stderr.
32
33       -v, --verbose
34              increase the level of verbosity, (i.e. debug output).
35
36       -V, --version
37              print the version string and then exit.
38

NOTES

40       Device  identification  information is also found in a standard INQUIRY
41       response and its VPD pages (see sg_vpd). The relevant VPD pages are the
42       "device  identification page" (VPD page 0x83) and the "unit serial num‐
43       ber" page (VPD page 0x80).
44
45       The MMC-4 command set for CDs and DVDs has a "media serial number" fea‐
46       ture (0x109) [and a "logical unit serial number" feature]. These can be
47       viewed with sg_get_config.
48

EXIT STATUS

50       The exit status of sg_rmsn is 0 when it is  successful.  Otherwise  see
51       the sg3_utils(8) man page.
52

AUTHORS

54       Written by Douglas Gilbert.
55

REPORTING BUGS

57       Report bugs to <dgilbert at interlog dot com>.
58
60       Copyright © 2005-2007 Douglas Gilbert
61       This  software is distributed under a FreeBSD license. There is NO war‐
62       ranty; not even for MERCHANTABILITY or FITNESS FOR  A  PARTICULAR  PUR‐
63       POSE.
64

SEE ALSO

66       sg_vpd(sg3_utils), sg_get_config(sg3_utils)
67
68
69
70sg3_utils-1.23                   January 2007                       SG_RMSN(8)
Impressum