cancel
Showing results for 
Search instead for 
Did you mean: 

WWN no. of drive...

V_P_S
Level 4

Hi All,

 

How we find out the WWN no. of physical drive as well as VTL drive. Can some one plz help me out. I need this on urgent

1 ACCEPTED SOLUTION

Accepted Solutions

Andy_Welburn
Level 6

Have a look at your scan output again. Admittedly the WWN is empty, but (certainly in our case) the WWN is actually incorporated in the Passthru Name:

Device Name  : "/dev/rmt/3cbn"
Passthru Name: "/dev/sg/c0tw123456a12345678bl0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry    : "HP      Ultrium 3-SCSI  L25H"
Vendor ID  : "HP      "
Product ID : "Ultrium 3-SCSI  "
Product Rev: "L25H"
Serial Number: "AB12345CDE"
WWN          : ""
WWN Id Type  : 0
Device Identifier: ""
Device Type    : SDT_TAPE
NetBackup Drive Type: 16
Removable      : Yes
Device Supports: SCSI-3
Flags : 0x0
Reason: 0x0

& from the same output the details for the 'changer' can be used to determine which drive number this relates to by comparing serial numbers.

For us, all these numbers match throughout (sgscan, cfgadm & a physical check on the library plus with what NB is reporting with regards to location (e.g. GUI))

View solution in original post

15 REPLIES 15

V_P_S
Level 4

I Want to check WWN No. from netbackup end..

Mark_Solutions
Level 6
Partner Accredited Certified

NetBackup works on the SCSI enquiry string and will not return the WWN - although i believe the scan command reports the WWN in its output

Hope this helps

mph999
Level 6
Employee Accredited

Yes, Mark is correct scan will show the WWN.  Scan is not a NBU command, it is a scsi inquiry command.

I give up, I really do.

WHY WHY WHY do people keep INSISTING on getting tapedrive details from NetBackup .

It is the WRONG way to be THINKING about it.

TAPE is HARDWRAE, therefore the first port of call for deatils should be the operating system, as it is the OS that is talking to the drives.

NETBACKUP haas very very little to do with tape drives, it is the OS that writes to the tapes, not netbackup.

Why ...

Remove NBU from the system, you are left with the os, a network, and tape drives ...

Can people now see why when you think about tape drives you should NOT automatically think netbackup - they are totally separate.

Martin

V_P_S
Level 4

Hello Mark and Martin.

 

Actually thing is that the VTL drives are down and OS team ask me to provide WWn No., i dont have much exposure over netbackup, so i dont know how to find.

And SCAN command does not provide WWN no.

OUTPUT OF SCAN :

WWN          : ""
WWN Id Type  : 0
Device Identifier: ""


 

Nicolai
Moderator
Moderator
Partner    VIP   

What OS are you using. Command differs from OS to OS.

Linux : scli -t / qaucli (Qlogic)

Solaris : cfgadm -la -o show_FCP_dev

 

V_P_S
Level 4

Hello Nicolai,

 

We are using solaris. I have one doubt here , this command give a output of all drives, is there any switch which shows WWN no. of only one drive...

Please reply ASAP , i am in trouble...

 

V_P_S
Level 4

Nicolai..

 

In output , does not mentioned drive no.. How we came to know that this wwn is of which drive..

mph999
Level 6
Employee Accredited

I appreciate that, apologies, my comment was meant in general, not aimed at you personally.

Martin

sri_vani
Level 6
Partner

Solaris:

prtconf -vp | grep wwn
            port_wwn:  10000000.xxxxx
            node_wwn:  20000000.xxxxxx
            port_wwn:  10000000.xxxxxxxxxx
            node_wwn:  20000000.xxxxxxx
            port_wwn:  10000000.xxxxxxxxa
            node_wwn:  20000000.xxxxxx
            port_wwn:  10000000.xxxxxxxx
            node_wwn:  20000000.xxxxxxxxx

 

AIX:

lsdev -Cc tape | awk '{ print $1 }' | while read TAPESS
do
wwpns=`lsattr -El $TAPESS | grep "ww_name" | awk '{ print $2 }'`
echo $TAPESS $wwpns
done

 

sri_vani
Level 6
Partner

Solaris:

prtconf -vp | grep wwn
            port_wwn:  10000000.xxxxx
            node_wwn:  20000000.xxxxxx
            port_wwn:  10000000.xxxxxxxxxx
            node_wwn:  20000000.xxxxxxx
            port_wwn:  10000000.xxxxxxxxa
            node_wwn:  20000000.xxxxxx
            port_wwn:  10000000.xxxxxxxx
            node_wwn:  20000000.xxxxxxxxx

 

AIX:

lsdev -Cc tape | awk '{ print $1 }' | while read TAPESS
do
wwpns=`lsattr -El $TAPESS | grep "ww_name" | awk '{ print $2 }'`
echo $TAPESS $wwpns
done

 

V_P_S
Level 4

Hi Srivani,

 

How to find out that which WWN no. is of which drive

Andy_Welburn
Level 6

Have a look at your scan output again. Admittedly the WWN is empty, but (certainly in our case) the WWN is actually incorporated in the Passthru Name:

Device Name  : "/dev/rmt/3cbn"
Passthru Name: "/dev/sg/c0tw123456a12345678bl0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry    : "HP      Ultrium 3-SCSI  L25H"
Vendor ID  : "HP      "
Product ID : "Ultrium 3-SCSI  "
Product Rev: "L25H"
Serial Number: "AB12345CDE"
WWN          : ""
WWN Id Type  : 0
Device Identifier: ""
Device Type    : SDT_TAPE
NetBackup Drive Type: 16
Removable      : Yes
Device Supports: SCSI-3
Flags : 0x0
Reason: 0x0

& from the same output the details for the 'changer' can be used to determine which drive number this relates to by comparing serial numbers.

For us, all these numbers match throughout (sgscan, cfgadm & a physical check on the library plus with what NB is reporting with regards to location (e.g. GUI))

V_P_S
Level 4

Thanks soo much to all for help

rajeshthink
Level 4

Passthru Name : in scan never gave me the WWN number....

Device Name  : "/dev/rmt/15cbn"
Passthru Name: "/dev/sg/c20t2l0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry    : "HP      Ultrium 4-SCSI  H58S"
Vendor ID  : "HP      "
Product ID : "Ultrium 4-SCSI  "
Product Rev: "H58S"
Serial Number: "HU195184RE"
WWN          : ""
WWN Id Type  : 0
Device Identifier: ""
Device Type    : SDT_TAPE
NetBackup Drive Type: 3
Removable      : Yes
Device Supports: SCSI-5
Flags : 0x0
Reason: 0x0
------------------------------------------------------------
Device Name  : "/dev/rmt/18cbn"
Passthru Name: "/dev/sg/c21t0l0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry    : "HP      Ultrium 4-SCSI  H58S"
Vendor ID  : "HP      "
Product ID : "Ultrium 4-SCSI  "
Product Rev: "H58S"
Serial Number: "HU19497WLF"
WWN          : ""
WWN Id Type  : 0
Device Identifier: ""
Device Type    : SDT_TAPE
NetBackup Drive Type: 3
Removable      : Yes
Device Supports: SCSI-5
Flags : 0x0
Reason: 0x0
 

 

i am still waiting for a commnad which can provide me wwn number of all the dedices attched to the server.