Re: snmptrapd - avoiding ambiguity in log files

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.