2009/4/15 Richard Gipps <[email protected]>: > There does not seem to be anything in the RFCs on maximum community > string lengths.
Correct. The specs implicitly allow an arbitrary length string (although there may be some limit imposed by ASN.1 or BER - I'm not sure offhand). > Is there some defacto standard for maximum length. The main restriction will be from MIB objects that take a community string as their value. The COMMUNITY-MIB is defined in terms of a bare OCTET STRING, so there's no problem there. But some other MIBs may use more restricted syntax. For example, the NOTIFICATION-LOG-MIB defines nlmLogContextName (which takes a community string for v1 traps) as SnmpAdminString - hence limited to 255 (printable) characters max. > Does net-snmp impose a maximum length? I don't believe so, no. The community string is allocated dynamically, using a "value+len" representation. So I don't think there'll be any restriction on extra-long strings here. Dave ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ 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
