Re: IPV6 support

Reza Salehi <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Brian,



I ran snmpd in debug mode and you can see couple of lines of the output when I am trying to do :  

[root@rsejvtXX]# snmpget -v 2c -c ktcpublic 127.0.0.1 IPV6-MIB::ipv6IfStatsTable

IPV6-MIB::ipv6IfStatsTable = No Such Object available on this agent at this OID



out put of snmpd::





dumpv_recv:      Flags: 0x0

trace: agentx_parse_header(): mibgroup/agentx/protocol.c, 1504:

dumph_recv:   Reserved Byte

dumpx_recv:    00

dumpv_recv:      Reserved:      0x0

trace: agentx_parse_header(): mibgroup/agentx/protocol.c, 1510:

dumph_recv:   Session ID

dumpx_recv:    06 00 00 00

dumpv_recv:      Integer:       6 (0x06)

trace: agentx_parse_header(): mibgroup/agentx/protocol.c, 1518:

dumph_recv:   Transaction ID

dumpx_recv:    00 00 00 00

dumpv_recv:      Integer:       0 (0x00)

trace: agentx_parse_header(): mibgroup/agentx/protocol.c, 1526:

dumph_recv:   Packet ID

dumpx_recv:    97 74 66 6F

dumpv_recv:      Integer:       1868985495 (0x6F667497)

trace: agentx_parse_header(): mibgroup/agentx/protocol.c, 1533:

dumph_recv:   Payload Length

dumpx_recv:    00 00 00 00

dumpv_recv:      Integer:       0 (0x00)

trace: agentx_parse(): mibgroup/agentx/protocol.c, 1625:

dumph_recv:   PDU

trace: init_agent_snmp_session(): snmp_agent.c, 1245:

snmp_agent: agent_sesion 0x800da928 created

trace: init_agent_snmp_session(): snmp_agent.c, 1260:

verbose:asp: asp 0x800da928 reqinfo 0x80104298 created

trace: handle_master_agentx_packet(): mibgroup/agentx/master_admin.c, 490:

agentx/master: handle pdu (req=0x6f667497,trans=0x0,sess=0x6)

trace: handle_master_agentx_packet(): mibgroup/agentx/master_admin.c, 567:

agentx/master: send response, stat 0 (req=0x6f667497,trans=0x0,sess=0x6)

trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 611:

dumph_send: AgentX Header

dumpx_send:  01 12 00 00

dumpv_send:    Version: 1

trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 614:

dumpv_send:     Command:        18 (Response)

trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 617:

dumpv_send:     Flags:  00

trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 620:

dumph_send:   Session ID

dumpx_send:    06 00 00 00

dumpv_send:      Integer:       6 (0x06)

trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 629:

dumph_send:   Transaction ID

dumpx_send:    00 00 00 00

dumpv_send:      Integer:       0 (0x00)

trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 638:

dumph_send:   Request ID

dumpx_send:    97 74 66 6F

dumpv_send:      Integer:       1868985495 (0x6F667497)

trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 647:

dumph_send:   Dummy Length :-(

dumpx_send:    00 00 00 00

dumpv_send:      Integer:       0 (0x00)

trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 714:

dumph_send: AgentX Payload

dumpx_send:  F2 B0 00 00

dumpv_send:    Integer: 45298 (0xB0F2)

trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 901:

dumph_send:   Response

dumpx_send:    F2 B0 00 00

dumpv_send:      sysUpTime:     45298

dumpx_send:  00 00

dumpv_send:    Short:   0 (0x00)

dumpx_send:  00 00

dumpv_send:    Short:   0 (0x00)

trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 917:

dumph_send:   Response errors

dumpx_send:    00 00 00 00

dumpv_send:      errstat:       0

trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 920:

dumpv_send:       errindex:     0

trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 932:

dumph_send:   Get* Variable List

dumpx_send:08 00 00 00

dumpv_send:  Integer:   8 (0x08)

trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 1004:

agentx_build: packet built okay

trace: free_agent_snmp_session(): snmp_agent.c, 1271:

snmp_agent: agent_session 0x800da928 released

trace: free_agent_snmp_session(): snmp_agent.c, 1276:

verbose:asp: asp 0x800da928 reqinfo 0x80104298 freed

trace: _sess_read(): snmp_api.c, 5293:

sess_read: not reading 11 (fdset 0xbfd639b0 set 0)

trace: _sess_read(): snmp_api.c, 5293:

sess_read: not reading 9 (fdset 0xbfd639b0 set 0)

trace: _sess_read(): snmp_api.c, 5293:

sess_read: not reading 6 (fdset 0xbfd639b0 set 0)

trace: _sess_read(): snmp_api.c, 5293:

sess_read: not reading 4 (fdset 0xbfd639b0 set 0)

trace: snmp_sess_select_info(): snmp_api.c, 5704:

sess_select: for all sessions: 12 11 9 6 4

sess_select: next alarm -1210598567.-2147440648 sec

sess_select: blocking:no session requests or alarms.

trace: receive(): snmpd.c, 1115:

snmpd/select: select( numfds=13, ..., tvp=(nil))

trace: receive(): snmpd.c, 1119:

snmpd/select: returned, count = 1

trace: netsnmp_tcp_recv(): snmpTCPDomain.c, 100:

netsnmp_tcp: recv fd 12 got 20 bytes

dumpx_recv:00 00 00 00

dumpv_recv:  Integer:   0 (0x00)

trace: _sess_read(): snmp_api.c, 5475:

sess_read:   loop packet_len 20, PDU length 20

trace: _sess_process_packet(): snmp_api.c, 4975:

sess_process_packet: session 0x800c45d8 fd 12 pkt 0x800f18d0 length 20

trace: agentx_parse_header(): mibgroup/agentx/protocol.c, 1481:

dumph_recv: AgentX Header

trace: agentx_parse_header(): mibgroup/agentx/protocol.c, 1482:

dumph_recv:   Version

dumpx_recv:    01

dumpv_recv:      Version:       1

trace: agentx_parse_header(): mibgroup/agentx/protocol.c, 1489:

dumph_recv:   Command

dumpx_recv:    0D

dumpv_recv:      Command:       13 (Ping)

trace: agentx_parse_header(): mibgroup/agentx/protocol.c, 1497:

dumph_recv:   Flags

dumpx_recv:    00

dumpv_recv:      Flags: 0x0

trace: agentx_parse_header(): mibgroup/agentx/protocol.c, 1504:

dumph_recv:   Reserved Byte

dumpx_recv:    00

dumpv_recv:      Reserved:      0x0

trace: agentx_parse_header(): mibgroup/agentx/protocol.c, 1510:

dumph_recv:   Session ID

dumpx_recv:    06 00 00 00

dumpv_recv:      Integer:       6 (0x06)

trace: agentx_parse_header(): mibgroup/agentx/protocol.c, 1518:

dumph_recv:   Transaction ID

dumpx_recv:    00 00 00 00

dumpv_recv:      Integer:       0 (0x00)

trace: agentx_parse_header(): mibgroup/agentx/protocol.c, 1526:

dumph_recv:   Packet ID

dumpx_recv:    98 74 66 6F

dumpv_recv:      Integer:       1868985496 (0x6F667498)

trace: agentx_parse_header(): mibgroup/agentx/protocol.c, 1533:

dumph_recv:   Payload Length

dumpx_recv:    00 00 00 00

dumpv_recv:      Integer:       0 (0x00)

trace: agentx_parse(): mibgroup/agentx/protocol.c, 1625:

dumph_recv:   PDU

trace: init_agent_snmp_session(): snmp_agent.c, 1245:

snmp_agent: agent_sesion 0x800da928 created

trace: init_agent_snmp_session(): snmp_agent.c, 1260:

verbose:asp: asp 0x800da928 reqinfo 0x800c8af0 created

trace: handle_master_agentx_packet(): mibgroup/agentx/master_admin.c, 490:

agentx/master: handle pdu (req=0x6f667498,trans=0x0,sess=0x6)

trace: handle_master_agentx_packet(): mibgroup/agentx/master_admin.c, 567:

agentx/master: send response, stat 0 (req=0x6f667498,trans=0x0,sess=0x6)

trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 611:

dumph_send: AgentX Header

dumpx_send:  01 12 00 00

dumpv_send:    Version: 1

trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 614:

dumpv_send:     Command:        18 (Response)

trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 617:

dumpv_send:     Flags:  00

trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 620:

dumph_send:   Session ID

dumpx_send:    06 00 00 00

dumpv_send:      Integer:       6 (0x06)

trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 629:

dumph_send:   Transaction ID

dumpx_send:    00 00 00 00

dumpv_send:      Integer:       0 (0x00)

trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 638:

dumph_send:   Request ID

dumpx_send:    98 74 66 6F

dumpv_send:      Integer:       1868985496 (0x6F667498)

trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 647:

dumph_send:   Dummy Length :-(

dumpx_send:    00 00 00 00

dumpv_send:      Integer:       0 (0x00)

trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 714:

dumph_send: AgentX Payload

dumpx_send:  CF B6 00 00

dumpv_send:    Integer: 46799 (0xB6CF)

trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 901:

dumph_send:   Response

dumpx_send:    CF B6 00 00

dumpv_send:      sysUpTime:     46799

dumpx_send:  00 00

dumpv_send:    Short:   0 (0x00)

dumpx_send:  00 00

dumpv_send:    Short:   0 (0x00)

trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 917:

dumph_send:   Response errors

dumpx_send:    00 00 00 00

dumpv_send:      errstat:       0

trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 920:

dumpv_send:       errindex:     0

trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 932:

dumph_send:   Get* Variable List

dumpx_send:08 00 00 00

dumpv_send:  Integer:   8 (0x08)

trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 1004:

agentx_build: packet built okay

trace: free_agent_snmp_session(): snmp_agent.c, 1271:

snmp_agent: agent_session 0x800da928 released

trace: free_agent_snmp_session(): snmp_agent.c, 1276:

verbose:asp: asp 0x800da928 reqinfo 0x800c8af0 freed

trace: _sess_read(): snmp_api.c, 5293:

sess_read: not reading 11 (fdset 0xbfd639b0 set 0)

trace: _sess_read(): snmp_api.c, 5293:

sess_read: not reading 9 (fdset 0xbfd639b0 set 0)

trace: _sess_read(): snmp_api.c, 5293:

sess_read: not reading 6 (fdset 0xbfd639b0 set 0)

trace: _sess_read(): snmp_api.c, 5293:

sess_read: not reading 4 (fdset 0xbfd639b0 set 0)

trace: snmp_sess_select_info(): snmp_api.c, 5704:

sess_select: for all sessions: 12 11 9 6 4

sess_select: next alarm -1210598567.-2147440648 sec

sess_select: blocking:no session requests or alarms.

trace: receive(): snmpd.c, 1115:

snmpd/select: select( numfds=13, ..., tvp=(nil))





Regards,



Reza









--- On Mon, 12/1/08, Brian A. Seklecki <[email protected]> wrote:
From: Brian A. Seklecki <[email protected]>
Subject: Re: IPV6 support
To: "Reza Salehi" <[email protected]>
Cc: "SNMP FORUM" <[email protected]>
Date: Monday, December 1, 2008, 5:16 PM

Reza:

Avoid sending a 2.0 MB config.log to the list.  Instead post it and share 
the URL.

As you can see from configure.log, IPv6 is being detected and loaded:

#define NETSNMP_DEFAULT_MIBS: "...IPV6-ICMP-MIB:IPV6-MIB:IPV6-TCP-M 
IB:IPV6-UDP-MIB:..."

Try running it in debug mode:  $ sudo -H snmpd -Lo -DALL -f

~BAS


On Mon, 1 Dec 2008, Reza Salehi wrote:

> Thanks Brian.
>
>
>
> It is still not working.
>
>
>
> You can see at below the out put of ldd command. Also,as attachment please
find the config.log file.
>
>
>
> Regards,
>
> Reza
>
>  linux-gate.so.1 =>  (0xffffe000)
>
>         libnetsnmpagent.so.15 => /usr/lib/libnetsnmpagent.so.15
(0xb7ef8000)
>
>         libnetsnmphelpers.so.15 =>
/usr/lib/libnetsnmphelpers.so.15 (0xb7edc000)
>
>         libnetsnmpmibs.so.15 => /usr/lib/libnetsnmpmibs.so.15
(0xb7dca000)
>
>         libnetsnmp.so.15 => /usr/lib/libnetsnmp.so.15
(0xb7d30000)
>
>         librpm-4.4.so => /usr/lib/librpm-4.4.so (0xb7ca1000)
>
>         librpmdb-4.4.so => /usr/lib/librpmdb-4.4.so (0xb7b95000)
>
>         libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb7b40000)
>
>         libelf.so.1 => /usr/lib/libelf.so.1 (0xb7b2d000)
>
>         libselinux.so.1 => /lib/libselinux.so.1 (0xb7b1c000)
>
>         librpmio-4.4.so => /usr/lib/librpmio-4.4.so (0xb7a85000)
>
>         libbeecrypt.so.6 => /usr/lib/libbeecrypt.so.6
(0xb7a3a000)
>
>         libneon.so.24 => /usr/lib/libneon.so.24 (0xb7a20000)
>
>         libssl.so.5 => /lib/libssl.so.5 (0xb79e8000)
>
>         libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2
(0xb79d1000)
>
>         libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xb795f000)
>
>         libk5crypto.so.3 => /usr/lib/libk5crypto.so.3
(0xb793b000)
>
>         libkrb5support.so.0 => /usr/lib/libkrb5support.so.0
(0xb7937000)
>
>         libcom_err.so.2 => /lib/libcom_err.so.2 (0xb7934000)
>
>         libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb7915000)
>
>         librt.so.1 => /lib/librt.so.1 (0xb7902000)
>
>         libbz2.so.1 => /usr/lib/libbz2.so.1 (0xb78f0000)
>
>         libpopt.so.0 => /usr/lib/libpopt.so.0 (0xb78e8000)
>
>         libcrypto.so.5 => /lib/libcrypto.so.5 (0xb77d0000)
>
>         libz.so.1 => /usr/lib/libz.so.1 (0xb77bd000)
>
>         libperl.so =>
> /usr/lib/perl5/5.8.6/i386-linux-thread-multi/CORE/libperl.so
> (0xb7671000)
>
>         libresolv.so.2 => /lib/libresolv.so.2 (0xb765f000)
>
>         libnsl.so.1 => /lib/libnsl.so.1 (0xb764b000)
>
>         libdl.so.2 => /lib/libdl.so.2 (0xb7647000)
>
>         libm.so.6 => /lib/libm.so.6 (0xb7621000)
>
>         libcrypt.so.1 => /lib/libcrypt.so.1 (0xb75f4000)
>
>         libutil.so.1 => /lib/libutil.so.1 (0xb75f0000)
>
>         libpthread.so.0 => /lib/libpthread.so.0 (0xb75df000)
>
>         libc.so.6 => /lib/libc.so.6 (0xb74c2000)
>
>         libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb74b7000)
>
>         libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb73db000)
>
>         /lib/ld-linux.so.2 (0xb7f32000)
>
>
>
>
>
>  
>
> --- On Mon, 12/1/08, Brian A. Seklecki
<[email protected]> wrote:
> From: Brian A. Seklecki <[email protected]>
> Subject: Re: IPV6 support
> To: "Reza Salehi" <[email protected]>
> Cc: "SNMP FORUM" <[email protected]>
> Date: Monday, December 1, 2008, 4:30 PM
>
> On Mon, 1 Dec 2008, Reza Salehi wrote:
>
>> Hi All,
>>
>>
>>
>> I need to retrive some IPV6 information . I compiled snmpd with
> ./configure --enable_ipv6 but I l cant still poll any ipv6 MIB.
>>
>
> try "--enable-ipv6" (hyphen, not underscore).
>
> Also post your config.log somewhere to view
>
> Also, "ldd $(which snmpd)"
>
> ~BAS
>
>> I get the following error all the time:
>>
>>
>>
>> snmpwalk -v 2c localhost -c TC
IPV6-MIB::ipv6IfTable-------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
world
>
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
> Net-snmp-users mailing list
> [email protected]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>

l8*
 	-lava (Brian A. Seklecki - Pittsburgh, PA, USA)
 	       http://www.spiritual-machines.org/

     "Show me a young conservative and I'll show you someone with no
heart.
     Show me an old liberal and I'll show you someone with no brains."
     ~ Winston Churchill-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.