You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see there is no response and hence the timeout error. This is very random. Sometimes it comes in first couple of seconds sometimes there is no error. and sometime it comes midway.
The text was updated successfully, but these errors were encountered:
Well, it would not surprise me if some SNMP packets get dropped by the network (it's UDP) so that without retrying your SNMP request has no chances to succeed.
The script you pasted does not seem to have the retrying functionality. You could probably add another .sendMessage() call into your cbTimeFun to do some retries before timing out hard. That would probably require you to maintain the state of the pending requests (including the request message) so that you could re-send it on timeout.
Alternatively, you could just use the high-level pysnmp API which has all the retrying mechanisms in place.
I am using below example for pysnmp. Sometimes it works well but sometimes it stops midway and gives timeout error.
I also debugged the code. I am copying some of it below -
As you can see there is no response and hence the timeout error. This is very random. Sometimes it comes in first couple of seconds sometimes there is no error. and sometime it comes midway.
The text was updated successfully, but these errors were encountered: