/WWN quick report in AIX os

WWN quick report in AIX os


Often we need just a simple info but we’d like to have it in a report ready format .

The following (just2lines-)script greps the fibre channel informations (in this case location code and WWN) 

and displays them .



lscfg | grep fcs

for i in `lscfg -vp |grep fcs| awk ‘{print $1}’`


echo $i && lscfg -vp -l $i |grep ‘Network Address’



These very simple loops can be readapted for any other greppable parameter on the server.