1ISCSI-INQ(1)             iscsi-inq: Perform INQUIRY on            ISCSI-INQ(1)
2
3
4

NAME

6       iscsi-inq - Utility to request INQUIRY data from an iSCSI LUN
7

SYNOPSIS

9       iscsi-inq [ OPTIONS ] <ISCSI-URL>
10
11       iscsi-inq [-i --initiator-name=<IQN>] [-e --evpd=<INTEGER>]
12                 [-c --pagecode=<INTEGER>] [-d --debug=<INTEGER>] [-? --help]
13                 [--usage] [<ISCSI-URL>]
14

DESCRIPTION

16       iscsi-inq is a utility to request INQUIRY data from an iSCSI LUN.
17

ISCSI URL FORMAT

19       iSCSI URL format is
20       'iscsi://[<username>[%<password>]@]<host>[:<port>]/<target-iqn-name>/<lun>'
21
22       Username and password are only required if the target requires CHAP
23       authentication. Optionally you can specify the username and password
24       via the environment variables LIBISCSI_CHAP_USERNAME and
25       LIBISCSI_CHAP_PASSWORD.
26
27       Host can be specified either as a hostname, an IPv4 address or an IPv6
28       address. Examples:
29
30                iscsi://192.0.2.1/iqn.ronnie.test/1
31                iscsi://[2001:DB8::1]:3261/iqn.ronnie.test/1
32                iscsi://ronnie%password@iscsi.example.com/iqn.ronnie.test/1
33
34
35       Port is the TCP port on the target to connect to. Default is 3260.
36
37       Target-iqn-name is the iqn name of the target. An iSCSI portal can have
38       multiple targets defined. Use iscsi-ls to list all targets available on
39       one specific portal.
40
41       LUN is the LUN number to report the INQUIRY data for.
42

OPTIONS

44       -i --initiator-name=<IQN>
45           This specifies the initiator-name that iscsi-inq will use when
46           logging in to the target.
47
48           The default name is
49           'iqn.2007-10.com.github:sahlberg:libiscsi:iscsi-inq' but you can
50           use this argument to override this. This is mainly needed for cases
51           where the target is configured with access-control to only allow
52           discovery logins from known initiator-names.
53
54       -e --evpd=<INTEGER>
55           By default iscsi-inq will display the standard inquiry data.
56           Specify evpd as 1 to display extended VPD pages.
57
58       -c --pagecode=<INTEGER>
59           This argument specifies which VPD page to display when evpd is
60           requested. Default is 0x00 which represents SUPPORTED VPD PAGES.
61
62           This argument can only be used when evpd is set to 1.
63
64       -d --debug=<INTEGER>
65           Debug level.
66
67       -? --help
68           Display basic help text.
69
70       --usage
71           Display basic usage text.
72

EXAMPLES

74       To print the standard INQUIRY page:
75
76                iscsi-inq iscsi://192.0.2.1/iqn.ronnie.test/1
77
78
79       To list available pages:
80
81                iscsi-inq -e 1 iscsi://192.0.2.1/iqn.ronnie.test/1
82
83
84       To show a specific page:
85
86                iscsi-inq -e 1 -c 0x80 iscsi://192.0.2.1/iqn.ronnie.test/1
87
88
89

SEE ALSO

91       iscsi-ls(1) http://github.com/sahlberg/libiscsi
92
93
94
95iscsi-inq                         03/22/2014                      ISCSI-INQ(1)
Impressum