Options (9)
-m, --modebooleanShow active iSCSI sessions
Example:
sudo iscsiadm {{[-m|--mode]}} session-t, --typebooleanDiscover available iSCSI targets on a portal (no authentication)
Example:
sudo iscsiadm {{[-m|--mode]}} discovery {{[-t|--type]}} sendtargets {{[-p|--portal]}} {{ip_address}}-p, --portalbooleanDiscover available iSCSI targets on a portal (no authentication)
Example:
sudo iscsiadm {{[-m|--mode]}} discovery {{[-t|--type]}} sendtargets {{[-p|--portal]}} {{ip_address}}-T, --targetnamebooleanLog in to a specific iSCSI target without authentication
Example:
sudo iscsiadm {{[-m|--mode]}} node {{[-T|--targetname]}} {{iqn}} {{[-p|--portal]}} {{ip_address}}:3260 {{[-l|--login]}}-l, --loginbooleanLog in to a specific iSCSI target without authentication
Example:
sudo iscsiadm {{[-m|--mode]}} node {{[-T|--targetname]}} {{iqn}} {{[-p|--portal]}} {{ip_address}}:3260 {{[-l|--login]}}-u, --logoutbooleanLog out from a specific iSCSI target
Example:
sudo iscsiadm {{[-m|--mode]}} node {{[-T|--targetname]}} {{iqn}} {{[-p|--portal]}} {{ip_address}}:3260 {{[-u|--logout]}}-o, --opbooleanCreate an iSCSI node when discovery is blocked (for CHAP authentication)
Example:
sudo iscsiadm {{[-m|--mode]}} node {{[-o|--op]}} new {{[-T|--targetname]}} {{iqn}} {{[-p|--portal]}} {{ip_address}}:3260-n, --namebooleanConfigure CHAP authentication for an iSCSI target
Example:
sudo iscsiadm {{[-m|--mode]}} node {{[-T|--targetname]}} {{iqn}} {{[-p|--portal]}} {{ip_address}}:3260 {{[-o|--op]}} update {{[-n|--name]}} node.session.auth.authmethod {{[-v|--value]}} CHAP-v, --valuebooleanConfigure CHAP authentication for an iSCSI target
Example:
sudo iscsiadm {{[-m|--mode]}} node {{[-T|--targetname]}} {{iqn}} {{[-p|--portal]}} {{ip_address}}:3260 {{[-o|--op]}} update {{[-n|--name]}} node.session.auth.authmethod {{[-v|--value]}} CHAPExamples (7)
Discover available iSCSI targets on a portal (no authentication)
Log in to a specific iSCSI target without authentication
Log out from a specific iSCSI target
Create an iSCSI node when discovery is blocked (for CHAP authentication)
made by @shridhargupta | data from tldr-pages