etingof / snmpsim

SNMP Simulator
http://snmplabs.com/snmpsim/
BSD 2-Clause "Simplified" License
376 stars 119 forks source link

No context in SNMP V3? #174

Open BURNI80 opened 8 months ago

BURNI80 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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.