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

Can I set a value not to the OID that is specified in the .snmprec file line, but to another one? #86

Open
Academich opened this issue Aug 21, 2019 · 1 comment

Comments

@Academich
Copy link

Hi!

I have the following problem. I parse a line like OID1|tag: writecache|value=...,vlist=..., but I don't want this line to set value to OID1. I want to make it set value for some other OID2, which is also in the .snmprec file. In other words, I want OID1 to be write-only with its purpose to set value for OID2. Can I do it with snmpsim?

Thank you in advance!

@etingof
Copy link
Owner

etingof commented Aug 22, 2019

Such thing is not implemented in writecache module.

However, I think, you should be able to code that based on e.g.

  • sql (probably using triggers) or
  • redis (may be using embedded LUA scripting) or
  • subprocess (writing OID2 value into a disk file on OID1 SET, then reading disk file on OID2 GET)

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

No branches or pull requests

2 participants