The lsportip command lists the iSCSI IP addresses assigned for each port on each node in the cluster.
>>- svcinfo -- -- lsportip -- ----------------------------------> >--+--------------------------------+-- --+-----------------+---> '- -filtervalue -- attrib=value -' '- -filtervalue? -' >-- --+----------+-- -- --+-----------------------+-------------> '- -nohdr -' '- -delim -- delimiter -' >--+--------------------+-------------------------------------->< '- ethernet_port_id -'
svcinfo lsportip -filtervalue "node_name=md*"
This command lists all port IP addresses for each node in the cluster. The concise view displays two rows of output for each ethernet port. Each node has two ethernet ports.
Use the svcinfo lsportip command with the optional ethernet_port_id parameter to display a detailed view of the specified port.
Both output rows for a port show the MAC address of that port if it can be determined. If the node and the ethernet link are online, the rows also show the speed and duplex state of the link. The duplex field can have values of Half or Full, or it is blank if the node is offline.
The first row for each port shows any iSCSI addresses that have been configured for that port and are not failed over to a different node. The failover field on this row is set to no. The second row for each port shows any iSCSI addresses that have been configured for the partner node, or for the local node with failover, and that are active on the port. The failover field on this row is set to yes.
The state field is set to unconfigured if there are no iSCSI addresses configured on the port. The state field is set to offline if there are configured addresses but the link is down, and online if the link is up. Any offline rows indicate a potential problem.
A concise invocation example
svcinfo lsportip -delim :
The concise resulting output
id:node_id:node_name:IP_address:mask:gateway:IP_address_6: prefix_6:gateway_6:MAC:duplex:state:speed:failover 1:1:dvt101794:9.71.47.129:255.255.254.0:9.71.46.1::::00:14: 5e:33:51:92:Half:online:100Mb/s:no 1:1:dvt101794:::::::00:14:5e:33:51:92:Half:online:100Mb/s:yes 2:1:dvt101794:::::::00:14:5e:33:51:93::unconfigured::no 2:1:dvt101794:::::::00:14:5e:33:51:93::unconfigured::yes 1:2:dvt101760:9.71.47.83:255.255.254.0:9.71.46.1::::00:14:5e: 7e:2a:58:Half:online:100Mb/s:no 1:2:dvt101760:::::::00:14:5e:7e:2a:58:Half:online:100Mb/s:yes 2:2:dvt101760:::::::00:14:5e:7e:2a:59::unconfigured::no 2:2:dvt101760:::::::00:14:5e:7e:2a:59::unconfigured::yes 1:3:dvt101761:9.71.47.253:255.255.254.0:9.71.46.1::::00:14:5e: 33:50:fa:Half:online:100Mb/s:no 1:3:dvt101761:::::::00:14:5e:33:50:fa:Half:online:100Mb/s:yes 2:3:dvt101761:::::::00:14:5e:33:50:fb::unconfigured::no 2:3:dvt101761:::::::00:14:5e:33:50:fb::unconfigured::yes 1:4:dvt101786:9.71.47.227:255.255.254.0:9.71.46.1::::00:14:5e: 33:50:da:Half:online:100Mb/s:no 1:4:dvt101786:::::::00:14:5e:33:50:da:Half:online:100Mb/s:yes 2:4:dvt101786:::::::00:14:5e:33:50:db::unconfigured::no 2:4:dvt101786:::::::00:14:5e:33:50:db::unconfigured::yes 1:5:destiny35:9.71.47.69:255.255.254.0:9.71.46.1::::00:21:5e:09: 21:44:Full:online:1Gb/s:no 1:5:destiny35:::::::00:21:5e:09:21:44:Full:online:1Gb/s:yes 2:5:destiny35:::::::00:21:5e:09:21:46::unconfigured::no 2:5:destiny35:::::::00:21:5e:09:21:46::unconfigured::yes 1:6:destiny34:9.71.46.239:255.255.254.0:9.71.46.1::::00:21:5e:09: 21:54:Full:online:100Mb/s:no 1:6:destiny34:::::::00:21:5e:09:21:54:Full:online:100Mb/s:yes 2:6:destiny34:::::::00:21:5e:09:21:56::unconfigured::no 2:6:destiny34:::::::00:21:5e:09:21:56::unconfigured::yes
A detailed invocation example
svcinfo lsportip 1
The detailed resulting output
id 1 node_id 1 node_name dvt101794 IP_address 9.8.7.1 mask 255.255.255.0 gateway 9.0.0.1 IP_address_6 prefix_6 gateway_6 MAC 00:14:5e:33:51:92 duplex Half state online speed 100Mb/s failover no