iscsiadm
TLDR
Show active sessions
SYNOPSIS
iscsiadm -m mode [options]
DESCRIPTION
iscsiadm is the command-line tool for managing iSCSI initiator connections. It handles discovery of iSCSI targets, authentication configuration, and session management.
iSCSI allows block storage to be accessed over IP networks, presenting remote storage as local SCSI devices. The initiator (client) connects to targets (storage) using IQNs (iSCSI Qualified Names) for identification.
PARAMETERS
-m, --mode MODE
Operation mode: discovery, node, session, iface-t, --type TYPE
Discovery type: sendtargets, isns-p, --portal IP:PORT
Target portal address-T, --targetname IQN
Target iSCSI Qualified Name-l, --login
Log in to target-u, --logout
Log out from target-o, --op OP
Operation: new, delete, update, show-n, --name NAME
Parameter name-v, --value VALUE
Parameter value
CAVEATS
Requires root privileges. The iscsid daemon must be running. CHAP credentials must be configured before login for authenticated targets. Changes to node configuration require logout/login to take effect.
HISTORY
iscsiadm is part of the Open-iSCSI project, which provides the standard iSCSI implementation for Linux. iSCSI was standardized in RFC 3720 in 2004.


