The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Distribution Release: Red Hat Enterprise Linux 4.8 iBot Software Releases - RSS News 0 05-25-2009 08:00 AM
Distribution Release: Red Hat Enterprise Linux 4.8 iBot Software Releases - RSS News 0 05-18-2009 11:45 PM
Distribution Release: Red Hat Enterprise Linux 5.3 iBot Software Releases - RSS News 0 01-20-2009 11:10 AM
Distribution Release: Red Hat Enterprise Linux 4.7 iBot Software Releases - RSS News 0 07-29-2008 01:40 AM
Distribution Release: Red Hat Enterprise Linux 5.2 iBot Software Releases - RSS News 0 05-21-2008 07:10 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-10-2009
gurasalak gurasalak is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 3
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 (permalink)  
Old 07-10-2009
mark54g mark54g is offline
Registered User
  
 

Join Date: May 2008
Posts: 366
Are you using Qlogic or Emulex cards?
  #3 (permalink)  
Old 07-10-2009
gurasalak gurasalak is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 3
thanks for the reply

I am not sure how to check that cards. Can you please tell me how to check that.
  #4 (permalink)  
Old 07-11-2009
mark54g mark54g is offline
Registered User
  
 

Join Date: May 2008
Posts: 366
do an lsmod | grep -i qla

If you return anything, you are using qlogic cards. If not, they are most likely emulex.
  #5 (permalink)  
Old 07-11-2009
gurasalak gurasalak is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 3
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 (permalink)  
Old 07-12-2009
mark54g mark54g is offline
Registered User
  
 

Join Date: May 2008
Posts: 366
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 (permalink)  
Old 07-14-2009
sixstrings sixstrings is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 33
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
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:46 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0