istgtcontrol(1)
π istgtcontrol(1) β General Commands Manual π
okay bestie, sit down, grab a boba, because we're talking about istgtcontrol β the little command-and-control bestie for istgt(1) that lets you poke at a local or remote istgt instance and ask it how it's doing (or tell it what to do, no cap). β¨
π NAME π
istgtcontrol β the istgt iSCSI target command utility. it's giving "remote control for your storage, but make it cute". π
β¨ SYNOPSIS β¨
istgtcontrol [options] <command> [<file>]
πΈ DESCRIPTION πΈ
istgtcontrol is a command and control utility for istgt(1). It can be used to query and change the status of a local or remote istgt instance. literally its whole personality. π¦
istgtcontrol supports all the commands listed below to interact with the istgt instance. By default it connects and authenticates to the iSCSI target portal specified in the istgtcontrol.conf configuration file, and uses the CHAP credentials written down in there, if there are any. Both of those things can be overridden by using the respective command line arguments β so yeah, you have main character energy and full control. π
π« COMMANDS π«
istgtcontrol understands the following commands, which can be forwarded to istgt:
noopβ does not actually do anything π, but it tests the responsiveness of the portal and tests the CHAP credentials only. it's the vibe check of commands.versionβ retrieves the istgt version number providing the iSCSI portal thatistgtcontrolconnected to. β¨listβ lists all the targets shared by the portal, or just the specified targets only. πloadβ loads a new media to the specified unit. This command issues the same command as if a drive tray had been closed on a SCSI device.unloadβ unloads a media from the specified unit. This command issues the same command as if the drive tray had been opened from a SCSI device.change fileβ changes the loaded media by the specified unit. This command is equivalent to as if a new media (for example a DVD-ROM or tape cartridge) had been inserted in the SCSI drive. The"file"argument is interpreted as filename to be loaded. iconic behavior tbh. πΏresetβ resets the specified LUN of the portal.infoβ displays all connections of the portal. π
π OPTIONS π
-c configβ use the specified file as the configuration file instead of the default file.-h hostβ override the target portal by the specified host name or IP address. This defaults to"localhost"if no other host was specified in the configuration file.-p portβ override the target portal port by the specified port number. This defaults to"3261"if no other port was specified in the configuration file.-t targetβ specifies the target IQN which should be affected by the command given. There may be a default given in the configuration file. The keyword"all"is accepted by some commands and matches all exported volumes.-l lunβ specifies the target LUN which should be affected by the command given. This defaults to"0"unless another default was provided in the configuration file.-f flagsβ specifies flags passed to the portal when loading a new media. This defaults to"ro". Supported flags are:"ro","rw","extend"and"dynamic".-s sizeβ specifies the size of the media to be loaded. The default is to auto-detect the media size.-qβ quiet mode, suppresses non-critical outputs. π€«-vβ verbose mode, gives more output during operations. π£οΈ-A methodβ sets the preferred authentication method for logging in to the portal. This overrides any method specified in the configuration file. Supported methods are eitherCHAP/MutualorCHAP/Auto.-U userβ sets the user to authenticate on the portal. This overrides any username specified in the configuration file.-S secretβ sets the secret used to authenticate on the portal. This overrides any secret specified in the configuration file.-M muserβ sets the mutual authentication user. This overrides any user specified in the configuration file.-R msecretβ sets the mutual authentication secret. This overrides any secret specified in the configuration file.-Hβ displays a brief usage summary and exits. short and sweet fr fr.-Vβ displays theistgtcontrolversion number and exits. β
π FILES π
/etc/istgt/istgtcontrol.confβ the configuration file. π«Ά
π SEE ALSO π
π AUTHORS π
Daisuke Aoyama <aoyama@peach.ne.jp>
This manual page was written by Arno TΓΆll (<debian@toell.net>) for the Debian GNU/kFreeBSD system (but may be used by others). π§
aaaand that's the whole page bestie, no notes. π this was istgtcontrol, from the General Commands Manual, dated Oct 07, 2011 β go forth and control your targets, you absolute legend. β¨π
πΈ
π¦ where this page comes from
- debian bookworm: istgt 0.4~20111008-4+b1 Β· BSD-2-Clause
- debian trixie: istgt 0.4~20111008-4+b2 Β· BSD-2-Clause
- ubuntu jammy: istgt 0.4~20111008-4build1 Β· BSD-2-Clause
- ubuntu noble: istgt 0.4~20111008-4build3 Β· BSD-2-Clause
- ubuntu questing: istgt 0.4~20111008-4build3
- ubuntu resolute: istgt 0.4~20111008-4build4 Β· BSD-2-Clause
- ubuntu stonking: istgt 0.4~20111008-4ubuntu1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms