Which is the more resource-friendly way to collect SNMP traps from a Cisco router via python:
I am looking for a way to run the script so that it uses the least resources as possible. Not many traps will occur so the communication will be low mostly, but as soon as one does occur, the PC should know immediately.
Approach 1 is better from most perspectives.
net-snmp
suite which allows you to just configure the daemon (ie you don't have to do any programming if you want to save some time). Approach 2 has a couple of problems:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.