You are on page 1of 1

One single line to retrieve all HBA WWNs on AIX

One single line to retrieve all HBA WWNs on AIX:


for i in $(lsdev -C|awk '/^fcs/ {print $1}');do echo "$i\t$(lscfg -vl $i|awk -F.
'/Network Address/ {print $NF}')" ;done
fcs0
fcs1
fcs2
fcs3

C05092032BFC00C0
C05092032BFC00C2
C05092032BFC00C4
C05092032BFC00C6

You might also like