On Thu, 2006-02-02 at 15:15 +1100, Dean wrote:
> I'm back to playing with the 'exec' statement again, but I have tried
> pass_persist and extend due to exec going away(?), but the latter two I
> really haven't gotten my head around,

"extend" is basically the same as "exec" - it just uses a slightly
different MIB structure.   ("pass_persist" works on a very different
model, so don't try to think of this in the same way).


> This is my snmpd.conf entry:
> exec .1.3.6.1.4.1.2021.255.2 /usr/bin/perl /data/snmp/bin/pkgvers.pl

Try setting up an entry

extend .1.3.6.1.4.1.2021.255.3 /usr/bin/perl /data/snmp/bin/pkgvers.pl

and then walk the two OIDs. You should be able to spot the similarities
fairly easily.



> [pkgvers.pl is just a script that interrogates /var/sadm/pkg to get all
> the versions of pkgs].

This feels very similar to the "Installed Software" group of the
Host Resources MIB.   Does that not work for you?  (Or is the
information insufficient for your needs).



> So I'm just curious which file the 1024k limit is actually set,

1024 bytes, not 1024K, I think.
See "STRMAX" in agent/mibgroup/struct.h



>                                                        so that
> I might try and increase it even just for the purposes of this
> exercise. is this possible without any adverse effects?

No idea - suck it and see.


Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to