iscsiadm

From RaySoft

The iscsiadm utility is a command-line tool allowing discovery and login to iSCSI targets, as well as access and management of the open-iscsi database.[1]

Documentation

Syntax

iscsiadm [PARAMETER ...]

Parameters

-l, --login
For node and fw mode, login to a specified record. For discovery mode, login to all discovered targets. This option is only valid for discovery and node modes.
-L [all|manual|automatic], --loginall=[all|manual|automatic]
For node mode, login all sessions with the node or conn startup values passed in or all running sesssion, except ones marked onboot, if all is passed in. This option is only valid for node mode.
-m MODE, --mode MODE
Specify the MODE which must be one of discovery, node, fw, host iface or session.
-n NAME, --name=NAME
Specify a field NAME in a record. For use with the update operator.
-o OPERATOR, --op=OPERATOR
Specifies a database OPERATOR which must be one of new, delete, update, show or nonpersistent. For iface mode, apply and applyall are also applicable.
-p IP[:PORT], --portal=IP[:PORT]
Use target portal with ip-address IP and PORT. If PORT is not passed in the default port value is 3260.
-s, --stats
Display session statistics.
-t TYPE, --type=TYPE
TYPE must be sendtargets (or abbreviated as st), slp, isns or fw. This option is only valid for discovery mode.
-T NAME, --targetname=NAME
Use target targetname.
-u, --logout
Logout for a specified record. This option is only valid for node and session mode.
-v VALUE, --value=VALUE
Specify a VALUE for use with the update operator. This option is only valid for node mode.

References

  1. man 8 'iscsiadm'