Re: Does the snmpd daemon has a size limit for setting strings?

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 20 February 2011 14:44, Daniel Leicht <[email protected]> wrote:
> Is there a chance that snmpd trunctuates a string that is larger than 910 chars?

snmpd as a whole shouldn't enforce a maximum string length,
but it's the various extension mechanisms may well have implicit limits.

In particular, the "pass" mechanism relies on the "struct extensible"
data structure, defined in agent/mibgroup/struct.h
This includes:

#define STRMAX 1024

struct extensible {
    char            name[STRMAX];
    char            command[STRMAX];
       etc
}

So the command that's run will be limited to 1024 characters max.
Once you've taken into account the path of the pass command
itself, plus the other parameters, that may well truncate the final
string to 900-ish characters.

Dave

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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.