One-Liner to check Fibre Channel HBA WWN on AIX

Here is a quick little one-liner I wrote to check the World Wide Names on an AIX box. I didnt think it was much, but one of our consultants got really excited about it, so I thought I might share it here.

for i in `lsdev -Cc adapter | grep fcs | cut -d ‘ ‘ -f 1`; do printf ${i}; lscfg -vl ${i} | grep Network; done

Enjoy!

–Brian