Tuesday, April 05, 2016

Find WWN's in AIX

So I use the following script to find WWN's in AIX. Does anyone have a better script they'd like to share?

#!/usr/bin/ksh

CSV="," 

for FCSX in `lscfg | grep fcs | awk '{ print $2 }' | sort`
do 
echo ${FCSX}${CSV}`lscfg -vl ${FCSX} | grep "Network Address" | sed -e "s/^.*\.//"`${CSV}`lscfg -l ${FCSX} | awk '{ print $2 }'` 
done

No comments:

Post a Comment