[edit]
# iscsiadm
# open-iscsi administration utility
# Discover targets at iscsi portal ADDR:PORT
# Prints a list of available iscsi targets, example:
#
# <target-ip>:<port> <IQN>
# 10.10.10.42:3260,1 iqn.2007-10:iscsi.target0
iscsiadm -m discovery -t sendtargets -p ADDR:PORT
# login to target IQN at portal ADDR:PORT:
iscsiadm -m node -T IQN -p ADDR:PORT --login
# logout from specified target IQN:
iscsiadm -m node -T IQN --logout
# list active sessions:
iscsiadm -m session
# logout from all active sessions:
iscsiadm -m node --logout
$
cheat.sh
cheat.sheets