delimitry / snmp-server

SNMP server in pure Python
MIT License
43 stars 15 forks source link

Add possibility to program SNMP response value #7

Closed delimitry closed 5 years ago

delimitry commented 5 years ago

Support config file for programming the responses. May be, it is required to support OID wildcards :thinking: For example:

{
    "*": lambda oid: str(oid),  # to return OID string value as a response to every request
}

Or:

{
   "OID1": "string",
   "OID2": 12345,
   "OID3": Timeticks(123456000),
   "OID3": random.randint(1, 10),
}

This requires ability to write values for ASN.1 types.

delimitry commented 5 years ago

Add new ASN.1 types in PR #8.

delimitry commented 5 years ago

Add config file support & new ASN.1BIT STRING type in PR #9