Use the below script:

for i in `lscfg |grep fcs |awk '{print $3}'`
do
echo $i
echo "=================================="
lscfg |grep "$i" |grep -Ev "fcnet|fscsi|sfwcomm"
done
Advertisements