RE: IPv6 support not enabled on Solaris 9 when building Net-SNMP_5.3.1

This is a discussion on RE: IPv6 support not enabled on Solaris 9 when building Net-SNMP_5.3.1 within the SNMP Coders forums, part of the Networking and Network Related category; Hi, I have some breakthrough. Contents of snmpd.conf ====================== rocommunity SNMP_COMMUNITY-1 rocommunity6 SNMP-COMMUNITY-61 rwcommunity SNMP_COMMUNITY-2 rwcommunity6 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-06-2006
 
Posts: n/a
Default RE: IPv6 support not enabled on Solaris 9 when building Net-SNMP_5.3.1

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:thomas.anders@blue-cable.de]
Sent: Wednesday, September 06, 2006 7:18 PM
To: rahul_k_sharma@agilent.com
Cc: net-snmp-coders@lists.sourceforge.net; sunil_ak@agilent.com
Subject: Re: IPv6 support not enabled on Solaris 9 when building Net-SNMP_5.3.1

rahul_k_sharma@agilent.com 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=...057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:50 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0