Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SNMP (snmp)

Reached from

Lower layerSelectorValue
udpdst_port / src_port161 (0x00a1)
udpdst_port / src_port162 (0x00a2)

Fields

FieldTypeDefaultAutoDescription
msg_taguint(8)48BER tag octet (0x30 SEQUENCE, 0x02 INTEGER, 0x04 OCTET STRING).
msg_lengthuint(8)Length of the header and payload in octets (-2)BER length of the SNMP message SEQUENCE (Auto; short form, below 128).
version_taguint(8)2BER tag octet (0x30 SEQUENCE, 0x02 INTEGER, 0x04 OCTET STRING).
version_lengthuint(8)1BER length of the version INTEGER (1).
versionenum(8)1 (v2c)SNMP version (0 = v1, 1 = v2c).
community_taguint(8)4BER tag octet (0x30 SEQUENCE, 0x02 INTEGER, 0x04 OCTET STRING).
community_lengthuint(8)6BER length of the community string, in octets.
communitybytes — community_length octets70 75 62 6c 69 63Community string (e.g. “public”).

version

ValueName
0 (0x00)v1
1 (0x01)v2c

Next layer

The next layer is selected by version; when the field is Auto the builder writes the value of the protocol stacked above.

ValueProtocolNote
(any other value)snmp_pdu

Constraints

LevelRule
warningmsg_tag = 48
warningheader and payload at most 129 octets

Sample templates