From: Max B. <ma...@wa...> - 2004-11-06 19:16:44
|
Kesy, On Sat, Nov 06, 2004 at 04:42:00PM +0100, trango wrote: > I know I have to add vlan_id to community for vlans > (community@vlan_id) , but it seems the problem is in > "dot1dBasePortIfIndex" because for interfaces with port security it > returns 0 (zero) so it is not possible to identify the phisical interface. > I think it is necessary to use CISCO-PORT-SECURITY-MIB and for example > cpsIfSecureLastMacAddress . > > I added "cpsIfSecureLastMacAddress" to file Bridge.pm and now I can > grab mac address, but I am not sure if direct modification SNMP::Info > files is good way to solve problem? You're close. I would add support for CISCO-PORT-SECURITY-MIB into SNMP::Info::CiscoStack -- that is a Cisco-specific location that would make more sense then having the data available for all devices. I'm not familiar at all with Cisco's Port Security feature, so I'm not sure why it doesn't fill the forwarding tables like normal. What models of cisco devices do you see this on, by the way? Don't forget to send your changes back to me so I can incorporate them into the next version of SNMP::Info. Thanks, -m |