SnmpKit.TestSupport (snmpkit v0.6.6)
SNMP Simulator for Elixir - Production-ready SNMP device simulation.
Provides high-performance SNMP device simulation supporting walk files, realistic behaviors, and large-scale testing scenarios.
Summary
Functions
Start a single SNMP device with the given profile.
Start a population of devices with mixed types and configurations.
Functions
Start a single SNMP device with the given profile.
Examples
# Start device with walk file profile
profile = SnmpKit.SnmpSim.ProfileLoader.load_profile(
:cable_modem,
{:walk_file, "priv/walks/cable_modem.walk"}
)
{:ok, device} = SnmpSim.start_device(profile, port: 9001)
Start a population of devices with mixed types and configurations.
Examples
device_configs = [
{:cable_modem, {:walk_file, "priv/walks/cm.walk"}, count: 1000},
{:switch, {:oid_walk, "priv/walks/switch.walk"}, count: 50}
]
{:ok, devices} = SnmpSim.start_device_population(
device_configs,
port_range: 30_000..39_999
)