Okay, I found the answer to my own question:

 

I needed to specify the listening addresses as below:

 

*         snmptrapd udp:162,udp6:162 -f -Le & 

 

Then I was able to catch IPv6 traps as well as IPv4's:

 

2007-11-20 17:13:31 UDP/IPv6: [::1]:33350 [UDP/IPv6: [::1]:33350]:

RFC1213-MIB::sysUpTime.0 = Timeticks: (14121) 0:02:21.21
SNMPv2-MIB::snmpTrapOID.0 = OID: NET-SNMP-AGENT-MIB::nsNotifyRestart

 

2007-11-20 17:13:31 127.0.0.1 [UDP: [127.0.0.1]:33347]:

RFC1213-MIB::sysUpTime.0 = Timeticks: (14121) 0:02:21.21
SNMPv2-MIB::snmpTrapOID.0 = OID: NET-SNMP-AGENT-MIB::nsNotifyRestart

 

The trap2sink in my snmpd.conf are:

 

trap2sink  localhost  notify       162

trap2sink   udp6:[::1]:162       notify 162

 

Emi

 

-----Original Message-----
From: Emi Yanagi 
Sent: Thursday, November 15, 2007 4:33 PM
To: [email protected]
Subject: trap2sink IPv6 support

 

 

Dear net-snmp-coders,

 

I tried the following syntax but neither worked for me.

 

trap2sink   udp6:[fe80::214:22ff:fe7b:fca2]:162

trap2sink   udp6:'[fe80::214:22ff:fe7b:fca2]':162

 

trap2sink with IPv4 address works just fine.

 

How to specify trap2sink with IPv6? 

 

Thanks for your support.

Emi

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to