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