Re: Defining multiples OID's in a single handler module

2009-02-10 Thread Dave Shield
2009/2/9 Rodolfo Leffa : > .. I'm only implementing the GET > operation. Now I'm doubt if I should implement GETNEXT, or it's okay to have > an agent that don't reponse to this kind of requisition. No - your agent *MUST* handle both GET and GETNEXT requests. See RFC1905, section 4.2.More

Re: Defining multiples OID's in a single handler module

2009-02-09 Thread Rodolfo Leffa
On Mon, Feb 9, 2009 at 9:19 AM, Dave Shield wrote: > 2009/2/6 Rodolfo Leffa : > >> > I'd like to deal with all requests to a subtree of my mib in a single > >> > handler, but i don't know how to do it. > >> > >> Registering the root using 'netsnmp_register_handler()' does exactly > >> this. But

Re: Defining multiples OID's in a single handler module

2009-02-09 Thread Dave Shield
2009/2/6 Rodolfo Leffa : >> > I'd like to deal with all requests to a subtree of my mib in a single >> > handler, but i don't know how to do it. >> >> Registering the root using 'netsnmp_register_handler()' does exactly >> this. But it does mean that you have to deal with *everything* under >> th

Re: Defining multiples OID's in a single handler module

2009-02-06 Thread Rodolfo Leffa
On Fri, Feb 6, 2009 at 6:55 AM, Dave Shield wrote: > 2009/2/5 Rodolfo Leffa : > > is there a way to define multiples OID's in a single module extending the > > agent?? > > Yes. > Most of the code under 'mibgroup' works this way. > There are very few MIB modules that comprise just > one single OID.

Re: Defining multiples OID's in a single handler module

2009-02-06 Thread Dave Shield
2009/2/5 Rodolfo Leffa : > is there a way to define multiples OID's in a single module extending the > agent?? Yes. Most of the code under 'mibgroup' works this way. There are very few MIB modules that comprise just one single OID. Have a look through this code, and see how it's currently done.

Defining multiples OID's in a single handler module

2009-02-05 Thread Rodolfo Leffa
Hi, is there a way to define multiples OID's in a single module extending the agent?? I'd like to deal with all requests to a subtree of my mib in a single handler, but i don't know how to do it. Can I somehow defines a generic OID, like 1,3,6,1,4,1,32624,1,X,X,X,X,X, ?? Where 'X' could represe