2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-15 06:12:59 +00:00
cheat.sheets/sheets/iscsiadm

22 lines
538 B
Plaintext
Raw Normal View History

2021-06-05 18:39:11 +00:00
# iscsiadm
# open-iscsi administration utility
# Discover targets at iscsi portal ADDR:PORT
# Prints a list of available iscsi targets, example:
#
# <taget-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