Thanks for the info Dave, I did the GET requests with the same results. I'm
kind of new to linux programming so could you please recommend me a
debugger, could Eclipse help me??? Another question, I used the
mib2c.iterate.conf mib2c file to generate the code. Is this the best
configuration file to used as a first approach to coding mibs tables? Should
I used mfd file??? My main goal is to keep my code as simple as possible
On Wed, Apr 16, 2008 at 3:29 AM, Dave Shield <[EMAIL PROTECTED]>
wrote:
> On 16/04/2008, Alejandro Islas <[EMAIL PROTECTED]> wrote:
> > But when I try to read a table..the snmpd deamon crashes.
> > Could anyone give me an idea of where to
> > start to lookaround???
>
> One thing would be to identify exactly what triggers the crash.
> Does it fail on a GETNEXT of the first entry?
> On a GETNEXT of any of the four columns?
> On a GETNEXT of an internal row instance?
>
> What about GET requests for particular values?
> What about GET requests for missing values?
>
>
> Try running the agent under a debugger, and see where
> the crash occurs in the code.
>
>
>
> > Here is part of my mib file (one of the tables)...
>
> A few comments:
>
>
> > MonThreadsTable OBJECT-TYPE
> > SYNTAX SEQUENCE OF monThreadsEntry
>
> The name of the table must start with a lower case letter
> (monThreadsTable)
>
> The name of the type must start with an upper case letter
> And it's the name of the SEQUENCE type, not the Entry
> object. (MonThreadsEntry)
>
>
>
> > monThreadsEntry OBJECT-TYPE
> > SYNTAX monThreadsDetailsEntry
>
> The syntax of this object must match that of the
> monThreadsTable entry. Conventionally, this
> would be the same as the name of this MIB
> object, but capitalised (MonThreadsEntry)
>
>
>
> > monThreadsDetailsEntry ::=
> > SEQUENCE {
>
> MonThreadsEntry
>
>
>
> > IdThread OBJECT-TYPE
> > SYNTAX INTEGER
> > ACCESS read-only
>
> The index object should be "not-accessible".
>
>
> > ProcTime OBJECT-TYPE
> > MaxProcTime OBJECT-TYPE
> > ExecNumber OBJECT-TYPE
>
> These objects must start with a lower-case letter.
> Conventionally, you would normally use a common prefix,
> to make clear that they're all part of the same table.
>
> monThreadsProcTime
> monThreadsMaxProcTime
> monThreadsExecNumber
>
>
> Dave
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders