> 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
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
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
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
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
> 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