I used the './ snmptrapd –d –f –Lo' in CLI,but I got something like this:
(at last the snmptrapd routine auto termination itself )
Received 64 bytes from TCP: [0.0.0.0]:705
0000: 01 12 00 00 0E 00 00 00 00 00 00 00 69 A9 28 0F ............i.(.
0016: 2C 00 00 00 C8 39 01 00 00 00 00 00 05 00 00 00 ,....9..........
0032: 07 06 00 00 03 00 00 00 0F 00 00 00 01 00 00 00 ................
0048: 02 00 00 00 02 00 00 00 01 00 00 00 0C 00 00 00 ................
Sending 72 bytes to TCP: [0.0.0.0]:705
0000: 01 03 08 00 0E 00 00 00 00 00 00 00 6A A9 28 0F ............j.(.
0016: 34 00 00 00 09 00 00 00 73 6E 6D 70 74 72 61 70 4.......snmptrap
0032: 64 00 00 00 FF 7F 00 00 07 06 00 00 03 00 00 00 d...............
0048: 0F 00 00 00 01 00 00 00 02 00 00 00 02 00 00 00 ................
0064: 01 00 00 00 0D 00 00 00 ........
Received 64 bytes from TCP: [0.0.0.0]:705
0000: 01 12 00 00 0E 00 00 00 00 00 00 00 6A A9 28 0F ............j.(.
0016: 2C 00 00 00 C8 39 01 00 00 00 00 00 05 00 00 00 ,....9..........
0032: 07 06 00 00 03 00 00 00 0F 00 00 00 01 00 00 00 ................
0048: 02 00 00 00 02 00 00 00 01 00 00 00 0D 00 00 00 ................
NET-SNMP version 5.4.2.1
Received 64 bytes from TCP: [0.0.0.0]:705
0000: 01 12 00 00 0E 00 00 00 00 00 00 00 63 A9 28 0F ............c.(.
0016: 2C 00 00 00 C8 39 01 00 00 00 00 00 05 00 00 00 ,....9..........
0032: 07 06 00 00 03 00 00 00 0F 00 00 00 01 00 00 00 ................
0048: 02 00 00 00 02 00 00 00 01 00 00 00 06 00 00 00 ................
Sending 72 bytes to TCP: [0.0.0.0]:705
0000: 01 03 08 00 0E 00 00 00 00 00 00 00 64 A9 28 0F ............d.(.
0016: 34 00 00 00 09 00 00 00 73 6E 6D 70 74 72 61 70 4.......snmptrap
0032: 64 00 00 00 FF 7F 00 00 07 06 00 00 03 00 00 00 d...............
0048: 0F 00 00 00 01 00 00 00 02 00 00 00 02 00 00 00 ................
0064: 01 00 00 00 07 00 00 00 ........
Received 64 bytes from TCP: [0.0.0.0]:705
0000: 01 12 00 00 0E 00 00 00 00 00 00 00 64 A9 28 0F ............d.(.
0016: 2C 00 00 00 C8 39 01 00 00 00 00 00 05 00 00 00 ,....9..........
0032: 07 06 00 00 03 00 00 00 0F 00 00 00 01 00 00 00 ................
0048: 02 00 00 00 02 00 00 00 01 00 00 00 07 00 00 00 ................
Sending 72 bytes to TCP: [0.0.0.0]:705
0000: 01 03 08 00 0E 00 00 00 00 00 00 00 65 A9 28 0F ............e.(.
0016: 34 00 00 00 09 00 00 00 73 6E 6D 70 74 72 61 70 4.......snmptrap
0032: 64 00 00 00 FF 7F 00 00 07 06 00 00 03 00 00 00 d...............
0048: 0F 00 00 00 01 00 00 00 02 00 00 00 02 00 00 00 ................
0064: 01 00 00 00 08 00 00 00 ........
Received 64 bytes from TCP: [0.0.0.0]:705
0000: 01 12 00 00 0E 00 00 00 00 00 00 00 65 A9 28 0F ............e.(.
0016: 2C 00 00 00 C8 39 01 00 00 00 00 00 05 00 00 00 ,....9..........
0032: 07 06 00 00 03 00 00 00 0F 00 00 00 01 00 00 00 ................
0048: 02 00 00 00 02 00 00 00 01 00 00 00 08 00 00 00 ................
Sending 72 bytes to TCP: [0.0.0.0]:705
0000: 01 03 08 00 0E 00 00 00 00 00 00 00 66 A9 28 0F ............f.(.
0016: 34 00 00 00 09 00 00 00 73 6E 6D 70 74 72 61 70 4.......snmptrap
my snmptrapd.conf like this:
authcommunity execute,log,net public
traphandle .1.3.6.1.4.1.30901.2090.7000 /home/net-snmp/traphandle.pl
traphandle .1.3.6.1.4.1.2021.251.1 /home/net-snmp/traphandle.pl
and part of my snmpd.conf like this:
###########################################
# From: http://www.net-snmp.org/wiki/index.php/FAQ:Agent_17
# send v1 traps
# trapsink 127.0.0.1:162 public
# trapsink 172.19.0.0/16:162 public
# also send v2 traps and informs
trap2sink 127.0.0.1:162 public
trap2sink 172.19.50.74:162 public
trap2sink 172.19.50.12:162 public
#send traps on authentication failures
#send traps on authentication failures
authtrapenable 1
# informsink 127.0.0.1:162
##SNMPv3 destinations can be configured using the directive
##'trapsess'.See the 'snmpd.conf(5)'man page for details.
## Added 2010.01.06 for Trap test prototype
#############################################
Pls help me!
Alex
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users