On Sun, 2005-11-20 at 16:17 -0500, Chris Fowler wrote:
> What I don't know how to do is begin adding the channel table.  Each
> sensor object will have a table of channel.  Do I do it like this:
> 
> OpsSrenaSensorEntry ::= SEQUENCE {
>                 opsSrenaSensorIndex             Integer32,
>                 opsSrenaSensorActive    INTEGER,
>                 opsSrenaSensorType              DisplayString,
>                 opsSrenaSensorPort              Integer32,
>                 opsSrenaSensorChannelTable      
>                     SEQUENCE of opsSrenaSensorChannelEntry
>         }

A reasonable guess, but no.
SNMP doesn't support "sub tables" - or at least not directly.

What you have to do is define the channel table as a second
(separate) table, with sensorIndex being one of two indexes
for it.  That's sufficient to link the two table together,
and allows the management application to display the data
as a table-within-a-table.


There are a few examples of this technique in the standard
MIBs (e.g. the Host Resources hrPartitionTable)

Dave


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to