Re: community string
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2009/4/6 Tanisha Kashyap <[email protected]>: > Can any one tell me what kind of data can the community string take? > Does it have to be only alphabets, or can it be alphanumeric? > Or can it contain any special characters? As Rakesh says, the community string is defined as an OCTET STRING - so can potentially take *any* string value (including binary as well as printable strings). There's no explicit restriction on this value In practice, many SNMP applications, toolkits, etc would probably struggle with non-printable community strings. Also, other MIBs that work with community strings may effectively impose size and value restrictions. For example: NOTIFICATION-LOG-MIB::nlmLogContextName SnmpAdminString RMON-MIB::eventCommunity OCTET STRING (SIZE(0..127)) So you are probably best sticking to printable strings of no more than 255 (SnmpAdminString) or ideally 127 characters in length. But within that, you should be OK. Dave ------------------------------------------------------------------------------ _______________________________________________ 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