Blame 0041-README-changes-for-adding-support-to-set-CHAP-entry.patch

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