|
|
786c6d |
From f1ed1f7049f42ad12f5e6bf5b02de75290271c56 Mon Sep 17 00:00:00 2001
|
|
|
786c6d |
From: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
|
|
|
786c6d |
Date: Tue, 17 Sep 2013 08:07:34 -0400
|
|
|
786c6d |
Subject: [PATCH] README changes for adding support to set CHAP entry
|
|
|
786c6d |
|
|
|
786c6d |
README changes for the support added to set CHAP entry using chap
|
|
|
786c6d |
submode of iscsiadm host mode.
|
|
|
786c6d |
|
|
|
786c6d |
Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
|
|
|
786c6d |
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
|
|
|
786c6d |
---
|
|
|
786c6d |
README | 42 +++++++++++++++++++++++++++++++++++++++++-
|
|
|
786c6d |
1 file changed, 41 insertions(+), 1 deletion(-)
|
|
|
786c6d |
|
|
|
786c6d |
diff --git a/README b/README
|
|
|
786c6d |
index dda16c9..813548d 100644
|
|
|
786c6d |
--- a/README
|
|
|
786c6d |
+++ b/README
|
|
|
786c6d |
@@ -393,7 +393,7 @@ Usage: iscsiadm [OPTION]
|
|
|
786c6d |
See below for examples.
|
|
|
786c6d |
-m iface --interface=iscsi_ifacename -C ping --ip=[ipaddr] --packetsize=[size]
|
|
|
786c6d |
--count=[count] --interval=[interval]
|
|
|
786c6d |
- -m host --host=hostno|MAC --print=level -C chap --op=[op] --index=[chap_tbl_idx]
|
|
|
786c6d |
+ -m host --host=hostno|MAC --print=level -C chap --op=[SHOW]
|
|
|
786c6d |
Display information for a specific host. The host
|
|
|
786c6d |
can be passed in by host number or by MAC address.
|
|
|
786c6d |
If a host is not passed in then info
|
|
|
786c6d |
@@ -406,6 +406,14 @@ Usage: iscsiadm [OPTION]
|
|
|
786c6d |
is connected to.
|
|
|
786c6d |
3 = Print iscsi params used.
|
|
|
786c6d |
4 = Print SCSI info like LUNs, device state.
|
|
|
786c6d |
+ -m host --host=hostno|MAC -C chap --op=[DELETE] --index=[chap_tbl_idx]
|
|
|
786c6d |
+ Delete chap entry at the given index from chap table.
|
|
|
786c6d |
+ -m host --host=hostno|MAC -C chap --op=[NEW | UPDATE] --index=[chap_tbl_idx] \
|
|
|
786c6d |
+ --name=[name] --value=[value]
|
|
|
786c6d |
+ Add new or update existing chap entry at the given
|
|
|
786c6d |
+ index with given username and password pair. If index
|
|
|
786c6d |
+ is not passed then entry is added at the first free
|
|
|
786c6d |
+ index in chap table.
|
|
|
786c6d |
-m host --host=hostno|MAC -C flashnode
|
|
|
786c6d |
Display list of all the targets in adapter's
|
|
|
786c6d |
flash (flash node), for the specified host,
|
|
|
786c6d |
@@ -1033,6 +1041,38 @@ To now log into targets it is the same as with sofware iscsi. See section
|
|
|
786c6d |
- Delete a flash node entry
|
|
|
786c6d |
./iscsiadm -m host -H 6 -C flashnode -x 1 -o delete
|
|
|
786c6d |
|
|
|
786c6d |
+ Host mode with chap submode:
|
|
|
786c6d |
+
|
|
|
786c6d |
+ - Display list of chap entries for a host
|
|
|
786c6d |
+
|
|
|
786c6d |
+ ./iscsiadm -m host -H 6 -C chap -o show
|
|
|
786c6d |
+
|
|
|
786c6d |
+ This will list all the chap entries for the given host.
|
|
|
786c6d |
+
|
|
|
786c6d |
+ - Delete a chap entry for a host
|
|
|
786c6d |
+
|
|
|
786c6d |
+ ./iscsiadm -m host -H 6 -C chap -o delete -x 5
|
|
|
786c6d |
+
|
|
|
786c6d |
+ This will delete any chap entry present at given index 5.
|
|
|
786c6d |
+
|
|
|
786c6d |
+ - Add/Update a local chap entry for a host
|
|
|
786c6d |
+
|
|
|
786c6d |
+ ./iscsiadm -m host -H 6 -C chap -o update -x 4 -n username \
|
|
|
786c6d |
+ -v value -n password -v value
|
|
|
786c6d |
+
|
|
|
786c6d |
+ This will update the local chap entry present at index 4. If index 4
|
|
|
786c6d |
+ is free then entry of type local chap will be created at that index
|
|
|
786c6d |
+ with given username and password values.
|
|
|
786c6d |
+
|
|
|
786c6d |
+ - Add/Update a bidi chap entry for a host
|
|
|
786c6d |
+
|
|
|
786c6d |
+ ./iscsiadm -m host -H 6 -C chap -o update -x 5 -n username_in \
|
|
|
786c6d |
+ -v value -n password_in -v value
|
|
|
786c6d |
+
|
|
|
786c6d |
+ This will update the bidi chap entry present at index 5. If index 5
|
|
|
786c6d |
+ is free then entry of type bidi chap will be created at that index
|
|
|
786c6d |
+ with given username_in and password_in values.
|
|
|
786c6d |
+
|
|
|
786c6d |
6. Configuration
|
|
|
786c6d |
================
|
|
|
786c6d |
|
|
|
786c6d |
--
|
|
|
786c6d |
1.8.3.1
|
|
|
786c6d |
|