Gaurav Chaudhary
2008-05-02 06:32:47 UTC
Hi,
For '''Ticket #10''' we can implement the following line which can fetch us the mac address of the machine:
Command :-
$ /sbin/ifconfig -a| awk ' ($0~/Link encap:Ethernet HWaddr /){print $1"\t" $5}'
Output :-
eth0 00:XX:XX:XX:XX:3E
eth1 00:XX:XX:XX:XX:3D
We can also limit the output to eth0 only.
Thanks and Regards
Gaurav
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
For '''Ticket #10''' we can implement the following line which can fetch us the mac address of the machine:
Command :-
$ /sbin/ifconfig -a| awk ' ($0~/Link encap:Ethernet HWaddr /){print $1"\t" $5}'
Output :-
eth0 00:XX:XX:XX:XX:3E
eth1 00:XX:XX:XX:XX:3D
We can also limit the output to eth0 only.
Thanks and Regards
Gaurav
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.