SnmpKit.SnmpSim.MIB.BehaviorAnalyzer (snmpkit v0.6.6)

Automatically determine realistic behaviors from MIB object definitions. Analyze object names, descriptions, and types to infer simulation patterns.

Summary

Functions

Analyze a complete MIB and generate behavior patterns for all objects.

Analyze a MIB object and determine its simulation behavior.

Create behavior specifications from walk file data enhanced with intelligent analysis.

Types

description_pattern()

@type description_pattern() ::
  :rate_based
  | :cumulative
  | :instantaneous
  | :inbound
  | :outbound
  | :quality_metric
  | :threshold_based
  | :time_based
  | :timestamp_based

Functions

analyze_mib_behaviors(mib_objects)

Analyze a complete MIB and generate behavior patterns for all objects.

Examples

{:ok, behaviors} = SnmpKit.SnmpSim.MIB.BehaviorAnalyzer.analyze_mib_behaviors(compiled_mib)

analyze_object_behavior(oid_info)

Analyze a MIB object and determine its simulation behavior.

Examples

behavior = SnmpKit.SnmpSim.MIB.BehaviorAnalyzer.analyze_object_behavior(%{
  name: "ifInOctets",
  oid: "1.3.6.1.2.1.2.2.1.10",
  type: :counter32,
  description: "The total number of octets received on the interface"
})

# Returns: {:traffic_counter, %{rate_range: {1000, 125_000_000}, increment_pattern: :bursty}}

enhance_walk_file_behaviors(oid_map)

Create behavior specifications from walk file data enhanced with intelligent analysis.