AIX

WWN quick report in AIX os

Pubblicato il

 

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 be readapted for any other greppable parameter on the server.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

This site uses Akismet to reduce spam. Learn how your comment data is processed.