snmp_parse_oid size error

Fred <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello,

I use Net-SNMP librairie to do a SNMP poller aplication. On windows it work
well and i can get the value of my snmp server. But on FreeBSD i have the
following error:

IF-MIB::ifInOctets = No Such Instance currently exists at this OID

The log of snmpd contains:

    Connection from UDP: [127.0.0.1]:61592
    Purging address from address cache: UDP: [127.0.0.1]:59352Received SNMP
packet(s) from UDP: [127.0.0.1]:61592
      GET message
        -- IF-MIB::ifInOctets

And when i try snmpWalk:

    Connection from UDP: [127.0.0.1]:54496
    Received SNMP packet(s) from UDP: [127.0.0.1]:54496
      GETNEXT message
        -- IF-MIB::ifInOctets*.1*

I don't why the snmp_parse_oid, return a lenght of 10 and not a lenght of 11
same as windows aplication:

On FreeBSD,  the lenght returned by the snmp_parse_oid is 0 and after 10
(Its don't work: No Such Instance currently exists at this OID) and on
windows it is a always a lenght of 11 (and it's work).

Can you help me?

Thanks

-------------------------------------------------------------------------
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.