December 2010
Try this:
jurjen@box:~$ sudo apt-get install scsitools
jurjen@box:~$ for i in $(ls -1 /dev/disk/by-path/*-fc-*) ; do echo -en "$i\t" ; sudo scsiinfo -i $i |grep Vendor ; done
/dev/disk/by-path/pci-0000:86:00.0-fc-0x5005076801203855:0x0000000000000000 Vendor: IBM
/dev/disk/by-path/pci-0000:86:00.0-fc-0x5005076801203945:0x0000000000000000 Vendor: IBM
jurjen@box:~$
jurjen@lwp21:~$ for i in $(ls -1 /dev/disk/by-path/*-fc-*) ; do echo -en "$i\t" ; sudo scsiinfo -i $i |grep Vendor ; done
/dev/disk/by-path/pci-0000:86:00.0-fc-0x5005076801203855:0x0000000000000000 Vendor: IBM
/dev/disk/by-path/pci-0000:86:00.0-fc-0x5005076801203945:0x0000000000000000 Vendor: IBM
jurjen@lwp21:~$
jurjen@lwp24:~$ for i in $(ls -1 /dev/disk/by-path/*-fc-*) ; do echo -en "$i\t" ; sudo scsiinfo -i $i |grep Vendor ; done
/dev/disk/by-path/pci-0000:87:00.0-fc-0x50001fe15007a9b9:0x0001000000000000 Vendor: HP
/dev/disk/by-path/pci-0000:87:00.0-fc-0x50001fe15007a9b9:0x0002000000000000 Vendor: HP
/dev/disk/by-path/pci-0000:87:00.0-fc-0x50001fe15007a9b9:0x0003000000000000 Vendor: HP
/dev/disk/by-path/pci-0000:87:00.0-fc-0x50001fe15007a9b9:0x0004000000000000 Vendor: HP
/dev/disk/by-path/pci-0000:87:00.0-fc-0x50001fe15007a9bd:0x0001000000000000 Vendor: HP
/dev/disk/by-path/pci-0000:87:00.0-fc-0x50001fe15007a9bd:0x0002000000000000 Vendor: HP
/dev/disk/by-path/pci-0000:87:00.0-fc-0x50001fe15007a9bd:0x0003000000000000 Vendor: HP
/dev/disk/by-path/pci-0000:87:00.0-fc-0x50001fe15007a9bd:0x0004000000000000 Vendor: HP
/dev/disk/by-path/pci-0000:87:00.1-fc-0x50001fe15007a9b8:0x0001000000000000 Vendor: HP
/dev/disk/by-path/pci-0000:87:00.1-fc-0x50001fe15007a9b8:0x0002000000000000 Vendor: HP
/dev/disk/by-path/pci-0000:87:00.1-fc-0x50001fe15007a9b8:0x0003000000000000 Vendor: HP
/dev/disk/by-path/pci-0000:87:00.1-fc-0x50001fe15007a9b8:0x0004000000000000 Vendor: HP
/dev/disk/by-path/pci-0000:87:00.1-fc-0x50001fe15007a9bc:0x0001000000000000 Vendor: HP
/dev/disk/by-path/pci-0000:87:00.1-fc-0x50001fe15007a9bc:0x0002000000000000 Vendor: HP
/dev/disk/by-path/pci-0000:87:00.1-fc-0x50001fe15007a9bc:0x0003000000000000 Vendor: HP
/dev/disk/by-path/pci-0000:87:00.1-fc-0x50001fe15007a9bc:0x0004000000000000 Vendor: HP