SNMP Agent Simulator Tool
Core simulator
Multi-agent SNMPv3 simulator running each agent in its own thread with clean start/stop and teardown.
Auth/Priv support: MD5/SHA/SHA2 family for auth; DES/3DES/AES (128/192/256) for privacy; enforces auth required for priv.
MIB from CSV: Per-device-type CSVs define OIDs, types, and behaviors (static/dynamic/settable). Per-IP CSVs are generated automatically.
SET persistence: When a SET succeeds, the new value is written back to the per-IP CSV so it survives restarts.
Dynamic and static values: Numeric/text randomization for value_type=dynamic; fixed values for static.
Protocol handling & diagnostics
GET/GETNEXT/BULK/SET responders via pysnmp.
USM Report classification with human-readable reasons (unknownUserName, notInTimeWindows, wrongDigests, etc.).
Invalid OID detection: Logs exact OIDs requested that aren’t exported or return NoSuch*.
Request/response observers: Detailed per-PDU logging including client IP, PDU type, error indexes, and varbinds.
Ready watcher: Background wait so “Agent Ready” is logged once agents have initialized.
File & data layout
Device types: device_types/<device_type>.csv
Per-IP data: device_data/<ip_underscored>.csv, auto-provisioned from device type definitions.
Agents config: agents.csv (ip, user, port, auth/priv details, device_type).
Graphical User Interface
Top-bar Light/Dark mode toggle (global palette switch, Fusion style for consistent look).
System tab
Start/Stop simulator, clear log.
Live log viewer with color cues (green info milestones, orange warnings, red errors).
Status indicator (Running/Stopped).
Agents tab
One-click Refresh of agent list from agents.csv.
Live UDP listen probe per agent/IP/port:
“LISTENING” (green) if the port is in use by the simulator,
“NOT LISTENING” / specific socket errors (coloured).
Auto-sizing table columns.
Logging
Unified logging to console, CSV file (log.csv), and the Qt log pane.
CSV format: timestamp, level, message for easy parsing.
Highlights important milestones (Device Data Ready, Agent Ready) and error conditions (INVALID_OID, INVALID_IP, invalid creds).
SNMP Agent Simulator Listening
SNMP Agent Simulator Start Processes
SNMP Agent Simulator Responding to SNMP Requests