Replacing extend commands in snmpd.conf with a subagent

Jordi Gutiérrez Hermoso <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Forgive me if my question isn't entirely coherent because I am not
fully understanding what I'm asking. I have tried asking this question
in the -coders mailing list, but it has occurred to me that perhaps
that was the wrong venue for it.

Right now I have in my snmpd.conf a bunch of extend commands of the form

    extend $oid $name $command --args $oid

where $command is a C program we've written that fetches the value
associated to $oid.

For performance reasons, we would like to replace this with a
subagent. As I understand from the wiki, this means I should write a
MIB module which I can then turn into a subagent with the AgentX
protocol... however, I'm confused as to how to write the MIB module. I
already have code that turns the OID into its value; I would like to
simply extract that code from my tool and integrate it into net-snmp
instead.

What guidance can you offer me on how to do this?

Thanks,
- Jordi G. H.

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.