Alex Burger writes:
 > To be sure that the 5.1.3.1 snmptrapd is not loading any libraries from
 > 5.0.9, run:
 >  ldd /root/net-snmp-5.1.3.1/apps/snmptrapd
turns out that above isn't quite right cause it's a shell script that
calls lt-snmptrapd.  But
 # ldd /root/net-snmp-5.1.3.1/apps/.libs/lt-snmptrapd
   libnetsnmptrapd.so.5 => 
/root/net-snmp-5.1.3.1/apps/.libs/libnetsnmptrapd.so.5 (0x40014000)
   libnetsnmpagent.so.5 => 
/root/net-snmp-5.1.3.1/agent/.libs/libnetsnmpagent.so.5 (0x4001f000)
   libnetsnmpmibs.so.5 => 
/root/net-snmp-5.1.3.1/agent/.libs/libnetsnmpmibs.so.5 (0x40036000)
   libnetsnmphelpers.so.5 => 
/root/net-snmp-5.1.3.1/agent/helpers/.libs/libnetsnmphelpers.so.5 (0x400d2000)
   libnetsnmp.so.5 => /root/net-snmp-5.1.3.1/snmplib/.libs/libnetsnmp.so.5 
(0x400e5000)
   libdl.so.2 => /lib/libdl.so.2 (0x40179000)
   libcrypto.so.2 => /lib/libcrypto.so.2 (0x4017d000)
   libm.so.6 => /lib/libm.so.6 (0x40254000)
   libc.so.6 => /lib/libc.so.6 (0x40275000)
   /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

 > Make sure it's not loading library files from /usr/local/lib or wherever
 > RH's RPM installed them.

All those with snmp in the name are coming from the build dir, 
the rest I assume are not supposed to.

I don't think this is a library problem cause some things work.
Also when I make install and use the installed version the same
things work and fail.
BTW, here's what I view as confusing:
 make install
 ...
 [EMAIL PROTECTED] net-snmp-5.1.3.1]# which snmptrapd
 /usr/local/sbin/snmptrapd
 [EMAIL PROTECTED] net-snmp-5.1.3.1]# snmptrapd -v

 NET-SNMP Version:  5.0.9
 Web:               http://www.net-snmp.org/
 Email:             net-snmp-coders@lists.sourceforge.net

 [EMAIL PROTECTED] net-snmp-5.1.3.1]# /usr/local/sbin/snmptrapd -v

 NET-SNMP Version:  5.1.3.1
 Web:               http://www.net-snmp.org/
 Email:             net-snmp-coders@lists.sourceforge.net


Even stranger still,
BEFORE make install I get quoting:
 [EMAIL PROTECTED] net-snmp-5.1.3.1]# ./apps/snmptrapd -Lo -f 
 Cannot find module (IP-MIB): At line 0 in (none)
<19 more lines like that>
 2005-09-08 09:14:26 NET-SNMP version 5.1.3.1 Started.
 2005-09-08 09:14:29 number3 [10.0.0.1] (via 10.0.0.1) TRAP, SNMP v1,
 community private
           iso.3.6.1.4.1.2021.13.991 Enterprise Specific Trap (117)
 Uptime: 146 days, 12:42:38.95
         iso.3.6.1.2.1.1.6.0 = STRING: "XXX\\\" 
  iso.2.3.4 = INTEGER: 1234"

[The string contains \, ", tab, newline.]

and AFTER make install I don't:
 [EMAIL PROTECTED] net-snmp-5.1.3.1]# ./apps/snmptrapd -Lo -f
 2005-09-08 09:39:59 NET-SNMP version 5.1.3.1 Started.
 2005-09-08 09:40:05 number3 [10.0.0.1] (via 10.0.0.1) TRAP, SNMP v1,
 community private
           UCD-SNMP-MIB::ucdExperimental.991 Enterprise Specific Trap
 (117) Uptime: 146 days, 13:08:15.15
       SNMPv2-MIB::sysLocation.0 = STRING: XXX\"        
  iso.2.3.4 = INTEGER: 1234

Same behavior with
 ./apps/snmptrapd -Lo -f -C
 snmptrapd -Lo -f -C
 snmptrapd -Lo -f
 snmptrapd -Lo -f -C -c /tmp/snmptrapd.conf

 In addition to the two quoting behaviors above, I notice a third:
 snmptrapd -f
puts the following in the syslog:
 Sep  8 09:49:42 don-eve snmptrapd[17845]: 10.0.0.1: Enterprise
 Specific Trap (.117) Uptime: 146 days, 13:17:52.09,
 SNMPv2-MIB::sysLocation.0 = STRING: XXX\"^I  iso.2.3.4 = INTEGER: 1234
That is, the tab is replaced by two chars, ^I while the newline is
replaced by a space.


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to