cisco 2900xl - SNMP - Get mac address of device connected to an interface
- by ankit
Hello all,
Basically what i want to do is to find out what is the mac address of a device plugged in to an interface on the switch (FastEthernet0/1 for example)
reading through the switch documentaion i found out that i can configure snmp trap on it to make it notify of any new mac address the switch detects by using the command
snmp-server enable traps mac-notifiction
but for some reason my switch does not support this feature. the only options i see are
CORE_SWITCH(config)#snmp-server enable traps ?
c2900 Enable SNMP c2900 traps
cluster Enable Cluster traps
config Enable SNMP config traps
entity Enable SNMP entity traps
hsrp Enable SNMP HSRP traps
snmp Enable SNMP traps
vlan-membership Enable VLAN Membership traps
vtp Enable SNMP VTP traps
<cr>
so the other way would be for me to run a cronjon on my gateway to poll the switch periodically using snmp to get new mac addresses
i have looked everywhere but cant seem to find the OID that would provide me this information.
any help i can get would me very much appreciated !
here's the output from "show version" on my switch
Cisco Internetwork Operating System Software
IOS (tm) C2900XL Software (C2900XL-C3H2S-M), Version 12.0(5.4)WC(1), MAINTENANCE INTERIM SOFTWARE
Copyright (c) 1986-2001 by cisco Systems, Inc.
Compiled Tue 10-Jul-01 11:52 by devgoyal
Image text-base: 0x00003000, data-base: 0x00333CD8
ROM: Bootstrap program is C2900XL boot loader
CORE_SWITCH uptime is 1 hour, 24 minutes
System returned to ROM by power-on
System image file is "flash:c2900XL-c3h2s-mz.120-5.4.WC.1.bin"
cisco WS-C2912-XL (PowerPC403GA) processor (revision 0x11) with 8192K/1024K bytes of memory.
Processor board ID FAB0409X1WS, with hardware revision 0x01
Last reset from power-on
Processor is running Enterprise Edition Software
Cluster command switch capable
Cluster member switch capable
12 FastEthernet/IEEE 802.3 interface(s)
32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:01:42:D0:67:00
Motherboard assembly number: 73-3397-08
Power supply part number: 34-0834-01
Motherboard serial number: FAB040843G4
Power supply serial number: DAB05030HR8
Model revision number: A0
Motherboard revision number: C0
Model number: WS-C2912-XL-EN
System serial number: FAB0409X1WS
Configuration register is 0xF
thanks,
-ankit