How to locate wwpn on Red Hat Enterprise Linux AS release 3 (Taroon Update 7)


 
Thread Tools Search this Thread
Operating Systems Linux How to locate wwpn on Red Hat Enterprise Linux AS release 3 (Taroon Update 7)
# 1  
Old 07-10-2009
How to locate wwpn on Red Hat Enterprise Linux AS release 3 (Taroon Update 7)

I am trying to find out the wwpn on a linux server. I tried using the the commands `datapath query wwpn` and `pcmpath query essmap`. Both of them didnt give me any output. Please check below.

[root@lmpmdxx root]# pcmpath query essmap
-bash: pcmpath: command not found
[root@lmpmdxx root]# datapath query wwpn
-bash: datapath: command not found

here is OS version and kernel version of the server.

[root@lmpmd501 proc]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 7)

kernel version is 2.4.21-58.EL

Can some one please tell me how to find out the wwpn on the server.
# 2  
Old 07-10-2009
Are you using Qlogic or Emulex cards?
# 3  
Old 07-10-2009
thanks for the reply

I am not sure how to check that cards. Can you please tell me how to check that.
# 4  
Old 07-11-2009
do an lsmod | grep -i qla

If you return anything, you are using qlogic cards. If not, they are most likely emulex.
# 5  
Old 07-11-2009
thanks again for the reply. it doesnt return any thing, please check the output below.

[root@lmpmdxxx root]# lsmod | grep -i qla
[root@lmpmdxxx root]#

if above is the case what needs to be done.

---------- Post updated at 03:32 PM ---------- Previous update was at 03:24 PM ----------

thanks again for the reply. it doesnt return any thing, please check the output below.

[root@lmpmdxxx root]# lsmod | grep -i qla
[root@lmpmdxxx root]#

if above is the case what needs to be done.
# 6  
Old 07-12-2009
for emulex cards, I am not 100% sure how to get them from the OS, as with qlogic cards it is easier, in my opinion. Have you installed any utilities for your cards? Are you able to get the WWNs from the switch? Can the OS recognize them at all?

lspci should show you
# 7  
Old 07-14-2009
Here it is for qlogic cards:

[root~]# grep scsi /proc/scsi/qla2xxx/0
Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0
scsi-qla0-adapter-node=200000e08b824de7;
scsi-qla0-adapter-port=210000e08b824de7
;
scsi-qla0-target-0=500601601060295e;
scsi-qla0-target-1=500601681060295e;
scsi-qla0-port-0=500601609060295e:500601601060295e:010000:81;
scsi-qla0-port-1=500601609060295e:500601681060295e:011000:82;


Also, if you installed sansurfer, there is a command line that will give it to you really quick, scli -g


I am not sure on emulex, but there should be something in /proc/scsi

Last edited by sixstrings; 07-14-2009 at 04:32 PM.. Reason: added info
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question