with this I can list it up:
MAC: ifconfig eth0| grep -i HWaddr
IP: ifconfig eth0| grep -i 'inet addr'
DNS: more /etc/resolv.conf | grep -i nameserver
these will get something like this:
eth0 Link encap:Ethernet HWaddr 00:89:66:05:C8:EF
inet addr:82.196.108.169 Bcast:82.196.109.255 Mask:255.255.254.0
and
nameserver 113.180.249.2
nameserver 113.180.248.3
now I just wish I could understand awk so I could get these into one little nice output line as something like:
type:data;type:data... etc
HWaddr:00:89:66:05:C8:EF;inet addr:82.196.108.169;nameserver:113.180.249.2;nameserver:113.180.248.3
and I can even throw in the Bcast and Mask from the IP address too.
Then try to figure out how to send it so a listening service... but thats another thing.
This is the first thing I need help with and if you feel like it, please explain what it is every command are doing
The next step is to get this to work on a distro named: Linux MontaVista Pro 3.11. It's a commercial version so I have no info about it, at least what I can find.
A buddy of mine came over two screen with these cards in it and asked me to help him with a script for the above.
I just told him, no way dude
but I'm curious anyways lol
//B52
UPDATE: I just saw that using a colon to separate the 'type' and 'data' ain't so smart since the MAC address has that, think I have to go with some other "splitter"


