anand prasad worte: > Now, I am trying to use snmptrap command: > sudo ./snmptrap -v 2c -Ci -c public 192.168.1.137 "" > NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification > netSnmpExampleHeartbeatRate i 1234561 > I am getting the follwing error: > Cannot find module (IP-MIB): At line 0 in (none) [...] > NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification: Unknown > Object Identifier > If I build snmptrap without -static, then it works fine i.e I am able to > send/receive informReqeust and get-response. > But, I need to build my application by linking netsnmplib statically.
net-snmp warns about missing MIB files, not libraries. If you didn't use "make install", you may need to copy them manually. See "net-snmp-config --default-mibdirs" for where your build expects them. +Thomas ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ 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
