ISCSI-INQ(1)
π iscsi-inq β the manual page, but make it a group chat π
okay bestie, gather round, because today we're learning about iscsi-inq, a lil utility from the iscsi-inq corner of the manual-verse (it's filed under section 1, for the record π). she requests INQUIRY data from an iSCSI LUN and honestly? she ate. no cap. π
β¨ NAME β¨
iscsi-inq β a utility to request INQUIRY data from an iSCSI LUN π¦
πΈ SYNOPSIS πΈ
like, here's the shape of it:
iscsi-inq [ OPTIONS ] <ISCSI-URL>
and also, the fully spelled-out version, so you know exactly which flags exist and nothing is a mystery:
iscsi-inq [-i --initiator-name=<IQN>] [-e --evpd=<INTEGER>]
[-c --pagecode=<INTEGER>] [-d --debug=<INTEGER>] [-? --help]
[--usage] [<ISCSI-URL>]
π DESCRIPTION π
so basically: iscsi-inq is a utility to request INQUIRY data from an iSCSI LUN. that's the whole job. she asks, the LUN answers. iconic behaviour. β¨
π ISCSI URL FORMAT π
the iSCSI URL format is, drumroll please:
'iscsi://[<username>[%<password>]@]<host>[:<port>]/<target-iqn-name>/<lun>'
username and password are only required if the target requires CHAP authentication β so if your target is chill, you can skip them. and if you'd rather not type them into the URL at all, you can optionally hand them over via the environment variables LIBISCSI_CHAP_USERNAME and LIBISCSI_CHAP_PASSWORD. lowkey convenient. π«Ά
host can be a hostname, an IPv4 address, or an IPv6 address. she's flexible like that. examples:
iscsi://192.0.2.1/iqn.ronnie.test/1
iscsi://[2001:DB8::1]:3261/iqn.ronnie.test/1
iscsi://ronnie%password@iscsi.example.com/iqn.ronnie.test/1
port is the TCP port on the target you're connecting to. default is 3260.
target-iqn-name is the iqn name of the target. heads up: one iSCSI portal can have multiple targets defined, so if you're not sure which ones are out there, use iscsi-ls to list all the targets available on one specific portal. π§
lun is the LUN number you want the INQUIRY data for. periodt.
π OPTIONS π
-i,--initiator-name=<IQN>β this specifies the initiator-name thatiscsi-inqwill use when logging in to the target. the default name isiqn.2007-10.com.github:sahlberg:libiscsi:iscsi-inq, but you can use this argument to override it. when do you actually need this? mainly in cases where the target is configured with access-control to only allow discovery logins from known initiator-names. so if you're getting rejected, this might be your girl. π-e,--evpd=<INTEGER>β by defaultiscsi-inqwill display the standard inquiry data. specify evpd as1to display extended VPD pages instead. that's the switch. πΈ-c,--pagecode=<INTEGER>β this argument specifies which VPD page to display when evpd is requested. the default is0x00, which represents SUPPORTED VPD PAGES. β¨
real talk: this argument can only be used when evpd is set to 1. don't try it otherwise, bestie, she's not gonna play. π
-d,--debug=<INTEGER>β debug level. turn it up if you wanna see the β¨inner workingsβ¨.-?,--helpβ display basic help text. the classic. π--usageβ display basic usage text. slightly different from help, and yes, both exist. π
π EXAMPLES π
wanna print the standard INQUIRY page? say less:
iscsi-inq iscsi://192.0.2.1/iqn.ronnie.test/1
wanna list the available pages? here:
iscsi-inq -e 1 iscsi://192.0.2.1/iqn.ronnie.test/1
wanna show one specific page? okay main character:
iscsi-inq -e 1 -c 0x80 iscsi://192.0.2.1/iqn.ronnie.test/1
π¦ SEE ALSO π¦
go forth and inquire, bestie. you've got this. π₯
iscsi-inq πΈ 03/22/2014 πΈ that's the page, that's the date, that's the vibe. mwah. πβ¨π
π¦ where this page comes from
- arch rolling: libiscsi 1.20.3-1 Β· LGPL-2.1-or-later
- centos-stream 9: libiscsi-utils 1.19.0-5.el9 Β· GPLv2+
- debian bookworm: libiscsi-bin 1.19.0-3 Β· GPL-2.0-or-later
- debian trixie: libiscsi-bin 1.20.0-4 Β· GPL-2.0-or-later
- fedora 43: libiscsi-utils 1.20.0-5.fc43 Β· GPL-2.0-or-later
- fedora 44: libiscsi-utils 1.20.3-4.fc44 Β· GPL-2.0-or-later
- nixos 26.05: libiscsi 1.20.3
- nixpkgs unstable: libiscsi 1.20.3
- opensuse-leap 16.0: libiscsi-utils 1.19.0+git.20230208-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: libiscsi-utils 1.19.0+git.20230208-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: libiscsi-utils 1.19.0+git.20230208-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: libiscsi-utils 1.19.0+git.20230208-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- ubuntu jammy: libiscsi-bin 1.19.0-3build2 Β· GPL-2.0-or-later
- ubuntu noble: libiscsi-bin 1.19.0-3build4 Β· GPL-2.0-or-later
- ubuntu questing: libiscsi-bin 1.20.0-4
- ubuntu resolute: libiscsi-bin 1.20.0-4build1 Β· GPL-2.0-or-later
- ubuntu stonking: libiscsi-bin 1.20.0-4build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms