2009/2/5 Rodolfo Leffa <rodolfole...@gmail.com>:
> 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.


> 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
the specified root yourself.  That can get quite complex.

In most cases you are better off using one of the more specialised
helpers (e.g. scalar, scalar_group or assorted table helpers).


> Can I somehow defines a generic OID, like  1,3,6,1,4,1,32624,1,X,X,X,X,X, ??
> Where 'X' could represent any number.

That looks suspiciously like a MIB table.
In which case, you should probably use one of the table helpers.

What is the structure of the MIB you are trying to implement?

Dave

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to