ISCSI-LS(1)
π ISCSI-LS(1) β the manual, bestie edition β¨
okay so you opened the manual page for iscsi-ls (that's the one and only, section 1 of the manual, iykyk) and honestly? iconic of you. sit down, hydrate, let's get into it. π«Ά
β¨ NAME β¨
iscsi-ls β a utility to list iSCSI targets and LUNs. that's the whole vibe. it lists. it's a lister. π
πΈ SYNOPSIS πΈ
iscsi-ls [ OPTIONS ] <ISCSI-PORTAL>
iscsi-ls [-i --initiator-name=<IQN>] [-s --show-luns] [-d --debug]
[-? --help] [--usage]
like, give it a portal, maybe give it some options, and it will deliver. periodt. π
π¦ DESCRIPTION π¦
iscsi-ls is a utility to list all targets and LUNs for an iSCSI portal. that's it. that's the job. no cap, it just shows you what's out there. π₯
π ISCSI PORTAL URL FORMAT π
the iSCSI portal format is literally this:
'iscsi://[<username>[%<password>]@]<host>[:<port>]'
Username and password are only required if the target requires CHAP authentication. and bestie, if you don't wanna type them every single time, you can optionally specify the username and password via the environment variables LIBISCSI_CHAP_USERNAME and LIBISCSI_CHAP_PASSWORD. set it and forget it, we love convenience. π
Host can be specified either as a hostname, an IPv4 address or an IPv6 address. examples, because we're visual learners:
iscsi://192.0.2.1
iscsi://[2001:DB8::1]:3261
iscsi://ronnie%password@iscsi.example.com
Port is the TCP port on the target to connect to. default is 3260. remember it, love it, it's the default. β¨
π OPTIONS π
-i,--initiator-name=<IQN>β this specifies the initiator-name thatiscsi-lswill use when logging in to the target. the default name isiqn.2007-10.com.github:sahlberg:libiscsi:iscsi-lsbut you can use this argument to override it. this is mainly needed for cases where the target is configured with access-control to only allow discovery logins from known initiator-names. so like, if the target is picky about who it lets in (fair, honestly), this is your moment. π-s,--show-lunsβ in addition to listing all the targets at the specified portal, this also lists all the LUNs and their types on each discovered target. more info, more fun. π
heads up bestie: in order to display the type of LUN, iscsi-ls needs to be able to perform a normal login on the targets. if the target is using access-control you will need to specify an initiator-name that allows normal logins to the target. no sneaking in. π
-d,--debugβ print debug information. when things are giving mystery, this is your bestie. π-?,--helpβ display basic help text. the classic. the icon.--usageβ display basic usage text. shorter, snappier, still slays.
π SEE ALSO π
go read those too, they're part of the family. πΈ
and that's the whole page, bestie. this was iscsi-ls from the manual (section 1, obviously), dated 06/03/2017, and if you ever need to check the source or version info, it's all filed right there under iscsi-ls β mwah, go list some targets. πβ¨ππ¦
π¦ 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