Oups, here it is.
C:\NetSNMP\usr\bin>snmptrap -Ddump -v 2c -c public localhost:199 0
NOTIFICATION-
TEST-MIB::demo-notif SNMPv2-MIB::sysLocation.0 s "just here"
No log handling enabled - turning on stderr logging
registered debug token dump, 1
Cannot find module (NOTIFICATION-TEST-MIB): At line 1 in (none)
dumph_send: TRAP2
dumph_send: VarBind
dumph_send: Value
dumpx_send: 04 09 6A 75 73 74 20 68 65 72 65
dumpv_send: String: just here
dumph_send: Name
dumpx_send: 06 08 2B 06 01 02 01 01 06 00
dumpv_send: ObjID: SNMPv2-MIB::sysLocation.0
dumph_send: VarBind
dumph_send: Value
dumpx_send: 43 01 00
dumpv_send: UInteger: 0 (0x00)
dumph_send: Name
dumpx_send: 06 08 2B 06 01 02 01 01 03 00
dumpv_send: ObjID: DISMAN-EVENT-MIB::sysUpTimeInstance
dumph_send: error index
dumpx_send: 02 01 00
dumpv_send: Integer: 0 (0x00)
dumph_send: error status
dumpx_send: 02 01 00
dumpv_send: Integer: 0 (0x00)
dumph_send: request_id
dumpx_send: 02 02 06 8A
dumpv_send: Integer: 1674 (0x68A)
dumph_send: Community String
dumpx_send: 04 06 70 75 62 6C 69 63
dumpv_send: String: public
dumph_send: SNMP Version Number
dumpx_send: 02 01 01
dumpv_send: Integer: 1 (0x01)
dumph_send: SNMPv2c Message
C:\NetSNMP\usr\bin>
2010/8/2 Dave Shield <[email protected]>
> On 2 August 2010 10:12, YAHYAOUI Mohammed <[email protected]> wrote:
> > same error.
> >
> > C:\NetSNMP\usr\bin>snmptrapd -Ddump
> > -c C:\NetSNMP\usr\etc\snmp\snmptrapd.conf
> > -M c:/usr/share/snmp/mibs udp:127.0.0.1:199
>
> Please Read My Message!
>
> I asked for the output of the 'snmptrap' command,
> *NOT* the output of 'snmptrapd'
>
> I'm trying to check what's being sent,
> rather than what's being received.
>
> Dave
>
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders