Dave,
   Yes, A and B are integers and all the cells are "accessible". So, as the
getnext is returning wrong values, but snmpwalk returns the table cells in
the right lexicographic order - what can I assume? Can I assume that the mib
module is working fine - and I need to dig a little into the agent code -
most probably look into the agent/helpers/table_array.c's
process_get_requests?

   Any help is greatly appreciated,
Thanks and regards,
Arijit


-----Original Message-----
From: Dave Shield [mailto:[EMAIL PROTECTED]
Sent: Monday, June 14, 2004 10:27 PM
To: Mukherjee, Arijit (Arijit)
Cc: [EMAIL PROTECTED]
Subject: Re: Problem with snmp getnext in table 




>    I have a table which has got 2 indices and the following is the
scenario:
> 
>    oid of table: x
>    oid of tableEntry: x.1
>    It has 6 columns (assume names A, B, C, D, E, F) with oid extensions 
>    as 1, 2, 3, 4, 5, 6 with A and B as the indices.

What type of values are 'A' and 'B' ?
I presume integers, from your description.

Are they defined as accessible or not?


>    If I do a snmpgetnext on x - it returns the first row for A.
>    If I do a snmpgetnext on x.1.1, I get the first row value for column A
> (x.1.1.1.1)

In both cases, this should return the first (accessible) entry in the
table.   This will probably either be x.1.1.1.1  (if A is defined as
accessible) or x.1.3.1.1 (if A and B are both defined as not-accessible)


>    If I do a snmpgetnext on x.1.2, I still get the first row value for
> column A (x.1.1.1.1), while, I should have got the value for oid x.1.2.1.1

Correct - assuming B is accessible.
(Otherwise you should get x.1.3.1.1 again)

You should certainly *not* get x.1.1.1.1

Dave



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
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 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
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

Reply via email to