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

NAME

6       sg_luns - send the SCSI REPORT LUNS command
7

SYNOPSIS

9       sg_luns  [--decode]  [--help] [--hex] [--raw] [--select=SR] [--verbose]
10       [--version] DEVICE
11

DESCRIPTION

13       Send the SCSI REPORT  LUNS  command  to  the  DEVICE  and  outputs  the
14       response. In the SPC-3 SCSI standard support for this command is manda‐
15       tory.
16

OPTIONS

18       Arguments to long options are mandatory for short options as well.
19
20       -d, --decode
21              decode logical  unit  numbers  into  their  hierarchical  parts.
22              Interprets  luns as described in SAM-3 when the HiSup bit is set
23              in a standard INQUIRY's response.
24
25       -h, --help
26              output the usage message then exit.
27
28       -H, --hex
29              output response to this command in ASCII hex.
30
31       -r, --raw
32              output response in binary (to stdout).
33
34       -s, --select=SR
35              this option sets the 'select report'  field  (SR)  in  the  SCSI
36              REPORT LUNS command. The default value is 0. When 0 is given (or
37              this option is not specified) then the  DEVICE  should  yield  a
38              list  of luns addressable via this "I_T nexus" that use the fol‐
39              lowing lun addressing methods: logical unit addressing,  periph‐
40              eral  device  addressing  and  flat space addressing.  When 1 is
41              given the DEVICE should yield a list of only "well known"  logi‐
42              cal  units addressable via this "I_T" nexus. When 2 is given the
43              DEVICE should yield all luns addressable via this  "I_T"  nexus.
44              Currently SPC-3 (rev 23) doesn't specify any other values.
45
46       -v, --verbose
47              increase the level of verbosity, (i.e. debug output).
48
49       -V, --version
50              print the version string and then exit.
51

EXIT STATUS

53       The  exit  status  of sg_luns is 0 when it is successful. Otherwise see
54       the sg3_utils(8) man page.
55

AUTHORS

57       Written by Douglas Gilbert.
58

REPORTING BUGS

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

SEE ALSO

69       sg_inq(sg3_utils)
70
71
72
73sg3_utils-1.23                   January 2007                       SG_LUNS(8)
Impressum