How to not load any MIB files
"Giuseppe Modugno" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | Elettronika S.r.l. |
| Message-ID | <[email protected]> |
I'm using snmptrap command to send notifications. It works well, but it is quite slow. I noticed it depends on loading all the MIB files. I don't need MIBs, because I use only numerical OIDs: snmptrap -v2c -c public 192.168.1.1 "" 1.3.6.1.4.1.... [The uncomplete numerical OID is the notification to send.] It seems the only method to avoid loading MIBs is to set MIBDIRS variable to "", so I use the command (everything on the same line): export MIBDIRS=""; snmptrap -v2c -c public 192.168.1.1 "" 1.3.6.1.4.1.... I receive the prompt in a very short time, and this is good for me. The trap is effectively and correctly send to the destination. The only problem is a bunch of error messages like the following: Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none) Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none) Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none) Cannot find module (UCD-SNMP-MIB): At line 0 in (none) Cannot find module (UCD-DEMO-MIB): At line 0 in (none) ... Why snmptrap application tries to find those modules, if I use only numerical OIDs? Could I safely ignore these error messages? I tried to redirect them to /dev/null, but I couldn't. I tried with ">/dev/null" and "2>/dev/null" without success. ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users