- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- how to find fiberchannel card status on linux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2007 02:32 AM
тАО11-05-2007 02:32 AM
i need to find the fiberchannel card / status on all linux servers. Could you please let me know the command for the same
Thanks & Regards
Jagadesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2007 05:14 AM
тАО11-05-2007 05:14 AM
Re: how to find fiberchannel card status on linux
If you HBA is emulex, then you can try with Emulex HBAs anywhere.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2007 05:22 AM
тАО11-05-2007 05:22 AM
Re: how to find fiberchannel card status on linux
if using the psp, run adapter_info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2007 12:40 PM
тАО11-05-2007 12:40 PM
Re: how to find fiberchannel card status on linux
04:04.0 Fibre Channel: QLogic Corp. QLA2312 Fibre Channel Adapter (rev 02)
09:02.0 Fibre Channel: QLogic Corp. QLA2312 Fibre Channel Adapter (rev 02)
Below will give more detailed info
# cat /proc/scsi/qla2300/[1-2]*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2007 03:44 PM
тАО11-05-2007 03:44 PM
Re: how to find fiberchannel card status on linux
# lspci | grep Fibre
80:02.0 Fibre Channel: Emulex Corporation Helios-X LightPulse Fibre Channel Host Adapter (rev 01)
a0:02.0 Fibre Channel: QLogic Corp. QLA2312 Fibre Channel Adapter (rev 03)
a0:02.1 Fibre Channel: QLogic Corp. QLA2312 Fibre Channel Adapter (rev 03)
http://docs.hp.com/en/5991-7635/ch03s04.html
Regards,
Asif Sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2007 08:22 PM
тАО11-05-2007 08:22 PM
Re: how to find fiberchannel card status on linux
I tried all the above commands and it has not returned any value / information.
/usr/sbin/adapter_info
/sbin/lspci |grep -i fiber
under /proc/scsi i can find only these below files
cd /proc/scsi
ls -l
total 0
-r--r--r-- 1 root root 0 Nov 6 09:21 device_info
-r--r--r-- 1 root root 0 Nov 6 09:21 scsi
dr-xr-xr-x 2 root root 0 Nov 6 09:21 sg
cd sg
ls -l
-rw-r--r-- 1 root root 0 Nov 6 09:22 allow_dio
-r--r--r-- 1 root root 0 Nov 6 09:22 debug
-rw-r--r-- 1 root root 0 Nov 6 09:22 def_reserved_size
-r--r--r-- 1 root root 0 Nov 6 09:22 device_hdr
-r--r--r-- 1 root root 0 Nov 6 09:22 devices
-r--r--r-- 1 root root 0 Nov 6 09:22 device_strs
-r--r--r-- 1 root root 0 Nov 6 09:22 version
Please suggest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2007 08:33 PM
тАО11-05-2007 08:33 PM
SolutionFor some HBAs and new kernels you find the information under /sys instead of /proc:
for Emulex HBA and Kernel 2.6 you can try:
$ uname -r
2.6.16.46-0.12-smp
$ cd /sys/class/scsi_host/
$ cat host?/modeldesc
Emulex LPe11002 4Gb 2-port PCIe Fibre Channel Adapter
Emulex LPe11002 4Gb 2-port PCIe Fibre Channel Adapter
Emulex LPe1150 4Gb PCIe Fibre Channel Adapter
$ cat /host?/state
Link Up - Ready:
Fabric
Link Down
Link Up - Ready:
Fabric
rgds
HGH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2007 02:00 AM
тАО11-06-2007 02:00 AM