All, I built the net-snmp 5.4.2.1 binaries from source on one machine and ran the install to install the files in build dir on the same machine. I then manually copied files to the target machine. I copied the supplied MIB files to /usr/local/share/snmp/mibs directory, the libraries to /lib and the binaries to /sbin.
My /usr/local/etc/snmp/snmpd.conf file has just one line rocommunity public I start the daemon as follow: /sbin/snmpd -c /usr/local/etc/snmp/snmpd.conf -V -d -Lf /var/log/net-snmp.log when I cat /var/log/net-snmp.log file, the file has the following lines: 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) Cannot find module (SNMP-TARGET-MIB): At line 0 in (none) Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none) Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module (SNMP-MPD-MIB): At line 0 in (none) Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none) Cannot find module (IP-FORWARD-MIB): At line 0 in (none) Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none) Cannot find module (UCD-DLMOD-MIB): At line 0 in (none) Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module (SNMPv2-TM): At line 0 in (none) Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none) NET-SNMP version 5.4.2.1 beyre>> snmptranslate -Dparse-mibs No log handling enabled - turning on stderr logging registered debug token parse-mibs, 1 parse-mibs: Module SNMPv2-SMI not found parse-mibs: Module RFC1155-SMI not found parse-mibs: Module RFC1213-MIB not found parse-mibs: Scanning directory //.snmp/mibs parse-mibs: No index parse-mibs: cannot open MIB directory //.snmp/mibs parse-mibs: Scanning directory /home/beyre/6.1.5.V-beyre/engr/third-party/objs/net-snmp//share/snmp/mibs parse-mibs: No index parse-mibs: cannot open MIB directory /home/beyre/6.1.5.V-beyre/engr/third-party/objs/net-snmp//share/snmp/mibs parse-mibs: Cannot find module (IP-MIB): At line 0 in (none) parse-mibs: Cannot find module (IF-MIB): At line 0 in (none) parse-mibs: Cannot find module (TCP-MIB): At line 0 in (none) parse-mibs: Cannot find module (UDP-MIB): At line 0 in (none) parse-mibs: Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) parse-mibs: Cannot find module (SNMPv2-MIB): At line 0 in (none) parse-mibs: Cannot find module (SNMPv2-SMI): At line 0 in (none) parse-mibs: Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none) parse-mibs: Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none) parse-mibs: Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none) .......... .......... The command snmptranslate has knowledge of my build machine. what do I do to make the snmpd and net-snmp commands to find the mib files target machine? your feedback is appreciated thanks Bernadette ------------------------------------------------------------------------------ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
