To know HBA Card WWPN Address on AIX
We need “WWPN Address” information of HBA card to create zoning on fiber channel switch for assigning and unassign storage to a AIX host. Once you ask for storage from Storage Team the very first qestion will be what is the “WWPN Address” of HBA cards on your AIX. Now let’s see how to to find “WWPN Address” on AIX server.Task 1 : Check how many fiber change adapters are there on the Server with below command
lsdev -Cc adapterExample
webmanual:/>lsdev -Cc adapter ent0 Available 04-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) ent1 Available 04-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) ent2 Available 05-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) ent3 Available 05-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) fcs0 Available 06-08 FC Adapter fcs1 Available 07-08 FC Adapter ide0 Available 03-08 ATA/IDE Controller Device sisscsia0 Available 02-08 PCI-X Dual Channel Ultra320 SCSI Adapter vsa0 Available LPAR Virtual Serial AdapterAlternatively you can run below command to grep fiber channel adapter fcs on the system .
webmanual:/>lsdev -Cc adapter |grep fcs fcs0 Available 06-08 FC Adapter fcs1 Available 07-08 FC AdapterFrom above we can conclude that we have two fiber channel adapters or HBA cards fcs0 and fcs1
Note : There might be more than two Fiber Channel Adapters on the system in that case we need to confirm what are the adapters are configured for multipath . Then you might need to run commands specific to Storage vendor like for EMC run ”powermt display dev=all” command. For IBM storage we can use lspath , pcmpath query adapter , datapath query adapter etc.
Task 2 : Locate “Network Address” and it’s correspong numeric value means “WWPN Address” on the configuration details of each fcs adapters as below in blue color.
webmanual:/>lscfg -vl fcs0 fcs0 U787B.001.WMW8950-P1-C1-T1 FC AdapterPart Number……………..03N6439 EC Level………………..A Serial Number……………1B550051EA Manufacturer…………….001B Customer Card ID Number…..197E FRU Number……………… 03N6439 Brand…………………..H0 Device Specific.(ZM)……..3 Network Address………….10000000C94EFB3F ROS Level and ID…………02881955 Device Specific.(Z0)……..1001206D Device Specific.(Z1)……..00000000 Device Specific.(Z2)……..00000000 Device Specific.(Z3)……..03000909 Device Specific.(Z4)……..FF801413 Device Specific.(Z5)……..02881955 Device Specific.(Z6)……..06831955 Device Specific.(Z7)……..07831955 Device Specific.(Z8)……..20000000C94EFB3F Device Specific.(Z9)……..TS1.91A5 Device Specific.(ZA)……..T1D1.91A5 Device Specific.(ZB)……..T2D1.91A5 Device Specific.(ZC)……..00000000 Hardware Location Code……U787B.001.WMW8950-P1-C1-T1 |
webmanual:/>lscfg -vl fcs1 fcs1 U787B.001.WMW8950-P1-C2-T1 FC AdapterPart Number……………..80P4543 EC Level………………..A Serial Number……………1F4360AB91 Manufacturer…………….001F Customer Card ID Number…..280B FRU Number……………… 80P4544 Device Specific.(ZM)……..3 Network Address………….10000000C9407EEA ROS Level and ID…………02881955 Device Specific.(Z0)……..1001206D Device Specific.(Z1)……..00000000 Device Specific.(Z2)……..00000000 Device Specific.(Z3)……..03000909 Device Specific.(Z4)……..FF801413 Device Specific.(Z5)……..02881955 Device Specific.(Z6)……..06831955 Device Specific.(Z7)……..07831955 Device Specific.(Z8)……..20000000C9407EEA Device Specific.(Z9)……..TS1.91A5 Device Specific.(ZA)……..T1D1.91A5 Device Specific.(ZB)……..T2D1.91A5 Device Specific.(ZC)……..00000000 Hardware Location Code……U787B.001.WMW8950-P1-C2-T1 |
Alternatively you can run the below command to grep for “Network Address” on each fiber channel adapter fcs to get “WWPN Address”
webmanual:/> lscfg -vl fcs0|grep “Network Address” Network Address………….10000000C94EFB3F webmanual:/> lscfg -vl fcs1|grep “Network Address” Network Address………….10000000C9407EEA |
10000000C94EFB3F
10000000C9407EEA
* Article Source from : Internet