Hi,

I have been working on a config file to allow mib2c to generate the support code for the embedded perl agent, and Thomas Anders suggested that I submit this for possible inclusion into net-snmp, which I am now ready to do.

Can you let me know what format I should submit this and to whom.

Summary:
The main purpose of this work is to allow developers to quickly product agent code using the embedded perl support in net-snmp. Using perl allows agents to be quickly developed and deployed when compared to traditional C coding. This is particularly useful when the data required is in external config files where Perl's data handling comes into its own.

In outline, the mib2perl package consists of a config file for mib2c and a supporting perl module. The output is an agent_xxx.pl file that can be executed from the snmpd.conf file.
It registers using the topmost oid of the mibs(s) given to mib2c.
The code generated consists of:
- A hash data structure containing OID strings as the primary key, and references to various helpers.
- Skeleton helpers for all the objects in the mibs.

The user of this utility would take the skeleton functions and fill in the details, the SnmpAgent module taking care of the rest.
Support for tables with multiple indexes is supported, as well as scalars.

Testing:
This has been tested on 3 mibs we have written for our products, 3 tables, one with two INTEGER indexes, the others with a single INTEGER index.

Known limitations:
The major limitation is that indexes must be simple objects - integers etc, not OIDs or other objects that require more complex identifiers. The code is probably sub-optimal in several places, I have not attempted to fine-tune the generation of the code, nor have I done any explicit optimisation on the run-time support.
Does not run with strict yet.


Regards

Pete Martin

Engineering Director
Tripleplay Services
Office: +44 1202 677897
Mobile: 07810 876713
Fax: +44 20 7691 0861
[EMAIL PROTECTED]

Tripleplay Services Ltd
PO Box 43862
London
NW6 1WU
UK

http://www.tripleplay-services.com

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to