SnmpKit.SnmpSim.BehaviorConfig (snmpkit v0.6.6)

Configuration system for enhancing walk files with realistic behaviors. Provides easy-to-use behavior presets and customization options.

Summary

Functions

Apply behavior configurations to a loaded profile.

Create custom behavior configuration.

Get predefined behavior configuration sets.

Get available behavior types and their configurations.

Functions

apply_behaviors(profile, behavior_configs)

Apply behavior configurations to a loaded profile.

Examples

# Apply basic realistic behaviors
enhanced_profile = SnmpKit.SnmpSim.BehaviorConfig.apply_behaviors(profile, [
  :realistic_counters,
  :daily_patterns,
  {:custom_utilization, peak_hours: {9, 17}}
])

create_custom(behavior_specs)

Create custom behavior configuration.

Examples

config = SnmpKit.SnmpSim.BehaviorConfig.create_custom([
  {:traffic_counters, %{
    rate_multiplier: 1.5,
    daily_pattern: true,
    burst_probability: 0.2
  }},
  {:signal_quality, %{
    base_snr: 25,
    weather_impact: true,
    degradation_rate: 0.1
  }}
])

get_preset(preset_name)

Get predefined behavior configuration sets.

Examples

# Cable modem realistic simulation
behaviors = SnmpKit.SnmpSim.BehaviorConfig.get_preset(:cable_modem_realistic)

# High traffic simulation
behaviors = SnmpKit.SnmpSim.BehaviorConfig.get_preset(:high_traffic_simulation)

list_available_behaviors()

Get available behavior types and their configurations.