-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asyncio code not returning multiple results for nextCmd #231
Comments
It seems that your async script misses a loop over |
im not quite sure where I'm missing the loop? ive tried what I thought was right below but it prints the first record many times instead of the next record
|
Would anyone be able to assist me with this? is it a bug or an error in my code? Thanks |
This is still not quite clear what's wrong in your situation. Look, here is practically your script which works alright against public SNMP agent (you can just run this script locally):
May be it has something to do with the rest of the code? Or with the agent you are querying? I do not see anything suspicious in the function you've pasted. WDYT? |
ok, I copy and pasted your code exactly and then added my variables into create the below:
and its called with this
however I think I may have some error in there still, as there are 600ish routes in my table, however the script went crazy and was printing out "Routes Found 4483" before I quit it manually. perhaps the while loop isn't breaking? are you able to advise where my issue may be? Thanks |
Ah, now the thing is that async API does not implement the
|
Thankyou for your help with this one, all is now working as desired |
Good Evening,
I am migrating a script to be asynchronous and am using the asyncio library with pysnmp and what looks to be almost identical code between the synchronous and non synchronous script it pulling a lot of data for the sync code but what seems like only 1 entry for the async code.
using pysnmp==4.4.8
async walk:
sync walk:
they both get passed the same info OIDs and creds
Sync results:
async results:
which looks like the nextCmd isn't working possibly?
The text was updated successfully, but these errors were encountered: