Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to send an SNMP trap from Windows XP using snmptrap.exe from the Net-SNMP package net-snmp-5.4.2-1.win32. Snmptrap is in the path. This command-line works fine on two boxes, but not from my XP workstation:

C:\>snmptrap -v1 -cpublic [manager IP] 6 13 0 s "IGNORE ME"

On the systems where this works, the trap is sent almost immediately and control returns to the prompt within 1-2 seconds. On my XP workstation, I see a long pause (5-10 sec), and no trap is sent. I'm watching the wire with Wireshark and no packets are sent. I can ping the SNMP manager system and see that in Wireshark. I can also netcat to port 162 and send across a dummy packet, and that shows up in Wireshark, so I think I've ruled out causes external to snmptrap. I have tried other similar commands to the above using different OIDs and varbinds, all have the same result (on this system).

share|improve this question
up vote 1 down vote accepted

Ahem. %path% fail! Windows comes with a binary called snmptrap...Who knew?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.