Re: length of snmpEngineID
Magnus Fromreide <[email protected]> Thu, 25 Apr 2024 06:47:47 +0200
| Newsgroups | gmane.network.net-snmp.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Apr 23, 2024 at 09:51:08AM +0530, Pushpa Thimmaiah wrote: > Hi All, > > Could you please let me know length of snmpEngineID. Is it 12 octets or 32 > octets. > > In RFC 3411 (https://www.ietf.org/rfc/rfc3411.txt) , > mib object 'snmpEngineID' says 12 octets in description and 32 octet in You have to read the whole text. An snmpEngineID has a syntax of OCTET STRING (SIZE(5..32)) If the first bit of the snmpEngineID is 0 and it is 12 octets long then it might have been generated using the algorithm described in bullet 2 which is copied from rfc1910. If the first bit is 1 then it is generated in accordance with one of the methods in bullet 3 (or RFC5343) but it is important to notice that bullets 1-3 are just an recommended algorithm, not a mandatory one so you should treat snmpEngineID a a variable length string and not attempt to parse it. /MF