Re: Getting MAC adress

From: Doug O'Leary (dkoleary_at_olearycomputers.com)
Date: 09/02/04


Date: Thu, 02 Sep 2004 12:15:01 GMT

On 2004-09-02, Tieum <surnom.surnom@free.fr> wrote:
>
> I'm looking for a way to retrieve the number of interfaces and their MAC
> adresses under HP-UX, AIX and Solaris. This methods need to work as a
> non-root user.
>

I would look into a perl script using snmp. The benefit of snmp is that
the MAC address will be at the same mib location for all three operating
systems which will certainly save you some programming time.

Perl has an excellent SNMP module that makes coding snmp queries
incredibly easy. Email me directy if you have specific questions about
it.

Doug

-- 
--------
Senior UNIX Admin
O'Leary Computer Enterprises
dkoleary@olearycomputers.com (w) 630-904-6098 (c) 630-248-2749
resume:  http://home.comcast.net/~dkoleary/resume.html


Relevant Pages

  • Re: Detecting multiple hosts behind a single managed switch port
    ... Foundry and Cisco) via SNMP and return ports on those switches that ... have more than one end host connected (based on MAC addresses). ... would need to filter out ports that are connected to other managed ... This task is a bit tricky because on the Cisco, ...
    (comp.dcom.sys.cisco)
  • Re: Tips oder Warnungen =?iso-8859-1?Q?f=FCr?= Multifunktionsdrucker =?iso-8859-1?Q?
    ... man mit der Windows-Software noch so alles machen kann. ... dem Mac verfügbar? ... Brother MFC zwischenspeichern und anschl. ... Von obigen Unterschieden abgesehen (also Druckerfunktionalität per SNMP, ...
    (de.comp.sys.mac.misc)
  • RE: Experts Guide regarding MAC Address of a remote machine.
    ... A possibility which I employed to this end in the distant past was to use SNMP to access the router supporting the subnet on which the PC resided, and scan its IP address table (which contains the Mac address and IP address in question). ...
    (microsoft.public.win32.programmer.networks)
  • Re: SNMP oid error
    ... The Ruby SNMP library isn't as smart as Net-SNMP at formating output ... each digit of the MAC. ... module SNMP ...
    (comp.lang.ruby)
  • Temperature monitoring with SNMP
    ... I've got several Solaris hosts that I'm trying to instrument using SNMP, ... I'd like to be able to report sensor ...
    (SunManagers)