wire / wire-format / snmp-protocol

SNMP (Simple Network Management Protocol)

SNMP is a protocol for network management. Managers query agents on devices. Operations: Get (read), GetNext (read next), GetBulk (read many), Set (write), Trap (unsolicited notification), Inform (acknowledged notification). Data is organized in a MIB (Management Information Base) tree of OIDs (Object Identifiers). SNMPv3 adds authentication and encryption.

wire-format kind wire-format status standard verification verified tier B wire-format@1

aka: SNMP (Simple Network Management Protocol)

wire format

spec: RFC 3411-3418 (SNMPv3)

SNMP is a protocol for network management. Managers query agents on devices. Operations: Get (read), GetNext (read next), GetBulk (read many), Set (write), Trap (unsolicited notification), Inform (acknowledged notification). Data is organized in a MIB (Management Information Base) tree of OIDs (Object Identifiers). SNMPv3 adds authentication and encryption.

fieldsizemeaning
GetPDURead a value: Get(varbind list). Returns the values.
GetNextPDURead the next value in the MIB tree (lexicographic). Used for walking tables.
GetBulkPDU (v2c/v3)Read many values at once. More efficient than repeated GetNext.
SetPDUWrite a value: Set(varbind list). Returns confirmation.
TrapPDUUnsolicited notification from agent to manager. E.g., linkDown, coldStart, authenticationFailure.
InformPDU (v2c/v3)Acknowledged notification. Manager sends response.
OIDvariableObject Identifier: dotted decimal (e.g., 1.3.6.1.2.1.1.1.0 = sysDescr.0). Hierarchical tree.
VarbindvariableVariable binding: OID + value (or NULL for Get). Value types: integer, string, counter, gauge, timeticks, OID, IP address, etc.
Community stringv1/v2cShared secret for authentication (plaintext, sent in every packet). 'public' is the default (insecure).
USMv3User-based Security Model: username + auth protocol (MD5/SHA) + priv protocol (DES/AES). Replaces community strings.

example:

00 00

SNMP (placeholder)


provenance

agent: curl -H 'accept: application/json' wire.phall.io/wire-format/snmp-protocol or /wire-format/snmp-protocol.json