I'm adding some more objects to my agent and this is the first time
where I will have child tables.  My data looks like this

<sensor>
   <id></id>
   <type></type>
   <port></port>
   <active></active>
   <channel>
     <id></id>
     ...
    </channel>
</sensor>


I've shown it in XML so hopefully that details best what it looks like.
So far I've got the first items complete and in the snmp agent. 

OpsSrenaSensorEntry ::= SEQUENCE {
                opsSrenaSensorIndex             Integer32,
                opsSrenaSensorActive    INTEGER,
                opsSrenaSensorType              DisplayString,
                opsSrenaSensorPort              Integer32
        }

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
        }

Can someone point me in te right direction of the proper way of doing
what I'm trying to do.



-------------------------------------------------------
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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to