Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1966051.1
Update Date:2018-03-02
Keywords:

Solution Type  Technical Instruction Sure

Solution  1966051.1 :   SL500 - How To Check World Wide Port Names(WWPN) of HBA Ports in Linux  


Related Items
  • Sun StorageTek SL500 Modular Library System
  •  
Related Categories
  • PLA-Support>Sun Systems>TAPE>Tape Hardware>SN-TP: SL500 Library
  •  




In this Document
Goal
Solution
 First Way: Check file /sys/class/fc_host/host*/port_name
 Second Way: Use command systool
References


Applies to:

Sun StorageTek SL500 Modular Library System - Version All Versions to All Versions [Release All Releases]
Linux x86-64

Goal

Understand how to check FC Port status and WWPN of HBA Port in Linux OS.

Solution

First Way: Check file /sys/class/fc_host/host*/port_name

View file /sys/class/fc_host/host*/port_state can know FC port link status.

[root@sky4200 host2]# more /sys/class/fc_host/host*/port_state
::::::::::::::
/sys/class/fc_host/host2/port_state
::::::::::::::
Linkdown
::::::::::::::
/sys/class/fc_host/host3/port_state
::::::::::::::
Online
[root@sky4200 host2]#

View file /sys/class/fc_host/host*/port_name can know WWPN of HBA Port.

[root@sky4200 host2]# more /sys/class/fc_host/host*/port_name
::::::::::::::
/sys/class/fc_host/host2/port_name
::::::::::::::
0x2100001b320543c5
::::::::::::::
/sys/class/fc_host/host3/port_name
::::::::::::::
0x2101001b322543c5
[root@sky4200 host2]#

Second Way: Use command systool

If your Linux system don't have systool, then first yum install libsysfs.x86_64 and sysfsutils.x86_64

[root@sky4200 host2]# which systool
/usr/bin/which: no systool in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@sky4200 host2]#
[root@sky4200 host2]# yum install libsysfs.x86_64
[root@sky4200 host2]# yum install sysfsutils.x86_64
[root@sky4200 host2]# which systool
/usr/bin/systool
[root@sky4200 host2]#
[root@sky4200 host2]# systool -c fc_host -v | grep port_name
    port_name           = "0x2100001b320543c5"
    port_name           = "0x2101001b322543c5"
[root@sky4200 host2]#

 

References

<NOTE:1966053.1> - How To Check World Wide Port Names(WWPN) of Tape Drives Attached to Linux

Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback