Thomas Anders wrote:
> Roman Medina-Heigl Hernandez wrote:
> 
>> Actually I'm going to have a look to stuff kindly posted by Turbo
>> Frediksson:
>> http://www.bayour.com/bacula-snmp/
>> Btw, it doesn't seem trivial at all.
>>
>> I can't believe there isn't any perl library for this. 
> 
> 
> There are several. First, I'd highly recommend using embedded perl (see
> "EMBEDDED PERL SUPPORT" in snmpd.conf(5)) instead of "pass". In the
> embedded perl module, you can make use of the perl modules shipped with
> net-snmp and others from CPAN (Net::SNMP being a prominent example).

Hi,

I've digged into CPAN's Net::SNMP module and I haven't found any
function/method useful for "serving" SNMP tables based on a SQL table,
which is what I'm looking for.

The "nearest" stuff I could find is Net-SNMP API:
http://www.net-snmp.org/dev/agent/group__table__iterator.html
http://www.net-snmp.org/dev/agent/data__set_8c-example.html

But:
- they're C, not Perl
- data_sec.c example uses local storage which is far easier than using
external (i.e. SQL) and "unsorted" (a SQL table is not OID sorted) storage

I think what I want to do is not easy for a snmp-coder beginner.

So:
- does somebody who has "played" with embedded perl have sample Perl
sources to do what I want (or something close to it) [accesing SQL
tables through SNMP Get/GetNext/GetBulk/Set requests]?
- could you point to a more specific idea? (module name and function to
use, etc)

I also was thinking about "pass" method and I think I've found another
problem: what happens with GETBULK requests? I guess "pass" doesn't
support this kind of request, or am I wrong?

-- 

Saludos,
-Roman

PGP Fingerprint:
09BB EFCD 21ED 4E79 25FB  29E1 E47F 8A7D EAD5 6742
[Key ID: 0xEAD56742. Available at KeyServ]


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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

Reply via email to