Don Cohen wrote:
I next see that I get quoting only from running
/root/net-snmp-5.1.3.1/apps/snmptrapd WHEN IT'S NOT INSTALLED !
When I make install I get no quoting whether I run
/root/net-snmp-5.1.3.1/apps/snmptrapd
or
/usr/local/sbin/snmptrapd
(or just snmptrapd from a new shell where that's 5.1.3.1).
[...]
I now install again and find that I get quoting if I add -M /
(which causes all attempts to load mibs to fail)!
So there's something about loading mibs that causes the quoting
to be disabled! Does this make sense?
OK - we're finally getting to the bottom of this.
What you're seeing is the difference between:
1) objects of type OCTET STRING defined as SYNTAX SnmpAdminString or
DisplayString (e.g. the SNMPv2-MIB::sysLocation.0 you tested with)
2) objects of type OCTET STRING defined as SYNTAX OCTET STRING or
without a known MIB object definition
snmptrapd displays (consistently in 5.1.x, 5.2.x and CVS MAIN):
1) as STRING: XXXX (w/o quotes)
2) as STRING: "XXXX" (w/ quotes)
I'm not in the mood to comment on whether this behaviour is the most
sensible. Anyone else?
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
-------------------------------------------------------
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