On 04/13/12 02:43, Nurhuda Ismail wrote: > Microsoft Windows XP [Version 5.1.2600] > (C) Copyright 1985-2001 Microsoft Corp. > > C:\Documents and Settings\Administrator>snmptrap -v 2c -c public host "" > NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification > \netSnmpExampleHeartbeatRate i 123456 > No log handling enabled - using stderr logging > snmptrap: > > C:\Documents and Settings\Administrator>
The above command should work fine for sending a trap. If you want to find out whether or not a trap has been sent, you can add the "-d" command line option. An example: $ snmptrap -Mmibs -d -v 2c -c public localhost "" \ NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification \ netSnmpExampleHeartbeatRate i 123456 Sending 93 bytes to UDP: [127.0.0.1]:162->[0.0.0.0]:0 0000: 30 5B 02 01 01 04 06 70 75 62 6C 69 63 A7 4E 02 0[.....public.N. 0016: 04 4B 42 10 52 02 01 00 02 01 00 30 40 30 0F 06 .KB.R......0@0.. 0032: 08 2B 06 01 02 01 01 03 00 43 03 03 A5 A1 30 19 .+.......C....0. 0048: 06 0A 2B 06 01 06 03 01 01 04 01 00 06 0B 2B 06 ..+...........+. 0064: 01 04 01 BF 08 02 03 00 01 30 12 06 0B 2B 06 01 .........0...+.. 0080: 04 01 BF 08 02 03 02 01 02 03 01 E2 40 ............@ Bart. ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users