Hi,

I have sent an SNMP Trap with Trap No 119 (an enterprise trap type of 256 ).

I sent a verison 1 and version 2 trap.The output of the trap daemon is shown below.

I have run the snmptrapd with the foll arguments

   snmptrapd -P -F "%02.2h:%02.2j TRAP%w.%q from %A\n"

Output shown for v2 Trap
18:12 TRAP0.0 from 0.0.0.0
Output shown for v1 Trap
18:17 TRAP256.119 from my-pv

As seen above the v1 trap shows the trap type and trap no as well as the agents name 
but v2 trap has all zeros.
But the traphandler for the 119 trap is called by the snmptrapd.
SO my understanding is that the correct format is sent.

Can anyone tell me how to view the v2 trapno?


Thanks in advance,
Arun

Reply via email to