etingof / snmpsim

SNMP Simulator

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No context in SNMP V3?

BURNI80 opened this issue Ā· comments

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

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.

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

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?

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.