Opened 13 years ago

Closed 13 years ago

#31173 closed defect (fixed)

net-snmp @5.7 "Cannot find module (SNMPv2-SMI)" noise

Reported by: robin@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: haspatch Cc: miken32 (Michael Newton), mike-savory
Port: net-snmp

Description

After update to 5.7 using snmp will cause some "cannot find module" noise, for example:

% snmpstatus -v3 srx1
MIB search path: /Users/username/.snmp/mibs:/opt/local/share/snmp/mibs
Cannot find module (SNMPv2-SMI): At line 6 in /opt/local/share/snmp/mibs/SNMPv2-MIB.txt
Cannot find module (SNMPv2-TC): At line 9 in /opt/local/share/snmp/mibs/SNMPv2-MIB.txt
Cannot find module (SNMPv2-MIB): At line 1 in (none)
Cannot find module (IANAifType-MIB): At line 13 in /opt/local/share/snmp/mibs/IF-MIB.txt
Cannot find module (IF-MIB): At line 1 in (none)
Cannot find module (INET-ADDRESS-MIB): At line 15 in /opt/local/share/snmp/mibs/IP-MIB.txt
Cannot find module (IP-MIB): At line 1 in (none)
Cannot find module (TCP-MIB): At line 1 in (none)
Cannot find module (UDP-MIB): At line 1 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 11 in /opt/local/share/snmp/mibs/SNMP-VIEW-BASED-ACM-MIB.txt
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 1 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 18 in /opt/local/share/snmp/mibs/SNMP-COMMUNITY-MIB.txt
Cannot find module (SNMP-COMMUNITY-MIB): At line 1 in (none)
[UDP: [10.0.99.72]:161->[0.0.0.0]:0]=>[Juniper Networks, Inc. srx3600 internet router, kernel JUNOS 10.4R6.5 #0: 2011-07-23 10:41:41 UTC     builder@warth.juniper.net:/volume/build/junos/10.4/release/10.4R6.5/obj-powerpc/bsd/sys/compile/JUNIPER-SRX Build date: 2011-07-23 10:19:14 UTC Copyrigh] Up: 10 days, 20:09:18.84
Interfaces: 122, Recv/Trans packets: 928023598/-1565682018 | IP: 31449226/10144715
23 interfaces are down!

The attached patch, lifted from FreeBSD ports/159252, resolves the issue.

Attachments (1)

net-snmp-5.7_1.diff (7.8 KB) - added by robin@… 13 years ago.
Patch

Download all attachments as: .zip

Change History (12)

Changed 13 years ago by robin@…

Attachment: net-snmp-5.7_1.diff added

Patch

comment:1 Changed 13 years ago by miken32 (Michael Newton)

Cc: miken32@… added

Cc Me!

comment:2 Changed 13 years ago by miken32 (Michael Newton)

Please add the maintainer's email address to CC so they can know this ticket exists. I'd like to see this get fixed as well.

Maintainers:          ryandesign@macports.org, openmaintainer@macports.org

http://guide.macports.org/#project.tickets.guidelines

comment:3 Changed 13 years ago by robin@…

My apologies, I appear to lack the ability to amend the CC list post ticket creation. We will have to rely on an admin to do this.

comment:4 Changed 13 years ago by mike-savory

Cc: msavory@… added

Cc Me!

comment:5 Changed 13 years ago by mike-savory

So I read the stuff from FreeBSD, and I initially was concerned that tis was just hiding errors, but seems OK. Will bump on the dev list.

comment:6 in reply to:  5 Changed 13 years ago by mike-savory

Apple's version works fine still if needed....

$ /usr/bin/snmpwalk -V
NET-SNMP version: 5.6

comment:7 Changed 13 years ago by neverpanic (Clemens Lang)

Owner: changed from macports-tickets@… to ryandesign@…

Assigned to maintainer.

comment:8 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added; snmp removed

I have updated net-snmp to version 5.7.1. Is this still a problem?

comment:9 Changed 13 years ago by miken32 (Michael Newton)

Works for me.

 $ snmpget -V
 NET-SNMP version: 5.7.1
 $ 

comment:10 Changed 13 years ago by mike-savory

Yes, that fixes all the erroneous errors for me as well, thanks Ryan

comment:11 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.