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 .
#!/usr/bin/ksh
lscfg | grep fcs
for i in `lscfg -vp |grep fcs| awk '{print $1}'`
do
echo $i && lscfg -vp -l $i |grep 'Network Address'
done
These very simple loops can de readapted for any other grepapble parameter on the server.
Nessun commento:
Posta un commento