[HPADM] RE: N Port mapping from fcmsutil to /dev

From: Evans, Steve (steve.evans@Fiserv.com)
Date: Mon Nov 06 2006 - 11:04:57 EST


Hmm, keep getting the same answer, so let me rephrase the question.
Mapping the /dev/td11 to the hardware path is simple. Even getting the
devices under that path I can get from ioscan. I know that there is a
1:1 correlation between the N_Port_id and each device, but the only way
to map this is through physical inventory and writing it down somewhere.
I am looking a command (or script) that will give me the N_Port_id to
the end device (not the fiber card).

 

To give you an idea for why I want this: when we get errors in syslog,
they tell us the hardware path of the fiber card, and the N_Port_id of
the end device. Similar to mapping the LBOLT errors to a device
quickly, I would like to map these N_Port_id errors to a device. I've
gone through great lengths (because I'm lazy) to write a script that
will give you all critical info about a device (usually device file name
or hardware path) given any other identifying input.

 

Steve Evans

UNIX Systems Administrator

Fiserv - Norcross Center, Midori Building

5335 Triangle Parkway

Norcross, GA 30092

steve.evans@Fiserv.com

w - 678.245.7220

c - 404.242.0098

 

________________________________

From: hpux-admin-owner@DutchWorks.nl
[mailto:hpux-admin-owner@DutchWorks.nl] On Behalf Of Evans, Steve
Sent: Monday, November 06, 2006 7:24 AM
To: hpux-admin@DutchWorks.nl
Subject: [HPADM] N Port mapping from fcmsutil to /dev

 

Does anyone know how to map the N Port information output from fcmsutil
to the actual device file or hardware path through the command line?
Not the device of the card, but of the end devices. For example, on
/dev/td11, I have several tape drives. One of them is
/dev/rmt/c85t5d0BEST which correlates to the hardware path
1/0/14/0/0.1.16.255.5.5.0 and the N Port id of 0x011055 from the
following fcmsutil command:

 

# fcmsutil /dev/td11 get remote all

 

                    Target N_Port_id is = 0x011055

                           Target state = DVS_UNOPENED

                          Symbolic Name = STK 9840 1.35

                              Port Type = NL_PORT

   SLER Capable (supports Retry & TRID) = YES

            Target Port World Wide Name = 0x500104f00073998b

            Target Node World Wide Name = 0x500104f00073998a

 

I can get this info from the physical mapping of the fiber switch. I've
seen several clues about how to map the fc devices to its device file,
but nothing underneath it.

 

Steve Evans

UNIX Systems Administrator

Fiserv - Norcross Center, Midori Building

5335 Triangle Parkway

Norcross, GA 30092

steve.evans@Fiserv.com

w - 678.245.7220

c - 404.242.0098

 

 

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:54 EDT