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

No context in SNMP V3? #174

Open
BURNI80 opened this issue Oct 19, 2023 · 4 comments
Open

No context in SNMP V3? #174

BURNI80 opened this issue Oct 19, 2023 · 4 comments

Comments

@BURNI80
Copy link

BURNI80 commented Oct 19, 2023

Is there a way to make SNMP V3 requests without specifying a context?

My simulations have multiple .snmprec files, it is compulsory to name those files with a specific name? Any argument on the launching command?
I am a bit lost 🫠

I saw and old closed issue that talks about that but y dont understand to much

@lextm
Copy link

lextm commented Oct 19, 2023

If you have multiple .snmprec files and load them in a single emulation instance of snmpsim, then context names matter and distinguish objects of an simulate agent from another. Therefore, to consume those objects in SNMP requests you also need to specify context names explicitly.

The old threads #88 and #89 are about something related but not exact the same as yours.

@BURNI80
Copy link
Author

BURNI80 commented Oct 19, 2023

Other way is joining al snmprec files in one an calling that file self.snmprec right? so i dont need to specify a context

@lextm
Copy link

lextm commented Oct 20, 2023

That really depends on what exactly you wanted to simulate. For a single SNMP agent, maybe it will work, but definitely not multiple and how do you plan to handle duplicate items from multiple .snmprec files?

@BURNI80
Copy link
Author

BURNI80 commented Oct 20, 2023

What I am doing right now is a service that launches several different simulations, each simulation generates a folder with its .snmprec files, for each simulation I could condense all its .snmprec files into one and start the simulation with that one.

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