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.
In reply to Re: obtaining MAC address(es)
by lhoward
in thread obtaining MAC address(es)
by dshahin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |