I don't know about tables specifically, but in general the other way (i.e. apart from using a sub-agent) is to build your stuff into the agent directly. You compile your MIB definition files using an appropriate mib2c config file and then drop the output files in the agents/mibgroup folder in the main distribution. Then you need to rerun ./configure using --with-mib-modules "<your mib names here>", and rebuild the agent.

Depending on your needs and the availability of an appropriate mib2c config file you may have to hand edit the mib2c output to hook into whatever it is you're managing and/or produce your own mib2c config file to do it for you.

There's quite a nice section on this in the FAQ IIRC (e.g. see http://net-snmp.sourceforge.net/docs/FAQ.html#How_do_I_add_a_MIB_to_the_agent_). If you're going to modify/create mib2c config files, somebody sent me this link, which I found helpful: http://net-snmp.sourceforge.net/docs/man/mib2c.conf.html

Hope this helps

Cheers

Raffles

Palmentieri Nunzio wrote:
Hi all,
my question is:
I wrote a MIB with several table objects.
How can I generate code for it?
I think I have to run mib2c on both the tables, and then compile the code generated, as follows: mib2c peProcessTable
mib2c peObjectTable
and then compile them to obtain one sub-agent responding to get on both objects. Am I right?
Is there another way to do that?
Thanks in advance to all.
*Nunzio Palmentieri
*Web Care Solution
* Atos Origin
*Via Antiniana 2/a
80078 Pozzuoli (NA) - ITALY

**
Direct        +39 081 6103 388
Mobile       +39 335 1214 806
Fax             +39 081 6103 200
e-mail        mailto:[EMAIL PROTECTED]
Web            www.atosorigin.com <http://www.atosorigin.com/>

This electronic message contains information from Atos Origin, which may be privileged and confidential. The information is intended to be use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.


--

Visit our website at www.roke.co.uk

Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.

The information contained in this e-mail and any attachments is proprietary to
Roke Manor Research Ltd and must not be passed to any third party without
permission. This communication is for information only and shall not create or
change any contractual relationship.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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