Emulex OneCommand Manager Command Line Interface User Manual (P006980-01A Version 5.2, August 2011)

OneCommand Manager Command Line Interface User Manual Page 57
ListSessions
Supported by: Windows, Solaris, Linux and VMware ESX
Syntax:
hbacmd [h=host_IP[:port] | hostname[:port]] ListSessions <MAC_Address>
<iscsi_target_name>
Description: This command lists all the sessions on a specified target. The iSCSI target name
<iscsi_target_name> instructs the command to gather the information from the listed iSCSI target
name.
Parameters:
MAC_Address - MAC address of the CNA port
iscsi_target_name - Target’s iSCSI name enclosed in quotes (string length:11-255)
RemoveTarget
Supported by: Windows, Solaris, Linux and VMware ESX
Syntax:
hbacmd [h=host_IP[:port] | hostname[:port]] RemoveTarget <MAC_Address>
<iscsi_target_name>
Description: This command removes the target with the specified iSCSI target name
<iscsi_target_name>.
Parameters:
MAC_Address - MAC address of the CNA port
iscsi_target_name - Target’s iSCSI name enclosed in quotes (string length:11-255)
RemoveTargetPortal
Supported by: Windows, Solaris, Linux and VMware ESX
Syntax:
hbacmd [h=host_IP[:port] | hostname[:port]] RemoveTargetPortal <MAC_Address>
<Target_IP> <Port>
Description: This command removes the SendTarget Portal containing the target IP <Target_IP> and
the port <Port> from the list of portals for the specified initiator.
Parameters:
MAC_Address - MAC address of the CNA port
Target_IP - IP address of the target portal
Port - Port number of the Target portal (value: 1024-65535)