Hi,
I have some breakthrough.
Contents of snmpd.conf
======================
rocommunity SNMP_COMMUNITY-1
rocommunity6 SNMP-COMMUNITY-61
rwcommunity SNMP_COMMUNITY-2
rwcommunity6 SNMP_COMMUNITY-62
Agent Startup
=============
./snmpd -d -f -Le -Dnetsnmp_udp6 udp:161,udp6:1161
Commands
========
IPv4:
1) snmpget -v1 -c SNMP_COMMUNITY-1 -r 0 146.208.148.62:161 sysName.0 -> OK
2) snmpget -v2c -c SNMP_COMMUNITY-1 -r 0 146.208.148.62:161 sysName.0 -> OK
3) snmpget -v1 -c SNMP_COMMUNITY-2 -r 0 146.208.148.62:161 sysName.0 -> OK
4) snmpget -v2c -c SNMP_COMMUNITY-2 -r 0 146.208.148.62:161 sysName.0 -> OK
IPv6:
5) snmpget -v1 -c SNMP_COMMUNITY-61 -r 0 'udp6:[fe80::203:baff:fe2a:a645]:1161'
sysName.0 -> NOT OK (Timeout)
6) snmpget -v2c -c SNMP_COMMUNITY-61 -r 0
'udp6:[fe80::203:baff:fe2a:a645]:1161' sysName.0 -> NOT OK (Timeout)
7) snmpget -v1 -c SNMP_COMMUNITY-62 -r 0 'udp6:[fe80::203:baff:fe2a:a645]:1161'
sysName.0 -> OK
8) snmpget -v2c -c SNMP_COMMUNITY-62 -r 0
'udp6:[fe80::203:baff:fe2a:a645]:1161' sysName.0 -> OK
Seems like rocommunity6 directive is creating problems.
Agent Console Output (Command #5 from above)
============================================
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]:-22382)
netsnmp_udp6: fmtaddr: t = 23a460, data = 2297c8, len = 32
Received 54 bytes from UDP/IPv6: [fe80::203:baff:fe2a:a645]:-22382
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 45 C1 6C FE UNITY-61....E.l.
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]:-22382
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
Am I doing some mistake in snmpd.conf file...
Sincerely,
Rahul K
-----Original Message-----
From: Thomas Anders [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 06, 2006 7:18 PM
To: [EMAIL PROTECTED]
Cc: [email protected]; [EMAIL PROTECTED]
Subject: Re: IPv6 support not enabled on Solaris 9 when building Net-SNMP_5.3.1
[EMAIL PROTECTED] wrote:
> 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
This is what needs investigation. Please fire up a debugger and find out
why the masked_address_are_equal() call in
snmplib/snmpUDPIPv6Domain.c:netsnmp_udp6_getSecName() (around line 1285
in MAIN) is failing.
+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