Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Finding the Ethernet Address

by socketdave (Curate)
on May 30, 2006 at 16:18 UTC ( #552542=note: print w/ replies, xml ) Need Help??


in reply to Finding the Ethernet Address

Net::Address::Ethernet seems to use a variety of methods to grab the hardware address of your ethernet card. It works on my Windows 2k laptop and on Linux. I'm guessing that the other systems you specify will work too.

Update: I thought on it a bit more and realized that this is probably the module that you looked at on CPAN. As other monks have pointed out, there isn't really a universal solution. This module can use ipconfig, ifconfig and arp to get the hardware address, which should cover a really large percentage of the operating systems (or rather OS installations) that run Perl.


Comment on Re: Finding the Ethernet Address

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://552542]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-10-22 09:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (114 votes), past polls