CmdID

CmdID / Commands

iscsiadm

Manage iSCSI sessions, nodes, and discovery. tldr-pages

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

Show active iSCSI sessions

sudo iscsiadm --mode sessionIdentify

List all known iSCSI nodes

sudo iscsiadm --mode nodeIdentify

Discover available iSCSI targets on a portal (no authentication)

sudo iscsiadm --mode discovery --type sendtargets --portal ip_addressIdentify

Log in to a specific iSCSI target without authentication

sudo iscsiadm --mode node --targetname iqn --portal ip_address:3260 --loginIdentify

Log out from a specific iSCSI target

sudo iscsiadm --mode node --targetname iqn --portal ip_address:3260 --logoutIdentify

Create an iSCSI node when discovery is blocked (for CHAP authentication)

sudo iscsiadm --mode node --op new --targetname iqn --portal ip_address:3260Identify

Configure CHAP authentication for an iSCSI target

sudo iscsiadm --mode node --targetname iqn --portal ip_address:3260 --op update --name node.session.auth.authmethod --value CHAPIdentify