CLI Guide

CLI commands 7
Command Description
hpcnucli -iscsi -target -login
Adds a target to the system based on an iSCSI target
iqn, portal IP address, and port number that you enter
as arguments
Login options are optional
Example:
hpcnucli –iscsi <MAC address on iSCSI
host port> -target -
login <iSCSI target
you want to add and log into into> <IP
address for the iSCSI target portal>
[port number for iSCSI target portal]
[login option]
hpcnucli -iscsi -target -getinfo
Retrieves information for a target you specify
Example:
hpcnucli –iscsi <MAC address on iSCSI
host port> -target -getinfo <iSCSI target
iQN>
hpcnucli -iscsi -target -sessioninfo
Retrieves information for the currently logged-in session
The session ID ranges from 0 to N-1, where N is the
session count
The default value for the session ID is 0
Example:
hpcnucli –iscsi <MAC address on iSCSI
host port> –target –sessioninfo <iSCSI
target iQN> [session ID]
hpcnucli -iscsi -target -logout
Logs-out a defined target
The default value for the session ID is 0
Example:
hpcnucli –iscsi <MAC address on iSCSI
host port> –target
logout <iSCSI target
iQN> [Session ID]
hpcnucli -iscsi -target -remove
Removes a target from the system based on a iSCSI
target iqn that you enter as an argument
Example:
hpcnucli –iscsi <MAC address on iSCSI
host port> –target -
remove <iSCSI target
iQN>
hpcnucli -iscsi -target -lunlist
Displays all active LUNs
Example:
hpcnucli –iscsi <MAC address on iSCSI
host port> –target -lunlist <iSCSI target
iQN>
hpcnucli -iscsi -ping
Verifies connectivity by sending an ICMP ping request
to an IP address you specify
Example:
hpcnucli –iscsi <MAC address on iSCSI
host port> -ping <IP address you are
sending the ping request>
hpcnucli -iscsi -modifytcpip -dhcp
Sets an iSCSI host to be a DHCP client so that its TCP/IP
settings are automatically configured by a DHCP
server
Example:
hpcnucli iscsi <MAC> –modifytcpip
dhcp
[optional VLAN ID]