Re: mib2c configs for embedded perl
"Peter Martin" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <01d501c5e066$325e3d10$66f1a8c0@endeavour> |
Thomas > Peter Martin wrote: > We've discussed this recently and don't think anyone has done it yet. But > we'd highly appreciate any work in this regard! Please go ahead and submit > your config when you're done, so that it can be considered for inclusion > in the distribution. Ok, thanks for the info, I will go ahead and do that. Obviously I have my own set of goals and requirements which will guide the design of tools and the outputs it generates (see below for the rationale). If anyone has any specific requirements here then let me know and I'll consider adding them if they don't detract from the essence of what I need. At the moment I am thinking along these lines: Create the boilerplate for initialisation with the agent. Create a hash that associates the OIDs with a handler based on the object name. This allows the agent creator to supply subs to return or set the values. A general scalar handler that uses the hash and calls the handlers. The code gen will create skeletons of the handlers which can then be filled in as required. A general table handler that performs the getnext logic and calls a handler for the leaf objects. Uses user-written table specific functions for index handling. Again skeletons will be created. BTW, my rationale for using perl is that most of our mibs are concerned with remote monitoring and on the whole query data held in plain text or xml files, so perl is a natural choice for this. Monitoring is only performed at a fairly low rate, so performance is not top of our list. > BTW, what net-snmp version(s) and platform(s) are your working with? I am using mainly a Fedora 3 OS on HP servers and with net-snmp-5.2.2-pre2 (today) with Perl 5.8.5. The products are IPTV and VOD servers. ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ 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