netdisco / snmp-info

Other
35 stars 31 forks source link

CiscoPower mib dose not load: wrong object? #25

Closed netdisco-automation closed 7 years ago

netdisco-automation commented 15 years ago

When attempting to get infro from a Cisco 3560 or 2960 I get an error like this: -- SNMP::Info::_global layers : sysServices.0 SNMP::Info::_global description : sysDescr.0 SNMP::Info::_global id : sysObjectID.0 SNMP::Info::device_type() layers:00000110 id:.1.3.6.1.4.1.9.1.616 sysDescr:"Cisco IOS Software, C3560 Software (C3560-IPBASE-M), Version 12.2(25)SEB4, RELEASE SOFTWARE (fc1) Copyright (c) 1986-2005 by Cisco Systems, Inc. Compiled Tue 30-Aug-05 14:19 by yenanh" The CISCO-POWER-ETHERNET-EXT-MIB did not load. See README for SNMP::Info::Layer3::C3550 --

It appears that CiscoPower.em is attempting to call an object that doesn't exist in CISCO-POWER-ETHERNET-EXT-MIB.my. I'm no SNMP expert, but this looks the solution (I don't know if it gives the correct results, but it is my best guess and no longer gives an error):

SNMP/Info/CiscoPower.pm -- 44 #%MIBS = ( 'CISCO-POWER-ETHERNET-EXT-MIB' => 'cpeExtPsePortEntPhyIndex' ); 45 %MIBS = ( 'CISCO-POWER-ETHERNET-EXT-MIB' => 'cpeExtMainPseEntPhyIndex' ); 46 47 %GLOBALS = (); 48 49 #%FUNCS = ( 'cpeth_ent_phy' => 'cpeExtPsePortEntPhyIndex', ); 50 %FUNCS = ( 'cpeth_ent_phy' => 'cpeExtMainPseEntPhyIndex', ); 51

Reported by: mratomic

Original Ticket: snmp-info/bugs/25

netdisco-automation commented 15 years ago

Check your CISCO-POWER-ETHERNET-EXT-MIB for its LAST-UPDATED -- is it 200612190000Z? That revision added the cpeExtPsePortTable which this module needs. This version is in the netdisco-mibs 0.4 distribution, or of course at Cisco's site.

Original comment by: fenner

netdisco-automation commented 12 years ago

Original comment by: ollyg

netdisco-automation commented 12 years ago

okay so this is fixed by updating netdisco-mibs, so closing the ticket.

Original comment by: ollyg