I'm currently looking at writing subagents for snmpd, and how I might  
go about it.  I'm fairly competent in Perl and Python, but my C is...  
not fantastic (I can program in C, but I much prefer not to if I don't  
have to).  I know I can embed Python and Perl with the newer versions  
of Net-SNMP, but I have a couple of questions about it:

1. The tutorials I've seen on Perl don't mention how to handle such  
things as creating a table, loading data into it, and serving rows as  
part of a GETBULK (or successive GETNEXT) call.  Part of the data I'm  
exporting is a listing of the packages currently installed on a system  
(I know there's already a provision for it, but it doesn't provide  
everything I need), so there may be upwards of 300 rows that I can't  
really afford to store in memory for long, as the packages that are  
installed and their status may change frequently.

2. Can I make this an AgentX subagent?  I think the tutorial on  
extending snmpd using perl in the wiki covers this, but I'm not too  
sure, so any clarification would be nice.

Any help you guys can give me on this would be greatly appreciated.

Regards,

Adrian

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to