[CentOS] GRabbing MAC address
Bob Beers
bob.beers at gmail.comThu Feb 28 18:29:44 UTC 2008
- Previous message: [CentOS] GRabbing MAC address
- Next message: [CentOS] smtp mailer or SMART_HOST in sendmail.mc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Feb 28, 2008 at 8:47 AM, Jerry Geis <geisj at pagestation.com> wrote: > I am trying to grab the mac address for eth0 on centos 5.1 with > > ifconfig | grep eth0 | cut -d ' ' -f 5 and I dont get anything. > > What am I not doing right? > > ifconfig | grep eth0 | cut -d ' ' -f 1 gives me eth0 but anything else > like -f 2, -f 3 etc > I get nothing. > > ifconfig -a | awk '/eth0/ {print $5}' should work even if eth0 is not 'UP' -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080228/1a93cafa/attachment-0001.html>
- Previous message: [CentOS] GRabbing MAC address
- Next message: [CentOS] smtp mailer or SMART_HOST in sendmail.mc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list