The Linux utility lsscsi written by Doug Gilbert will provide the information you are looking for. It is in the Base repository of CentOS 5, 6, and 7, but YMMV with other distros. The output of lsscsi on my CentOS 7 system with the argument required to display WWNs:
[root@sklad ~]# lsscsi --wwn
[0:0:0:0] disk 0x5000c50041b932d7 /dev/sda
[0:0:1:0] disk 0x5000c50041b917cb /dev/sdb
[1:0:0:0] disk 0x50025385501f66f1 /dev/sde
[2:0:0:0] disk 0x5002538550125c20 /dev/sdf
[3:0:0:0] cd/dvd /dev/sr0
[6:0:0:0] disk 0x5000cca37ec38857 /dev/sdg
[7:0:0:0] disk 0x5000c50041b909df /dev/sdc
[7:0:1:0] disk 0x5000c5004182c53b /dev/sdd
I realize this is an old question, but I came across it and thought I'd offer another solution.
They should be available in /dev/disk/by-id, on your machine it should look something like this:
The Linux utility lsscsi written by Doug Gilbert will provide the information you are looking for. It is in the Base repository of CentOS 5, 6, and 7, but YMMV with other distros. The output of lsscsi on my CentOS 7 system with the argument required to display WWNs:
I realize this is an old question, but I came across it and thought I'd offer another solution.