etingof / pysnmp

Python SNMP library
http://snmplabs.com/pysnmp/
BSD 2-Clause "Simplified" License
578 stars 200 forks source link

[Question] Asyncio trap receiver example? #393

Open lstoppa opened 3 years ago

lstoppa commented 3 years ago

Hello, I hope this is the right place to ask questions. I have been trying to find any existing example where we can process TRAPs using the new asyncio module. I can see full examples for GET operations, GET_BULK, but nothing for traps. I am in particular referring to this: https://github.com/etingof/pysnmp/blob/master/examples/v1arch/asyncore/manager/ntfrcv/listen-on-ipv4-and-ipv6-interfaces.py

Is there any asyncio version available for it?

Thanks, Luca

lextm commented 8 months ago

We just converted all samples to asyncio. The one you asked for is,

https://github.com/lextudio/pysnmp/blob/v5.0.35/examples/v1arch/asyncio/manager/ntfrcv/listen-on-ipv4-and-ipv6-interfaces.py