etingof / snmpsim

SNMP Simulator

Home Page:http://snmplabs.com/snmpsim/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add configurable .snmprec matching rules

etingof opened this issue · comments

As of now, SNMP simulator command responder picks simulation data file by rigidly combining some properties of incoming SNMP request and matching them altogether against .snmprec files paths.

This issue is to make this combination configurable so that the user could influence the above mentioned logic. Perhaps the user could specify the paths to .snmprec files in terms of expandable templates that refer to various SNMP message properties e.g.:

${context-engine-id}/${context-name}/${transport-id}/${source-address}.snmprec
${context-engine-id}/${context-name}/${transport-id}.snmprec
${context-engine-id}/${context-name}.snmprec
${context-engine-id}.snmprec