Hi,

Contents of snmpd.conf file
===========================
rocommunity     SNMP_COMMUNITY-1
rwcommunity     SNMP_COMMUNITY-2
rocommunity6    SNMP_COMMUNITY-61
rwcommunity6    SNMP_COMMUNITY-62

Starting of snmpd
-----------------
./snmpd -d -f -Le -Dnetsnmp_udp6 udp:161,udp6:1161

Output of netstat -a -P udp
===========================
UDP: IPv4
   Local Address         Remote Address     State
-------------------- -------------------- -------
...
*.snmp                                  Idle
*.1161                                  Idle
...
UDP: IPv6
   Local Address         Remote Address     State
-------------------- -------------------- -------
*.1161                                     Idle

Command Execution
=================
IPv6:
% snmpget -v1 -c SNMP_COMMUNITY-61 'udp6:[fe80::203:baff:fe2a:a645]:1161' 
sysName.0
Timeout: No Response from udp6:[fe80::203:baff:fe2a:a645]:1161

Output On Agent Console
=======================
netsnmp_udp6: fmtaddr: t = 0, data = 2297c8, len = 32
netsnmp_udp6: recvfrom fd 6 got 54 bytes (from UDP/IPv6: 
[fe80::203:baff:fe2a:a645]:-22606)
netsnmp_udp6: fmtaddr: t = 23a460, data = 2297c8, len = 32

Received 54 bytes from UDP/IPv6: [fe80::203:baff:fe2a:a645]:-22606
0000: 30 34 02 01  00 04 11 53  4E 4D 50 5F  43 4F 4D 4D    04.....SNMP_COMM
0016: 55 4E 49 54  59 2D 36 31  A0 1C 02 04  49 D9 6C 6E    UNITY-61....I.ln
0032: 02 01 00 02  01 00 30 0E  30 0C 06 08  2B 06 01 02    ......0.0...+...
0048: 01 01 05 00  05 00                                    ......

netsnmp_udp6: fmtaddr: t = 23a460, data = 2297c8, len = 32
Received SNMP packet(s) from UDP/IPv6: [fe80::203:baff:fe2a:a645]:-22606
  GET message
    -- SNMPv2-MIB::sysName.0
netsnmp_udp6_getSecName: resolve <"SNMP_COMMUNITY-61", fe80::203:baff:fe2a:a645>
netsnmp_udp6_getSecName: compare <"SNMP-COMMUNITY-61", 
0x/0x000000000000000000000000ffbfed00>... nope
netsnmp_udp6_getSecName: compare <"SNMP_COMMUNITY-62", 
0x/0x000000000000000000000000ffbfed00>... nope

(repeats for retries...)


Sincerely,
Rahul K

-----Original Message-----
From: Thomas Anders [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 06, 2006 2:03 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [email protected]; [EMAIL PROTECTED]
Subject: Re: IPv6 support not enabled on Solaris 9 when building Net-SNMP_5.3.1

[EMAIL PROTECTED] wrote:
> ./snmpd -d -p udp:161,udp6:1161

Why "-p"? This option is meant to be used for

  -p FILE               store process id in FILE

which means that "udp:161,udp6:1161" would be treated as a filename
rather than a transport identifier. Please try again with

./snmpd -d -f -Le -Dnetsnmp_udp6 udp:161,udp6:1161

> UDP: IPv6
>    Local Address         Remote Address     State
> -------------------- -------------------- ------- ...
> (*.snmp NOT PRESENT)

In the netstat output, look for "1161" rather than *.snmp for IPv6
because you've started it on a non-default port!

If it still fails, post the output of the agent. If it isn't helpful
enough, run snmpd under gdb and step through snmplib/snmpUDPIPv6Domain.c
to find out where it fails.


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to