snmpsim icon indicating copy to clipboard operation
snmpsim copied to clipboard

No context in SNMP V3?

Open BURNI80 opened this issue 2 years ago • 4 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

BURNI80 avatar Oct 19 '23 12:10 BURNI80

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.

lextm avatar Oct 19 '23 15:10 lextm

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

BURNI80 avatar Oct 19 '23 16:10 BURNI80

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?

lextm avatar Oct 20 '23 01:10 lextm

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.

BURNI80 avatar Oct 20 '23 07:10 BURNI80