snmpsim icon indicating copy to clipboard operation
snmpsim copied to clipboard

SNMPv1 error variation always return genError

Open Benik3 opened this issue 5 years ago • 2 comments

Hello.

I again played with SNMPsim and I found, that when I try to simulate error on SNMPv1, I got always error GenError(5). And what is more interesting with 2:error|status=genError it doesn't report any error but also any values. On SNMPv2 it works OK.

I attach wireshark and .snmprec which I tried. I'm testing on windows 10 with actual snmpsim-master copy and pysnmp 4.4.12

SNMPv1_err.zip

EDIT: Problem with no error for missing OID is fixed in pysnmp 4.4.12 (I tested previously on 4.4.11) But still it's reported as GenError

Benik3 avatar Oct 22 '19 12:10 Benik3

This seems to be a bug in pysnmp... Could you please try snmpsim with this pysnmp commit?

etingof avatar Nov 04 '19 17:11 etingof

Hi. It looks like with this pysnmp it still report only GenError (even with errors NoSuchName, badValue, readOnly) but now at least the true GenError is reported so it doesn't stay stuck. Error tooBig works fine.

Benik3 avatar Nov 05 '19 08:11 Benik3