in reply to obtaining MAC address(es)

What are you looking to find the MAC address of?

If you're looking to find the MAC address of all interfaces the box you're running the script on what I'd consider the most cross-platform solution is to use one of perl's SNMP modules to query the ifTable ifPhysAddress entries for all the interfaces on the box. Of course, this assumes that all boxes you're gonnna run this script on have an SNMP daemon/service running on them and that you know the community string.

Replies are listed 'Best First'.
Re: Re: obtaining MAC address(es)
by deprecated (Priest) on Jan 26, 2001 at 03:56 UTC
    It really depends on the environment youre trying to obtain an address on. As I understand it, the IPv6 protocol includes MAC Address information (very cool, but spoofable). This may be of limited use to you depending on your application. I am moving to IPv6 on my internal network here to see how it behaves. You may be able to do something similar, in which case you could probably just take a look at the packets coming back from the machine in question.

    dep

    --
    i am not cool enough to have a signature.