Re: MAC Address on Linux

2004-10-10 Thread Mark Talluto
On Oct 9, 2004, at 3:27 PM, Ken Ray wrote: Thanks, Mark... I tried this in my copy of RedHat 9, and I don't get anything with HWaddr in /sbin/ifconfig. When I looked at Mark Waddingham's approach of doing cat /proc/net/arp, I didn't get anything either. The only thing I got with /sbin/ifconfig

Re: MAC Address on Linux

2004-10-09 Thread Mark Talluto
On 10/8/04 3:45 PM, Mark Talluto userev at canelasoftware.com wrote: Thanks for the tip! It worked like a charm. Once I get the parsing of the returned data down, I'll update Ken with the Linux bit. Thanks, Mark! I'd appreciate that... Ken, Here is the snippet for finding the MAC Address

Re: MAC Address on Linux

2004-10-09 Thread Ken Ray
appreciate that... Ken, Here is the snippet for finding the MAC Address on Linux. I had to learn some basics on PCRE syntax. Took a while, but was worth the knowledge. case Linux if there is a file(/sbin/ifconfig) then put shell(/sbin/ifconfig) into temp get matchText

Re: MAC Address on Linux

2004-10-09 Thread Ken Ray
On 10/9/04 11:42 AM, Mark Talluto [EMAIL PROTECTED] wrote: case Linux if there is a file(/sbin/ifconfig) then put shell(/sbin/ifconfig) into temp get matchText(temp,HWaddr[* ]([0-9A-Z:]*),retVal) else return An error has occured. end if break

Re: MAC Address on Linux

2004-10-09 Thread Alex Tweedly
At 15:18 09/10/2004 -0500, Ken Ray wrote: (Sorry about that last one) Thanks, Mark... I tried this in my copy of RedHat 9, and I don't get anything with HWaddr in /sbin/ifconfig. When I looked at Mark Waddingham's approach of doing cat /proc/net/arp, I didn't get anything either. The only thing I

Re: MAC Address on Linux

2004-10-09 Thread Pierre Sahores
Hi, Use the ifconfig -a command to collect all the availables interfaces informations. Best, Le 9 oct. 04, à 23:20, Alex Tweedly a écrit : At 15:18 09/10/2004 -0500, Ken Ray wrote: (Sorry about that last one) Thanks, Mark... I tried this in my copy of RedHat 9, and I don't get anything with

Re: MAC Address on Linux

2004-10-09 Thread Ken Ray
On 10/9/04 4:20 PM, Alex Tweedly [EMAIL PROTECTED] wrote: At 15:18 09/10/2004 -0500, Ken Ray wrote: (Sorry about that last one) Thanks, Mark... I tried this in my copy of RedHat 9, and I don't get anything with HWaddr in /sbin/ifconfig. When I looked at Mark Waddingham's approach of doing

MAC Address on Linux

2004-10-08 Thread Mark Talluto
Anyone know how to get the MAC Address on Linux? Ken has a tip for this on his site, but it does not include Linux. I am afraid I know next to nothing about Linux. A pointer on how I could get this would save me much time. Thanks! -- Best regards, Mark Talluto http://www.canelasoftware.com

Re: MAC Address on Linux

2004-10-08 Thread Mark Waddingham
Hi Mark, On Fri, 8 Oct 2004, Mark Talluto wrote: Anyone know how to get the MAC Address on Linux? Ken has a tip for this on his site, but it does not include Linux. I am afraid I know next to nothing about Linux. A pointer on how I could get this would save me much time. Thanks

Re: MAC Address on Linux

2004-10-08 Thread Mark Talluto
On Oct 8, 2004, at 1:37 PM, Mark Waddingham wrote: Hi Mark, On Fri, 8 Oct 2004, Mark Talluto wrote: Anyone know how to get the MAC Address on Linux? Ken has a tip for this on his site, but it does not include Linux. I am afraid I know next to nothing about Linux. A pointer on how I could get

Re: MAC Address on Linux

2004-10-08 Thread Mark Waddingham
Hi Mark, Thanks for the tip! It worked like a charm. Once I get the parsing of the returned data down, I'll update Ken with the Linux bit. Another option is to do shell(cat /proc/net/arp) - although I'd have to check to see if this is the same on 2.4 kernels (I'm running 2.6). Mark.

Re: MAC Address on Linux

2004-10-08 Thread Ken Ray
On 10/8/04 3:45 PM, Mark Talluto [EMAIL PROTECTED] wrote: Thanks for the tip! It worked like a charm. Once I get the parsing of the returned data down, I'll update Ken with the Linux bit. Thanks, Mark! I'd appreciate that... Ken Ray Sons of Thunder Software Web site: