base/protocols/snmp/main.zeek
- SNMP
Enables analysis and logging of SNMP datagrams.
- Namespace:
SNMP
- Imports:
Summary
Redefinable Options
Well-known ports for SNMP. |
|
|
Maps an SNMP version integer to a human readable string. |
Types
Information tracked per SNMP session. |
Redefinitions
|
Events
Event that can be handled to access the SNMP record as it is sent on to the logging framework. |
Hooks
SNMP finalization hook. |
|
Detailed Interface
Redefinable Options
- SNMP::ports
-
Well-known ports for SNMP.
Types
- SNMP::Info
- Type:
- Fields:
-
-
id:
conn_id&log The connection’s 5-tuple of addresses/ports (ports inherently include transport protocol information)
-
duration:
interval&log&default=0 secs&optional The amount of time between the first packet belonging to the SNMP session and the latest one seen.
-
community:
string&log&optional v1/v2c: The community string (v1/v2c) of the first SNMP packet associated with the session. This is used as part of SNMP’s (v1 and v2c) administrative/security framework. v3: The username of the first SNMP packet containing a non-zero username. See RFC 1157 (SNMP v1), RFC 1901 (SNMP v2), or RFC 2570 (SNMP v3).
-
get_requests:
count&log&default=0&optional The number of variable bindings in GetRequest/GetNextRequest PDUs seen for the session.
-
get_bulk_requests:
count&log&default=0&optional The number of variable bindings in GetBulkRequest PDUs seen for the session.
-
get_responses:
count&log&default=0&optional The number of variable bindings in GetResponse/Response PDUs seen for the session.
-
id:
Information tracked per SNMP session.
Events
- SNMP::log_snmp
- Type:
event(rec:SNMP::Info)
Event that can be handled to access the SNMP record as it is sent on to the logging framework.
Hooks
- SNMP::finalize_snmp
- Type:
SNMP finalization hook. Remaining SNMP info may get logged when it’s called.