bin/router_mac
Long description for file: Get MAC / IP table of active hosts from core routers
- update the IP for known MACs, with a time stamp
- lookup the DNS name for MACs called "unknown"
- insert all new unknown MACs, with IP, DNS name, and make as status "unmanaged"
- save the last DNS name corresponding to the current ip (r_ip) in last_hostname (v3)
On IOS do "show ip arp" or "sh ip arp vrf insec" Further reading: http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml The "getif" tool for exploring MIBs. http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=ipNetToMediaPhysAddress MIB Directory: ~ip/ipNetToMediaTable/ipNetToMediaEntry/ipNetToMediaPhysAddress OID: 1.3.6.1.2.1.4.22.1.2 Which mibs are supported by which Cisco devices ? http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml Could not get it to work with Cisco PIX To walk a router: snmpwalk -v 1 -c COMMUNITY IP_ADDRESS
PHP version 5
LICENSE: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.