Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

1686

June 20th, 2014 07:00

MDS 9513 - pwwn|connected to

hello all ,

     I'm currently working on an upgrade from nx-os 5.2.2 to 5.2.8c .  We have some internal formalities to be done before the upgrade .

I'm filling up an excel sheet for each mds 9513 (we have 4 , 2 in each fabric ) . Looking for these details

Port No || Port Status || Port Description || Connected device name || pwwn of the connected device .

fc 1/1         up                    vmax 8e0          ????                                     ????

fc 1/2         up                     vnx spa0           ????                                     ????

fc 1/3         up                    host tnt               tnt                                         ???

I should be filling the sheet with the details above for all 4 switches .

I got the port status and port description ( sh interface brief and sh interface description )  .

How can I get the connected device name and pwwn for each port ?  I can get the connected device name through device manager ... I want to know how this is acheived through CLI this can make my life much easier ..

Device manager is boring .

AE .

1 Rookie

 • 

20.4K Posts

June 20th, 2014 13:00

sh flogi data will display device-alias right next to WWN. If you don't have device-alias you will need to take that WWN and look it up in fcalias database (if that's what you are using).

June 20th, 2014 07:00

and sh flogi database for the connected pwwns

1 Rookie

 • 

20.4K Posts

June 20th, 2014 12:00

you are not using device-aliases, are you ?

June 20th, 2014 12:00

we are , but not for all . 70 % of the connected hosts/arrays have aliases .

June 20th, 2014 13:00

yeah  flogi does display the alias  . I wish it displays it in one line , could have been easier to sort in excel .  lots of manual work to do now .

DCNM looks useless too .

I would like to learn some scripting , any place you could suggest for a newbie to start off ?

Only scripting sounds vauge I know , but based on your exp what do you think would help me the most in terms of storage .

1 Rookie

 • 

20.4K Posts

June 20th, 2014 13:00

i don't think there is one command to get all the information, it will be a combination of "sh flogi data", "sh int des" and maybe sh fcalias. I see a little (or big) scripting project ahead of you

June 20th, 2014 13:00

I'm done with  port status /description - this was easy .. Sorting Pwwn was tough  .

Just left out with the connected device name . I can see the device names in device manager  ,

Port No || Port Status || Port Description || Connected device name || pwwn of the connected device .

fc 1/1         up                    vmax 8e0                                                     done

fc 1/2         up                     vnx spa0                                                         done

fc 1/3         up                    host tnt                                                             done

dont want to do it through device manger , will take ages ... cli will be great .

1 Rookie

 • 

20.4K Posts

June 20th, 2014 19:00

even a little scripting will help you greatly, things like awk, grep, sed and very useful.  For scripting i started out with bash, then moved on to perl. You fill find tons of free tutorials online, just pick one and go for it.

June 23rd, 2014 06:00

thanks dynamox , I will start off with some bash

20 Posts

September 23rd, 2014 12:00

R u done with the script

No Events found!

Top