Noam
Noam

Reputation: 1804

Monitor snmp traps sent from python

I use pysnmp to send snmp traps from my python program to a destination windows machine.

I want to test that traps are really sent. How can I test it easily? Is there some sort of a free snmp manager software I should install on the destination windows machine?

How is the setup process? I'm guessing I should, at some point, load my MIB file in the snmp manager software. Are there other things to consider?

I tried to use "PowerSNMP" but couldn't figure it out.

Upvotes: 0

Views: 788

Answers (1)

Ilya Etingof
Ilya Etingof

Reputation: 5555

You can probably try Net-SNMP's snmptrapd or script like this or just snoop with Wireshark to see what's going out to the network.

Alternatively, you can enable pysnmp debugging to see what's going inside your script and what it eventually sends to the network.

from pysnmp import debug

debug.setLogger(debug.Debug('all'))

Upvotes: 1

Related Questions