readmacs – tells you the mac addresses of your real interfaces


lsdev -Cc adapter | grep "^ent" | while read A B
do
lscfg -vl $A
done | grep Network | cut -c 37- | tr 'A-Z' 'a-z' | while read MAC
        do
        echo $MAC | cut -c 1-4 | read MAC1
        echo $MAC | cut -c 5-8 | read MAC2
        echo $MAC | cut -c 9-12 | read MAC3
        echo $MAC1.$MAC2.$MAC3
        done

Leave a Reply

Your email address will not be published. Required fields are marked *