Re: Subagent Question

2004-06-11 Thread Dave Shield
> I have built a mib which is a list of scalars > Note the xpressObjects oid is .1.3.6.1.4.1.2286.85.1.1.4 OK - then why not use the 'scalar' helper? Register each MIB object using 'netsnmp_register_scalar' and giving the OID of the object (.1.3.6.1.4.1.2286.85.1.1.4) Then when a request comes

Re: Subagent Question

2004-06-11 Thread Coders
On Fri, 11 Jun 2004 06:25:56 -0700 Glenn wrote: GM> GM> device1 OBJECT IDENTIFIER ::= { xpressObjects 1 } GM> point1OBJECT TYPE GM> SYNTAX OCTET STRING GM> MAX-ACCESS read-only GM> STATUS current GM> ::= { device1 1 } GM> GM> point2OBJECT TYPE GM> SYNTAX OCTET ST

Re: Subagent Question

2004-06-11 Thread Glenn MacGregor
Wes, Thanks! So my situation is...I have built a mib which is a list of scalars (can't use tables due to customer limitation). The MIB looks like this: device1 OBJECT IDENTIFIER ::= { xpressObjects 1 } point1OBJECT TYPE SYNTAX OCTET STRING MAX-ACCESS read-only STATUS curr

Re: Subagent Question

2004-06-10 Thread Coders
On Thu, 10 Jun 2004 11:47:27 -0700 Glenn wrote: GM> Thanks for the info. I have another question about my subagent. WHen I get GM> an SNMP get request I have to translate it (using my mib) and ask an GM> external source for the value of what I want. So in my handler function I GM> just set the dele

Re: Subagent Question

2004-06-10 Thread Glenn MacGregor
Wes, Thanks for the info. I have another question about my subagent. WHen I get an SNMP get request I have to translate it (using my mib) and ask an external source for the value of what I want. So in my handler function I just set the delegated flag to 1 and build a cache object which I save o

Re: Subagent Question

2004-06-09 Thread Wes Hardaker
> On Wed, 9 Jun 2004 08:39:07 -0700, Glenn MacGregor <[EMAIL PROTECTED]> said: Glenn> I am writing a subagent for net-snmp-5.1.1. Just getting into Glenn> handling the getnext request. I am not too sure how to handle Glenn> this... I have a mib and I get the struct tree for the oid that Glenn

Subagent Question

2004-06-09 Thread Glenn MacGregor
Hi All, I am writing a subagent for net-snmp-5.1.1. Just getting into handling the getnext request. I am not too sure how to handle this... I have a mib and I get the struct tree for the oid that is asked for, is there a way to get the next oid in the tree from that? Is there some alogrithm th