Dear Sirs, Apologies if this is not the correct way to submit a question (my first to the list).
I am working with snmptrap - as bundled with net-snmp-5.4.1, and compiled for execution on a ppc_8xx. Wondering what the correct form is for specifying an IPv6 source (agent-address) within an snmptrap command line? The trap will be issued to the target host IP address (2005:0000:0000:0000:0148:0036:0051:0001) when I let the agent specify the agent-address with "" - for example see further below. In this case the trap is well received at the destination; but unfortunately I need to specify an IPv6 address rather than the IPv4 address it defaults to use. I have tried several forms (see below), but they all give the "unknown host" error (see example). Any suggestions would be appreciated. Thanks for your time, Paul Hayes ITT CS Network Software Dept. /apps/snmptrap -v 1 -d -DALL -c TFXXI udp6:[2005:0000:0000:0000:0148:0036:0051:0001]:162 1.3.6.1.4.1.557.1.1.1 udpipv6:[2005:0000:0000:0000:0148:0036:0051:0003] 3 0 "" 1.3.6.1.2.1.2.2.1.1 i 7 1.3.6.1.2.1.2.2.1.2 s eppp4 1.3.6.1.2.1.2.2.1.3 i 23 No log handling enabled - turning on stderr logging DEBUG, netsnmp_tdomain_init: Here to initialize what tdomains we support DEBUG, netsnmp_udp_ctor: Just registered udpDomain. DEBUG, netsnmp_tdomain_init: Ready to call netsnmp_udp6_ctor ifdef NETSNMP_TRANSPORT_UDPIPV6_DOMAIN DEBUG, netsnmp_udp6_ctor: Just registered udp6Domain. DEBUG, setup_engineID: Found engineIDNic to be (null) Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) Cannot find module ( RFC1155-SMI): At line 0 in (none) Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module (SNMP-MPD-MIB): At line 0 in (none) Cannot find module ( SNMP-TARGET-MIB): At line 0 in (none) Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module (SNMP-PROXY-MIB): At line 0 in (none) Cannot find module ( SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find module ( IP-FORWARD-MIB): At line 0 in (none) DEBUG, netsnmp_tdomain_transport_full: Got here with session->peername =udp6:[2005:0000:0000:0000:0148:0036:0051:0001]:162 DEBUG, netsnmp_udp_ctor: spec = udp6 DEBUG, netsnmp_udp_ctor: got a match, spec = udp6 DEBUG, netsnmp_udp_ctor: Have domain, found target addr2=:162 getaddrinfo: Temporary failure in name resolution unknown host: udpipv6:[2005:0000:0000:0000:0148:0036:0051:0003] Other forms tried include ... 2005::148:36:51:3 [2005::148:36:51:3] udp:6[2005::148:36:51:3] udp6:[2005::148:36:51:3] udpv6:[2005::148:36:51:3] udpipv6:[2005::148:36:51:3] udp6:2005::148:36:51:3 udp6:20050000000000000148003600510003 udpipv6:20050000000000000148003600510003 udp6:[2005:0000:0000:0000:0148:0036:0051:0003] udp6:[2005:0000:0000:0000:0148:0036:0051:0003] udp6:2005:0000:0000:0000:0148:0036:0051:0003 udpv6:[2005:0000:0000:0000:0148:0036:0051:0003] /apps/snmptrap -v 1 -d -DALL -c TFXXI udp6:[2005:0000:0000:0000:0148:0036:0051:0001]:162 1.3.6.1.4.1.557.1.1.1 "" 3 0 "" 1.3.6.1.2.1.2.2.1.1 i 7 1.3.6.1.2.1.2.2.1.2 s eppp4 1.3.6.1.2.1.2.2.1.3 i 23 No log handling enabled - turning on stderr logging DEBUG, netsnmp_tdomain_init: Here to initialize what tdomains we support DEBUG, netsnmp_udp_ctor: Just registered udpDomain. DEBUG, netsnmp_tdomain_init: Ready to call netsnmp_udp6_ctor ifdef NETSNMP_TRANSPORT_UDPIPV6_DOMAIN DEBUG, netsnmp_udp6_ctor: Just registered udp6Domain. DEBUG, setup_engineID: Found engineIDNic to be (null) Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) Cannot find module ( RFC1155-SMI): At line 0 in (none) Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module (SNMP-MPD-MIB): At line 0 in (none) Cannot find module ( SNMP-TARGET-MIB): At line 0 in (none) Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module (SNMP-PROXY-MIB): At line 0 in (none) Cannot find module ( SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find module ( IP-FORWARD-MIB): At line 0 in (none) DEBUG, netsnmp_tdomain_transport_full: Got here with session->peername =udp6:[2005:0000:0000:0000:0148:0036:0051:0001]:162 DEBUG, netsnmp_udp_ctor: spec = udp6 DEBUG, netsnmp_udp_ctor: got a match, spec = udp6 DEBUG, netsnmp_udp_ctor: Have domain, found target addr2=:162 getaddrinfo: Temporary failure in name resolution DEBUG, _sess_async_send: Build the message to send. Sending 97 bytes to UDP/IPv6: [2005::148:36:51:1]:162 0000: 30 5F 02 01 00 04 05 54 46 58 58 49 A4 53 06 0A 0_.....TFXXI.S.. 0016: 2B 06 01 04 01 84 2D 01 01 01 40 04 94 24 33 02 +.....-...@..$3. 0032: 02 01 03 02 01 00 43 03 05 23 D7 30 34 30 0E 06 ......C..#.040.. 0048: 09 2B 06 01 02 01 02 02 01 01 02 01 07 30 12 06 .+...........0.. 0064: 09 2B 06 01 02 01 02 02 01 02 04 05 65 70 70 70 .+..........eppp 0080: 34 30 0E 06 09 2B 06 01 02 01 02 02 01 03 02 01 40...+.......... 0096: 17 . DEBUG, _sess_async_send: Ready to send the message with call to transport->f_send(). DEBUG, _sess_async_send: transport is not NULL DEBUG, _sess_async_send: packet is not NULL DEBUG, _sess_async_send: length=97 DEBUG, _sess_async_send: &(pdu->transport_data) is not NULL DEBUG, _sess_async_send: pdu->transport_data_length = 0 DEBUG - netsnmp_udp6_send: Arrived with size = 97, length = 0 DEBUG - netsnmp_udp6_send: linux and IPV6_PKTINFO are both defined. DEBUG - netsnmp_udp6_send: opaque is not NULL DEBUG - netsnmp_udp6_send: *olength (0), sizeof netsnmp_upd6_addr_pair (48) DEBUG - netsnmp_udp6_send: t is not NULL DEBUG - netsnmp_udp6_send: t->data is not NULL DEBUG - netsnmp_udp6_send: t->data_length (28), sizeof(struct sockaddr_in6) (28) DEBUG - netsnmp_udp6_send: Back from netsnmp_udp6_fmtaddr() and ready to send 97 bytes from 0x1001848f to UDP/IPv6: [2005::148:36:51:1]:162 on fd 4 DEBUG - netsnmp_udp6_send: Ready to return with rc(97) and errno(0). DEBUG, _sess_async_send: back from transport->f_send(), result=97 This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Corporation. The recipient should check this e-mail and any attachments for the presence of viruses. ITT accepts no liability for any damage caused by any virus transmitted by this e-mail. ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders