Hiya, I'm revisiting an issue I had quite a while ago trying to retrieve all the solaris package versions installed on a box via Net-SNMP.
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, so I'm back to using exec, which has worked thus far with other stuff. I was told that exec had a 1024k buffer limit on how much data it could pass back (?), which seems to be consistent with what is happening to me when trying to do this. When I poll this oid (below), only ~74 lines of data are seen, where there should be in the order of 224ish (the number of packages installed) This is my snmpd.conf entry: exec .1.3.6.1.4.1.2021.255.2 /usr/bin/perl /data/snmp/bin/pkgvers.pl [pkgvers.pl is just a script that interrogates /var/sadm/pkg to get all the versions of pkgs]. So when I run pkgvers.pl on the command line; all 224 package versions are seen, however when polled, only 74-odd lines are seen: ~$ snmpwalk -v 2c -c s3cr3t devtest02 -O n .1.3.6.1.4.1.2021.255.2 | wc -l 74 ~$ So I'm just curious which file the 1024k limit is actually set, so that I might try and increase it even just for the purposes of this exercise. ? is this possible without any adverse effects? ta, -- Dean. ------------------------------------------------------- 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
