Blame 0016-README-changes-for-flashnode-submode-support-for-hos.patch

c2d5d2
From 65998ba3f2413069aa2242645712969d62d9c140 Mon Sep 17 00:00:00 2001
c2d5d2
From: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
c2d5d2
Date: Fri, 22 Mar 2013 07:35:53 -0400
c2d5d2
Subject: README changes for flashnode submode support for host mode.
c2d5d2
c2d5d2
Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
c2d5d2
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
c2d5d2
---
c2d5d2
 README | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
c2d5d2
 1 file changed, 73 insertions(+)
c2d5d2
c2d5d2
diff --git a/README b/README
c2d5d2
index ec22098..29b00a9 100644
c2d5d2
--- a/README
c2d5d2
+++ b/README
c2d5d2
@@ -406,6 +406,29 @@ Usage: iscsiadm [OPTION]
c2d5d2
 			  is connected to.
c2d5d2
 			  3 = Print iscsi params used.
c2d5d2
 			  4 = Print SCSI info like LUNs, device state.
c2d5d2
+  -m host --host=hostno|MAC -C flashnode
c2d5d2
+			  Display list of all the targets in adapter's
c2d5d2
+			  flash (flash node), for the specified host,
c2d5d2
+			  with ip, port, tpgt and iqn.
c2d5d2
+  -m host --host=hostno|MAC -C flashnode --op=[NEW] --portal_type=[ipv4|ipv6]
c2d5d2
+			  Create new flash node entry for the given host of the
c2d5d2
+			  specified portal_type. This returns the index of the
c2d5d2
+			  newly created entry on success.
c2d5d2
+  -m host --host=hostno|MAC -C flashnode --flashnode_idx=[flashnode index] \
c2d5d2
+				--op=[UPDATE] --name=[name] --value=[value]
c2d5d2
+			  Update the params of the speficied flash node.
c2d5d2
+			  The [name] and [value] pairs must be provided for the
c2d5d2
+			  params that need to be updated. Multiple params can
c2d5d2
+			  be updated using a single command.
c2d5d2
+  -m host --host=hostno|MAC -C flashnode--flashnode_idx=[flashnode index] \
c2d5d2
+				--op=[SHOW | DELETE | LOGIN | LOGOUT]
c2d5d2
+			  op=DELETE|LOGIN|LOGOUT will perform deletion/login/
c2d5d2
+			  logout operation on the specified flash node.
c2d5d2
+
c2d5d2
+			  op=SHOW will list all params with the values for the
c2d5d2
+			  specified flash node. This is the default operation.
c2d5d2
+
c2d5d2
+			  See the iscsiadm example section for more info.
c2d5d2
   -d, --debug debuglevel  print debugging information
c2d5d2
   -V, --version           display version and exit
c2d5d2
   -h, --help              display this help and exit
c2d5d2
@@ -960,6 +983,56 @@ To now log into targets it is the same as with sofware iscsi. See section
c2d5d2
 
c2d5d2
 	    ./iscsiadm -m session -P 1
c2d5d2
 
c2d5d2
+
c2d5d2
+    Host mode with flashnode submode:
c2d5d2
+
c2d5d2
+    - Display list of flash nodes for a host
c2d5d2
+
c2d5d2
+	    ./iscsiadm -m host -H 6 -C flashnode
c2d5d2
+
c2d5d2
+	This will print list of all the flash node entries for the given host 6
c2d5d2
+	along with their ip, port, tpgt and iqn values.
c2d5d2
+
c2d5d2
+    - Display all parameters of a flash node entry for a host
c2d5d2
+
c2d5d2
+	    ./iscsiadm -m host -H 6 -C flashnode -x 0
c2d5d2
+
c2d5d2
+	This will list all the parameter name,value pairs for flash node entry at
c2d5d2
+	index 0 of host 6.
c2d5d2
+
c2d5d2
+    - Add a new flash node entry for a host
c2d5d2
+
c2d5d2
+	    ./iscsiadm -m host -H 6 -C flashnode -o new -A ipv4
c2d5d2
+	or
c2d5d2
+	    ./iscsiadm -m host -H 6 -C flashnode -o new -A ipv6
c2d5d2
+
c2d5d2
+	This will add new flash node entry for the given host 6 with portal
c2d5d2
+	type of either ipv4 or ipv6. The new operation returns the index of
c2d5d2
+	the newly created flash node entry.
c2d5d2
+
c2d5d2
+    - Update a flashnode entry
c2d5d2
+	    ./iscsiadm -m host -H 6 -C flashnode -x 1 -o update \
c2d5d2
+		-n flashnode.conn[0].ipaddress -v 192.168.1.12 \
c2d5d2
+		-n flashnode.session.targetname \
c2d5d2
+		-v iqn.2002-03.com.compellent:5000d310004b0716
c2d5d2
+
c2d5d2
+	This will update the values of ipaddress and targetname params of
c2d5d2
+	flash node entry at index 1 of host 6.
c2d5d2
+
c2d5d2
+    - Login to a flash node entry
c2d5d2
+	    ./iscsiadm -m host -H 6 -C flashnode -x 1 -o login
c2d5d2
+
c2d5d2
+    - Logout from a flash node entry
c2d5d2
+	    ./iscsiadm -m host -H 6 -C flashnode -x 1 -o logout
c2d5d2
+	or
c2d5d2
+	    ./iscsiadm -m session -r $sid -u
c2d5d2
+
c2d5d2
+	Logout can be performed either using the flash node index or using the
c2d5d2
+	corresponding session index.
c2d5d2
+
c2d5d2
+    - Delete a flash node entry
c2d5d2
+	    ./iscsiadm -m host -H 6 -C flashnode -x 1 -o delete
c2d5d2
+
c2d5d2
 6. Configuration
c2d5d2
 ================
c2d5d2
 
c2d5d2
-- 
c2d5d2
1.8.1.4
c2d5d2