Unsolved

This post is more than 5 years old

1 Rookie

 • 

7 Posts

3404

September 3rd, 2010 13:00

LUN WWN

I'm trying to do an Open Replicator pull from a NetApp 3140 (I know this is not supported) and I'm trying to figure out the LUN WWN of the LUNs n the NetApp. Can someone point out how the LUN WWN is generated for a SYMM or CX so that I could potentially reverse engineer it for any array?

Also, I see that the inq command has a flag called -netapp_wwn, but this does not work. Is anyone familiar with this functionality with the inq utility?

11 Legend

 • 

20.4K Posts

 • 

87.4K Points

September 3rd, 2010 13:00

Good luck hacking NetApp schema

emc154061

88 Posts

September 3rd, 2010 14:00

emc154061 helps to decode EMC Device WWN's....

That seems to be the correct flag but not sure what you mean by "it doesn't work".. Please offer some more information/outputs about this.. Do you have the "latest" version of INQ, just to be sure..?

In the meantime, see if there is another way to extract that information from the NetApps storage..

88 Posts

September 3rd, 2010 14:00

You beat me to the punch Dynamox on that solution - but atleast we match :-)  I remember this same question somewhere in recent forums...

54 Posts

September 5th, 2010 00:00

DMX and Clariion use different schemas to generate the device WWN. Also different versions of Microcode on DMX use radically different schemas especially on the larger arrays.

It is unlikely that any other vendor will use the same schema. I would recommend you speak with NetApps to get their method.

You may be able to use the symsan Solutions Enabler command.

Sam Claret

2 Intern

 • 

1.3K Posts

September 5th, 2010 18:00

I have `inq -netapp_wwwn` working on my HP-UX system. How old is your inq?

54 Posts

September 5th, 2010 23:00

The latest inq can be downloaded from

ftp://ftp.emc.com/pub/elab/inquiry/v7.1.2.0/

If you are asked for a user ID and password then use anonymous / your email address

I checked the windows version and it has the same options - inq -h gives you all the different options.

Sam

54 Posts

September 8th, 2010 07:00

in netapp, you can get the lun serial number by the command:

lun show -v

Serial#: W-OIKZSggbaG
                Share: none
                Space Reservation: enabled
                Multiprotocol Type: linux

1 Rookie

 • 

2 Posts

April 5th, 2011 03:00

Thx,

Rb

11 Legend

 • 

20.4K Posts

 • 

87.4K Points

April 5th, 2011 03:00

it's a primus solution that you can find by going to PowerLink home page, select support, search support. Enter that number and it should find the article.

1 Rookie

 • 

2 Posts

April 5th, 2011 03:00

Hi,

Where can I find  emc154061? Is it Doc number or case number?

Thx,

Rb

10 Posts

April 12th, 2011 02:00

Hey rnrb,

We migrated a lot of systems from NetApp using OpenReplicator, working out the WWN -> NetApp serial from the symsan output was a bit tricky to start with, I ended up writing a perl script you can feed a list of NetApp serials and it will generate the WWN you see in symsan and cfg openreplicator with:

Code:

#!/usr/bin/perl
while(<>) {
        chomp($line = $_);
        my $hex;
        $line = "NETAPP   LUN " . $line;
        foreach my $c (split(//,$line)) {
                $hex .= uc(sprintf "%x",ord($c));
        }
        print "$line,$hex\n";
}

Usage:

Create a file with the netapp serials and execute  script.pl 

Example:;

# cat serials

HnXvJ4Yu51Lo

HnXvJ4Yp0ot0

HnXvJ4Qe0VfB

HnXvJ4NmYjuf

HnXvJ4QG5koh

# ./ntp_ascii2hex.pl serials
NETAPP   LUN HnXvJ4Yu51Lo,4E45544150502020204C554E20486E58764A34597535314C6F
NETAPP   LUN HnXvJ4Yp0ot0,4E45544150502020204C554E20486E58764A345970306F7430
NETAPP   LUN HnXvJ4Qe0VfB,4E45544150502020204C554E20486E58764A34516530566642
NETAPP   LUN HnXvJ4NmYjuf,4E45544150502020204C554E20486E58764A344E6D596A7566
NETAPP   LUN HnXvJ4QG5koh,4E45544150502020204C554E20486E58764A345147356B6F68
Checking if the WWN matches:
# symsan -sid 589 list -sanluns -dir 6e -p 0 -wwn 500A098197396F66 | grep 4E45544150502020204C554E20486E58764A345970306F7430
06E:0 -- X..F..    512      307239     3   N/A 4E45544150502020204C554E20486E58764A345970306F743000000000000000*
Hope this helps.

0 events found

No Events found!

Top