help ip script

hi everyone i dont have much experiencie in shell programing i need take/see/print the next stuff from at leas 45 solaris 8 machines

interface name (qfe, hme , etc)
ip address (x.x.x.x)
ether or mac (8:0:20:e8:da:45)

i do the next

# ifconfig -a | awk '{print $1, $2 ;}'|grep -v "lo0"|grep -v "127.0.0"

and work very weel but i net take out some data for example

this is the ouput whit my (script, command)

qfe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4>
inet 10.64.115.34
ether 8:0:20:e8:da:45
qfe2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4>
inet 172.16.1.101
ether 8:0:20:e8:da:45

i net take out all the flags=1000843,UP,BROADCAST,RUNNING..........

thanks a lot

pd: sorry about my english

ifconfig -a | awk '/inet/ { print $1,$2 } /flags=/ { print $1 }' |grep -v "lo0"|grep -v "127.0.0"