I enabled --enabled-ipv6 in ./configure script but still didn't see
anything while snmpwalking ipIfStatsTable...

I found the below code in ip-mib/ , it looks like either ipSystemStatsTable
or ipIfStatsTable will be loaded for both ipv4 & ipv6, is this true?

......

/*
 * Based on load_flags, load ipSystemStatsTable or ipIfStatsTable for ipv4
entries.
 */
static int
_systemstats_v4(netsnmp_container* container, u_int load_flags)
{
    FILE           *devin;
    char            line[1024];
    netsnmp_systemstats_entry *entry = NULL;
    int             scan_count;
    char           *stats, *start = line;
    int             len;
    unsigned long long scan_vals[19];

    DEBUGMSGTL(("access:systemstats:container:arch", "load v4 (flags %x)\n",
                load_flags));

    netsnmp_assert(container != NULL); /* load function shoulda checked
this */

    if (load_flags & NETSNMP_ACCESS_SYSTEMSTATS_LOAD_IFTABLE) {
        /* we do not support ipIfStatsTable for ipv4 */
        return 0;
    }
----
----
----

As I am new with working on Standard mibs, could you please explain me is
there any restriction to display both the tables.

-Thanks,
Madhu.



On Wed, Jul 25, 2012 at 6:33 PM, Vincent Bernat <[email protected]> wrote:

>  ❦ 25 juillet 2012 13:57 CEST, Madhu Sudhana Rao <[email protected]> :
>
> > I am using net-snmp 5.6.1 version on my Linux system.
> >
> > I want to print ipSystemStatsTable & ipIfStatsTable of IP-MIB. I can see
> > the below line in .h file in agent/mibgroup path
> >
> > config_require(ip-mib ip-forward-mib tcp-mib udp-mib)
> >
> >
> > ipSystemStatsTable is working fine and I got output with snmpwalk command
> > but I am getting "no such object for this OID" for ipIfStatsTable,
>
> There is no per-interface statistics for IPv4 in Linux. If you have IPv6
> enabled, you should see something.
> --
> Use self-identifying input.  Allow defaults.  Echo both on output.
>             - The Elements of Programming Style (Kernighan & Plauger)
>



-- 
Thanks & Regards...
Madhu
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to