truncated response from poll
Dean <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hiya, Apologies if you received this post twice. It was sent the first time from an unsubscribed address. I'm in the process of trying to get Solaris package information from net-snmp (5.2.1), including the package version. I was previously only getting package name (hrSWInstalledName) as the package version was not available. It's probably not the best method, but to get around this, I added two 'exec' statements to snmpd.conf, pointing to very simple perl scripts, that [when polled] returned a each package names each as a string, and package versions (also a string) - examples at bottom. The problem I'm seeing is basically that the information returned is never complete, it seems to truncate roughly half way through. e.g the sever has 221 packages installed, but snmp response for package names only shows to about 115, and package version only gets to 68. I'm fairly certain this is due to a buffer size limit, or cache limit, but I'm not sure where it would be increased. I have bumped up some limits the configure script had options for (plus I tried a few in various header files, that I can't remember), but none worked anyway, so they're all back to default. polling for package name: dean@bluetongue: ~ > snmpwalk -v 2c -c public 10.1.1.1 <http://10.1.1.1> .1.3.6.1.4.1.2021.200 UCD-SNMP-MIB::ucdavis.200.1.1 = INTEGER: 1 UCD-SNMP-MIB::ucdavis.200.2.1 = STRING: "/usr/bin/perl" UCD-SNMP-MIB::ucdavis.200.3.1 = STRING: "/data/snmp/bin/pkgname.pl" UCD-SNMP-MIB::ucdavis.200.100.1 = INTEGER: 0 UCD-SNMP-MIB::ucdavis.200.101.1 = STRING: "BPFDrsync" UCD-SNMP-MIB::ucdavis.200.101.2 = STRING: "BPbigpondlive" UCD-SNMP-MIB::ucdavis.200.101.3 = STRING: "BPbind8c" UCD-SNMP-MIB::ucdavis.200.101.4 = STRING: "BPnetsnmp" UCD-SNMP-MIB::ucdavis.200.101.5 = STRING: "BPsshkeys" UCD-SNMP-MIB::ucdavis.200.101.6 = STRING: "BPtrapinterceptor" UCD-SNMP-MIB::ucdavis.200.101.7 = STRING: "CSWpkgget" UCD-SNMP-MIB::ucdavis.200.101.8 = STRING: "HParm" UCD-SNMP-MIB::ucdavis.200.101.9 = STRING: "HPlwdce" UCD-SNMP-MIB::ucdavis.200.101.10 = STRING: "HPmwa" UCD-SNMP-MIB::ucdavis.200.101.11 = STRING: "OPC" UCD-SNMP-MIB::ucdavis.200.101.12 = STRING: "OPCCOMM" UCD-SNMP-MIB::ucdavis.200.101.13 = STRING: "OPCPERF" UCD-SNMP-MIB::ucdavis.200.101.14 = STRING: "SMCarc" [snip] UCD-SNMP-MIB::ucdavis.200.101.115 = STRING: "SUNWkey" UCD-SNMP-MIB::ucdavis.200.102.1 = INTEGER: 0 UCD-SNMP-MIB::ucdavis.200.103.1 = "" <- end of response package version: dean@bluetongue: ~ > snmpwalk -v 2c -c public 10.1.1.1 <http://10.1.1.1> .1.3.6.1.4.1.2021.205 UCD-SNMP-MIB::ucdavis.205.1.1 = INTEGER: 1 UCD-SNMP-MIB::ucdavis.205.2.1 = STRING: "/usr/bin/perl" UCD-SNMP-MIB::ucdavis.205.3.1 = STRING: "/data/snmp/bin/pkgvers.pl" UCD-SNMP-MIB::ucdavis.205.100.1 = INTEGER: 0 UCD-SNMP-MIB::ucdavis.205.101.1 = STRING: "2.6.4" UCD-SNMP-MIB::ucdavis.205.101.2 = STRING: "1.6" UCD-SNMP-MIB::ucdavis.205.101.3 = STRING: "8.4.5_3" UCD-SNMP-MIB::ucdavis.205.101.4 = STRING: "1.18" UCD-SNMP-MIB::ucdavis.205.101.5 = STRING: "2.1" UCD-SNMP-MIB::ucdavis.205.101.6 = STRING: "1.5" UCD-SNMP-MIB::ucdavis.205.101.7 = STRING: "3.3,REV=2005.03.29" UCD-SNMP-MIB::ucdavis.205.101.8 = STRING: "C.03.82.00" UCD-SNMP-MIB::ucdavis.205.101.9 = STRING: "1.1.4.22.1 (HP special version)" UCD-SNMP-MIB::ucdavis.205.101.10 = STRING: "C.03.82.00" UCD-SNMP-MIB::ucdavis.205.101.11 = STRING: "A.7.25" UCD-SNMP-MIB::ucdavis.205.101.12 = STRING: "A.7.14" [snip] UCD-SNMP-MIB::ucdavis.205.101.68 = STRING: "11.9" UCD-SNMP-MIB::ucdavis.205.102.1 = INTEGER: 0 UCD-SNMP-MIB::ucdavis.205.103.1 = "" < - end of response ------------------------------------------------------- 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