Fibre Channel (SAN)

Reply
Contributor
Posts: 39
Registered: ‎12-08-2011

command to show wwns without aliases

is there a command to show all the new wwns on the fabric? New hosts that come online have no aliases assigned yet so I need to get their wwns.

External Moderator
Posts: 4,813
Registered: ‎02-23-2004

Re: command to show wwns without aliases

not sure what you mean with

 

--->>>command to show all the new wwns without aliases......

 

"nsshow" command give output connected device on the switch with wwn address

TechHelp24
Regular Contributor
Posts: 226
Registered: ‎01-08-2011

Re: command to show wwns without aliases

"nsaliasshow" is the best I could find but it's only for the local switch.
nsshow doesn't show aliases as far as I could see so can't use it alone to find out if a device is without alias or not.

It shows the WWNs and there is a field called alias, and it's empty if there is no alias configured for that WWN.

So if you take the output of nsaliasshow and run some message parsing on it you could find out which WWNs are without an alias. 

Something like this should work: grep -B10 "Aliases:$"

 

But what about in the SAN Health Report? Does that one list WWNs without aliases?

External Moderator
Posts: 4,813
Registered: ‎02-23-2004

Re: command to show wwns without aliases

[ Edited ]

@Guldmyr,

 

---->>nsshow doesn't show aliases....

 

he askig for

 

"command to show wwns" ....... without aliases

 

btw.

 

nscamshow, is another command option to discover device fabric wide

TechHelp24
Regular Contributor
Posts: 226
Registered: ‎01-08-2011

Re: command to show wwns without aliases

@

 

---->>not sure what you mean with

 

Right, but if your command don't show if the wwn has an alias or not, how to tell if it has an alias or not?

He's looking for "orphan WWNs" that don't have an alias. Showing all WWNs in the fabric does not help (much).

External Moderator
Posts: 4,813
Registered: ‎02-23-2004

Re: command to show wwns without aliases

from a native question

 

1)

 

--->>>is there a command to show all the new wwns on the fabric?

 

and the answer is here as per my opinion "nscamshow"

 

2)

 

New hosts that come online have no aliases assigned yet so I need to get their wwns.

 

in feew word he want to get wwns new connected device

 

"nsaliasshow" is more indicated to display Alias assigned to a WWN

 

 

TechHelp24
Contributor
Posts: 39
Registered: ‎12-08-2011

Re: command to show wwns without aliases

when i use nscamshow I got 

 

no entry is found

Occasional Contributor
Posts: 6
Registered: ‎09-17-2008

Re: command to show wwns without aliases

Try

nszonemember -u

You will find all unzoned PIDs (not WWNs)

 

To find WWN try

switchshow | grep PID

 

 

If NPIV is used try

portshow port_number

port_number found in switchshow

Frequent Contributor
Posts: 130
Registered: ‎02-05-2014

Re: command to show wwns without aliases

[ Edited ]

There is not realy a command that does what you want from a basic FOS perspective but with a bit of bash cli you might get around it:

 

for x in 1 3 4 20 120 143 ; do nsaliasshow -domain $x | grep -E "^ {1,4}N|Aliases"; done

 

where the "1 3 4 20 120 143 are the domain ID's in your fabric.

 

You'll then get an output like this:

 

 N    8f5300;      3;21:00:00:1b:32:17:e4:d1;20:00:00:1b:32:17:e4:d1; na
    Aliases:
 N    8f5400;      3;50:06:0e:80:06:cf:28:70;50:06:0e:80:06:cf:28:70; na
    Aliases: R700_PORT_8A_RCU_TARGET
 N    8f5500;      3;50:06:0e:80:06:cf:28:10;50:06:0e:80:06:cf:28:10; na
    Aliases: R700_PORT_2A_TARGET

 

The first doesn't have an alias and the later two obviously do.

 

Hope this helps.

 

Kind regards,
Erwin van Londen
Brocade Distinguished Architect
http://www.erwinvanlonden.net The Fibre Channel blog


Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.