Skip to content

Instantly share code, notes, and snippets.

@silenius
Last active August 10, 2016 12:21
Show Gist options
  • Save silenius/f6746bc02ae1a5fb7e472e5f5334238b to your computer and use it in GitHub Desktop.
Save silenius/f6746bc02ae1a5fb7e472e5f5334238b to your computer and use it in GitHub Desktop.
~/ salt "filer1.prod.lan" cmd.run "cat /etc/iscsi.conf"
filer1.prod.lan:
t0 {
TargetAddress = 10.20.30.32
TargetName = iqn.2016-08.lan.prod:target0
AuthMethod = CHAP
chapIName = filer
chapSecret = xxxx
}
~/ salt "filer1.prod.lan" cmd.run "iscsictl -v"
filer1.prod.lan:
Session ID: 1
Initiator name: iqn.1994-09.org.freebsd:filer1.prod.lan
Initiator portal:
Initiator alias:
Target name: iqn.2016-08.lan.prod:target0
Target portal: 10.20.30.32
Target alias:
User: filer
Secret: xxxx
Mutual user:
Mutual secret:
Session type: Normal
Session state: Connected
Failure reason:
Header digest: None
Data digest: None
DataSegmentLen: 131072
ImmediateData: Yes
iSER (RDMA): No
Device nodes: da2 da3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment