Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to program SNMP response value #7

Closed
13 of 15 tasks
delimitry opened this issue Nov 5, 2018 · 2 comments
Closed
13 of 15 tasks

Add possibility to program SNMP response value #7

delimitry opened this issue Nov 5, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@delimitry
Copy link
Owner

delimitry commented Nov 5, 2018

Support config file for programming the responses.
May be, it is required to support OID wildcards 🤔
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.

  • BOOLEAN
  • INTEGER
  • BIT STRING
  • OCTET STRING
  • NULL
  • OBJECT IDENTIFIER
  • REAL
  • DOUBLE
  • IP_ADDRESS
  • TIMETICKS
  • GAUGE32
  • COUNTER32
  • COUNTER64
  • ENUMERATED
  • CHARACTER STRING
@delimitry delimitry self-assigned this Nov 5, 2018
@delimitry delimitry added the enhancement New feature or request label Nov 5, 2018
@delimitry
Copy link
Owner Author

Add new ASN.1 types in PR #8.

@delimitry
Copy link
Owner Author

delimitry commented Feb 24, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant