OS Manuals

/usr/bin/tgt-admin

Linux SCSI target framework (tgtd) - Rancher fork with Longhorn patches

From rancher-tgt 1.0.79.2-r1 (enterprise-packages), captured 2026-11-08 by running tgt-admin --help (exit 0). permalink

Also provided by 1 other package version
Usage:
tgt-admin [OPTION]...
This tool configures tgt targets.

  -e, --execute			read /etc/tgt/targets.conf and execute tgtadm commands
      --delete <value>		delete all or selected targets
				(see "--delete help" for more info)
      --offline <value>		put all or selected targets in offline state
				(see "--offline help" for more info)
      --ready <value>		put all or selected targets in ready state
				(see "--ready help" for more info)
      --update <value>		update configuration for all or selected targets
				(see "--update help" for more info)
  -s, --show			show all the targets
  -C, --control-port <NNNN>	specify the control port to connect to
  -c, --conf <conf file>	specify an alternative configuration file
      --ignore-errors		continue even if tgtadm exits with non-zero code
  -f, --force			force some operations even if the target is in use
  -p, --pretend			only print tgtadm options
      --dump			dump current tgtd configuration (note: does not
				include detailed parameters, like write caching)
  -v, --verbose			increase verbosity (show tgtadm commands)
  -h, --help			show this help
Options (14)
OptionDescriptionSource
-e, --executeread /etc/tgt/targets.conf and execute tgtadm commandshelp
--delete valuedelete all or selected targets (see "--delete help" for more info)help
--offline valueput all or selected targets in offline state (see "--offline help" for more info)help
--ready valueput all or selected targets in ready state (see "--ready help" for more info)help
--update valueupdate configuration for all or selected targets (see "--update help" for more info)help
-s, --showshow all the targetshelp
-C, --control-port NNNNspecify the control port to connect tohelp
-c, --conf confspecify an alternative configuration filehelp
--ignore-errorscontinue even if tgtadm exits with non-zero codehelp
-f, --forceforce some operations even if the target is in usehelp
-p, --pretendonly print tgtadm optionshelp
--dumpdump current tgtd configuration (note: does not include detailed parameters, like write caching)help
-v, --verboseincrease verbosity (show tgtadm commands)help
-h, --helpshow this helphelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.