netdisco / snmp-info

Other
38 stars 32 forks source link

Cannot find module (ADTRAN-GENEVC-MIB): At line 1 in (none) #273

Closed Linwood-F closed 5 years ago

Linwood-F commented 6 years ago

I'm not sure if this should be entered for netdisco or here, but guessing here.

I think I have the latest release of everything (as below) and am getting this when I run a discovery of a netvanta 1335 POE switch running firmware 17.09.01.00.E (which is really old I realize but not sure if it's related to firmware so much as mib connections).

Expected Behavior

I was looking for LLDP neighbors, and I think (maybe) that the error caused it to fail to find them.

Current Behavior

As below:

$ ~netdisco/bin/netdisco-do show -d 192.168.1.208 -e c_id
[129664] 2018-08-28 20:22:44  info App::Netdisco version 2.039031 loaded.
[129664] 2018-08-28 20:22:45  info show: [192.168.1.208]/c_id started at Tue Aug 28 15:22:45 2018
MIB search path: /home/netdisco/netdisco-mibs/3com:/home/netdisco/netdisco-mibs/adtran:/home/netdisco/netdisco-mibs/aerohi          ve:/home/netdisco/netdisco-mibs/alcatel:/home/netdisco/netdisco-mibs/allied:/home/netdisco/netdisco-mibs/apc:/home/netdisc          o/netdisco-mibs/arista:/home/netdisco/netdisco-mibs/aruba:/home/netdisco/netdisco-mibs/asante:/home/netdisco/netdisco-mibs          /avaya:/home/netdisco/netdisco-mibs/bluecoat:/home/netdisco/netdisco-mibs/bluesocket:/home/netdisco/netdisco-mibs/brother:          /home/netdisco/netdisco-mibs/cabletron:/home/netdisco/netdisco-mibs/ceragon:/home/netdisco/netdisco-mibs/checkpoint:/home/          netdisco/netdisco-mibs/cisco:/home/netdisco/netdisco-mibs/ciscosb:/home/netdisco/netdisco-mibs/citrix:/home/netdisco/netdi          sco-mibs/colubris:/home/netdisco/netdisco-mibs/cyclades:/home/netdisco/netdisco-mibs/d-link:/home/netdisco/netdisco-mibs/d          ell:/home/netdisco/netdisco-mibs/enterasys:/home/netdisco/netdisco-mibs/EXTRAS:/home/netdisco/netdisco-mibs/extreme:/home/          netdisco/netdisco-mibs/extricom:/home/netdisco/netdisco-mibs/f5:/home/netdisco/netdisco-mibs/force10:/home/netdisco/netdis          co-mibs/fortinet:/home/netdisco/netdisco-mibs/foundry:/home/netdisco/netdisco-mibs/gigamon:/home/netdisco/netdisco-mibs/h3          c:/home/netdisco/netdisco-mibs/hp:/home/netdisco/netdisco-mibs/huawei:/home/netdisco/netdisco-mibs/ibm:/home/netdisco/netd          isco-mibs/juniper:/home/netdisco/netdisco-mibs/lancom:/home/netdisco/netdisco-mibs/lantronix:/home/netdisco/netdisco-mibs/          liebert:/home/netdisco/netdisco-mibs/mediant:/home/netdisco/netdisco-mibs/meraki:/home/netdisco/netdisco-mibs/meru:/home/n          etdisco/netdisco-mibs/mikrotik:/home/netdisco/netdisco-mibs/moser-baer:/home/netdisco/netdisco-mibs/motorola:/home/netdisc          o/netdisco-mibs/nateks:/home/netdisco/netdisco-mibs/net-snmp:/home/netdisco/netdisco-mibs/netapp:/home/netdisco/netdisco-m          ibs/netgear:/home/netdisco/netdisco-mibs/netscreen:/home/netdisco/netdisco-mibs/nexans:/home/netdisco/netdisco-mibs/nortel          :/home/netdisco/netdisco-mibs/northerndesign:/home/netdisco/netdisco-mibs/opengear:/home/netdisco/netdisco-mibs/packetfron          t:/home/netdisco/netdisco-mibs/paloalto:/home/netdisco/netdisco-mibs/pica8:/home/netdisco/netdisco-mibs/rad:/home/netdisco          /netdisco-mibs/rfc:/home/netdisco/netdisco-mibs/riverbed:/home/netdisco/netdisco-mibs/ruckus:/home/netdisco/netdisco-mibs/          schleifenbauer:/home/netdisco/netdisco-mibs/sentry:/home/netdisco/netdisco-mibs/sixnet:/home/netdisco/netdisco-mibs/sonicw          all:/home/netdisco/netdisco-mibs/tplink:/home/netdisco/netdisco-mibs/trapeze:/home/netdisco/netdisco-mibs/vmware:/home/net          disco/netdisco-mibs/xirrus
Cannot find module (ADTRAN-GENEVC-MIB): At line 1 in (none)
undef
[129664] 2018-08-28 20:22:51  info show: finished at Tue Aug 28 15:22:51 2018

Possible Solution

I assume a MIB is missing in the package?

Steps to Reproduce (for bugs)

As above.

Context

Adtrans are not showing neighbor information (I do not know for sure if snmp-info would show it, but they do have lldp and do themselves show neighbors.

Your Environment

Netdisco 2.39.31 SNMP::Info 3.61 Perl 5.26.1

Linwood-F commented 6 years ago

Incidentally I looked in the current adtran mib package, as well as googling for it, and don't see either of these names.

perl5/lib/perl5/SNMP/Info/Layer2/Adtran.pm: 'ADTRAN-GENEVC-MIB' => 'adGenEVCMIB',

Linwood-F commented 6 years ago

Final comment: Just in the mode of "make the error go away" I deleted the indicated commented lines and I was able to successfully discover the adtran units I have. All three of the lines give the same error. I have no idea if these are needed (for other things or models) or if they are something old and no longer present.

%MIBS = (
    %SNMP::Info::Layer2::MIBS,
    %SNMP::Info::Layer3::MIBS,
#    'ADTRAN-GENEVC-MIB'     => 'adGenEVCMIB',
#    'ADTRAN-GENMEF-MIB'     => 'adGenMEFMIB',
#    'ADTRAN-GENPORT-MIB'    => 'adGenPort',
    'ADTRAN-MIB'            => 'adtran',
    'ADTRAN-AOSUNIT'     => 'adGenAOSUnitMib',
 );
inphobia commented 6 years ago

fyi maintainers: seems to be also reported #269

Linwood-F commented 6 years ago

@inphobia, sorry, I tried searching but only for the one that hit me first, yes, sounds the same.

ollyg commented 5 years ago

have applied the patch suggested by @Linwood-F