Re: working with tables...

This is a discussion on Re: working with tables... within the SNMP Coders forums, part of the Networking and Network Related category; On 16/04/2008, Alejandro Islas <alex.islas@gmail.com> wrote: > But when I try to read ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008
Dave Shield
 
Posts: n/a
Default Re: working with tables...

On 16/04/2008, Alejandro Islas <alex.islas@gmail.com> 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;198757...un.com/javaone
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:46 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0