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