
158 Linux for IBM System z9 and IBM zSeries
5.1.1 Querying FCP device information
Information for an FCP device is available in sysfs. For example, attributes for
the device B002 device can be read from files found in the
/sys/bus/ccw/drivers/zfcp/0.0.b002 directory.
Both RHEL4 and SLES9 still maintain the /proc/scsi/scsi file interface
(Example 5-1):
Example 5-1 File interfacde in HREL4 and SLES9
# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: IBM Model: 2105800 Rev: 1.62
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 01 Lun: 01
Vendor: IBM Model: 2105800 Rev: 1.62
Type: Direct-Access AN ...