378 Implementing the IBM Storwize V7000 with IBM Spectrum Virtualize V8.2.1
Host properties
To get more information about a host, the lshost command can be used with the hostname or 
host id as a parameter, as shown in Example 8-28.
Example 8-28   Host details
IBM_Storwize:ITSO-V7000:superuser>lshost ITSO-VMHOST-01
id 0
name ITSO-VMHOST-01
port_count 2
type generic
mask 1111111111111111111111111111111111111111111111111111111111111111
iogrp_count 4
status offline
site_id 
site_name 
host_cluster_id 0
host_cluster_name ITSO-ESX-Cluster-01
protocol scsi
WWPN 2100000E1E30E597
node_logged_in_count 0
state offline
WWPN 2100000E1E30E5E8
node_logged_in_count 0
state offline
IBM_Storwize:ITSO-V7000:superuser>
8.5.3  Adding and deleting a host port by using the CLI
This section describes adding and deleting a host port to and from Storwize V7000. 
Adding ports to a defined host
If an HBA is added, or if a network interface controller (NIC) is to be added to a server that is 
defined within the Storwize V7000, the addhostport command can be used to add the new 
port definitions to the host configuration.
If the host is connected through SAN with FC, and if the WWPN is zoned to the Storwize 
V7000 system, issue the lshbaportcandidate command to compare it with the information 
that is available from the server administrator, as shown in Example 8-29.
Example 8-29   Listing the new available WWPN
IBM_Storwize:ITSO-V7000:superuser>lsfcportcandidate
fc_WWPN 
2100000E1E09E3E9 
2100000E1E30E5E8 
2100000E1E30E60F 
2100000E1EC2E5A2 
IBM_Storwize:ITSO-V7000:superuser>
Use host or SAN switch utilities to verify whether the WWPN matches the information for the 
new WWPN. If the WWPN matches, use the addhostport command to add the port to the 
host, as shown in Example 8-30.
Example 8-30   Adding the newly discovered WWPN to the host definition
IBM_Storwize:ITSO-V7000:superuser>addhostport -hbawwpn 2100000E1E09E3E9:2100000E1E30E5E8 
ITSO-VMHOST-01
IBM_Storwize:ITSO-V7000:superuser>
This command adds the WWPNs 2100000E1E09E3E9 and 2100000E1E30E5E8 to the 
ITSO-VMHOST-01 host.