SNMP Stuff

> Is there a MIB to get the ARP table of a router?  Should be one I would
> think but can't find it.

Yes, .iso.org.dod.internet.mgmt.mib-2.at.atTable.atEntry.atPhysAddress will
do what you want.



=================
That works but the mib entry is depricated.  The entry they want
you to use instead is:

Directory: ~ip/ipNetToMediaTable/ipNetToMediaEntry/ipNetToMediaPhysAddress
OID: 1.3.6.1.2.1.4.22.1.2

The "at" entry was put in the MIB with the implicit assumption
that no protocol other than IP would ever use ARP.  That's why
something different was needed.

Where $router is the IP address or name of the router,
	$comname is the community string (often public)
	and $querytype is
"ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress"

    snmpwalk $router $comname $querytype

e.g.

   snmpwalk 192.168.1.1 "public"
"ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress"

supports both.  Other router vendors do not.