Thanks Dave
First ,I don't have any managment software on my windows platform
I just have sniffer to catch package(any package include TCP UDP ....)
I set it to catch snmp and snmptrap
Second, when i use trapsink 192.168.1.57/trap2sink 192.168.1.57 and set
1.3.6.1.4.1.2021.254.7.0 to 1 .everything is OK,that is ,I can catch package
with sniffer both snmptrayv1 and v2 on my windows platform
Third , but when i use the same setting in the snmpd.conf ans set
1.3.6.1.4.1.2021.254.8.0 to 1 . I can't catch any thing :(,but the output is example: write_exampletrap2 entered: action=0
example: write_exampletrap2 entered: action=1
example: write_exampletrap2 entered: action=2
example: write_exampletrap2 entered: action=3
example: write_exampletrap2 sending the v2 trap
example: write_exampletrap2 v2 trap sent
faint!
Sugar
From: Dave Shield <[EMAIL PROTECTED]>
To: 李 曙歌 <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: send_v2trap does not work Date: Wed, 25 Aug 2004 11:50:10 +0100
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ]
> example: write_exampletrap2 entered: action=0 > example: write_exampletrap2 entered: action=1 > example: write_exampletrap2 entered: action=2 > example: write_exampletrap2 entered: action=3 > example: write_exampletrap2 sending the v2 trap > example: write_exampletrap2 v2 trap sent
OK - so the agent seems to be calling the module OK...
> I can get it use snmptrapd.....
so the trap *is* being sent. That's useful to know.
> but I can't get trap from windows platform (using sniffer)
Which would tend to point the finger at the windows side. What software are you using to catch the trap? Does it support SNMPv2?
> I have added trap2sink 192.168.1.57(my IP):(
What if you use "trapsink 192.168.1.57" instead? That will convert the original v2 trap into an equivalent v1 trap, and send that instead. What do you see on the windows side?
Also try using the other "write_exampletrap" MIB object - both with "trapsink" and "trap2sink". What do you see there?
Dave
------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
