Hi all, I have been pounding my head against a wall the past 24 hours and need some help. I use SNMP to call scripts on my linux server and then receive the output from the script.
After upgrading to Net-SNMP v5.4.1 yesterday everything stopped working. I now understand that I should not use "exec" anymore, but "extend" instead. This is working now, but why is Net-SNMP adding so many values to my OID? Here are an example of my output before Net-SNMP v5.4.1 using exec: snmpd.conf: exec .1.3.6.1.4.1.2021.900.50.2.2 SAR510Info /usr/local/lean/Net-SNMP-Linux.pl 2 [EMAIL PROTECTED]:~$ snmpwalk -v1 10.10.1.103 -c testing .1.3.6.1.4.1.2021.900.50.2.2 UCD-SNMP-MIB::ucdavis.900.50.2.2.1.1 = INTEGER: 1 UCD-SNMP-MIB::ucdavis.900.50.2.2.2.1 = STRING: "SAR510Info" UCD-SNMP-MIB::ucdavis.900.50.2.2.3.1 = STRING: "/usr/local/lean/Net-SNMP-Linux.pl 2" UCD-SNMP-MIB::ucdavis.900.50.2.2.100.1 = INTEGER: 0 UCD-SNMP-MIB::ucdavis.900.50.2.2.101.1 = STRING: "::::::::::::::" UCD-SNMP-MIB::ucdavis.900.50.2.2.101.2 = STRING: "/usr/local/lean/var/spool/sar510Info.txt" UCD-SNMP-MIB::ucdavis.900.50.2.2.101.3 = STRING: "::::::::::::::" UCD-SNMP-MIB::ucdavis.900.50.2.2.101.4 = STRING: "0.00" UCD-SNMP-MIB::ucdavis.900.50.2.2.101.5 = STRING: "0.00" UCD-SNMP-MIB::ucdavis.900.50.2.2.101.6 = STRING: "0.36" UCD-SNMP-MIB::ucdavis.900.50.2.2.101.7 = STRING: "99.62" UCD-SNMP-MIB::ucdavis.900.50.2.2.102.1 = INTEGER: 0 UCD-SNMP-MIB::ucdavis.900.50.2.2.103.1 = "" Here are an example of my output using Net-SNMP v5.4.1 with extend: snmpd.conf: extend .1.3.6.1.4.1.2021.900.50.2.2 SAR510Info /usr/local/lean/Net-SNMP-Linux.pl 2 [EMAIL PROTECTED]:~$ snmpwalk -v1 10.1.1.86 -c testing .1.3.6.1.4.1.2021.900.50.2.2.4 UCD-SNMP-MIB::ucdavis.900.50.2.2.4.1.2.10.83.65.82.53.49.48.73.110.102.111.1 = STRING: "::::::::::::::" UCD-SNMP-MIB::ucdavis.900.50.2.2.4.1.2.10.83.65.82.53.49.48.73.110.102.111.2 = STRING: "/usr/local/sintrex/var/spool/sar510Info.txt" UCD-SNMP-MIB::ucdavis.900.50.2.2.4.1.2.10.83.65.82.53.49.48.73.110.102.111.3 = STRING: "::::::::::::::" UCD-SNMP-MIB::ucdavis.900.50.2.2.4.1.2.10.83.65.82.53.49.48.73.110.102.111.4 = STRING: "0.00" UCD-SNMP-MIB::ucdavis.900.50.2.2.4.1.2.10.83.65.82.53.49.48.73.110.102.111.5 = STRING: "0.00" UCD-SNMP-MIB::ucdavis.900.50.2.2.4.1.2.10.83.65.82.53.49.48.73.110.102.111.6 = STRING: "0.18" UCD-SNMP-MIB::ucdavis.900.50.2.2.4.1.2.10.83.65.82.53.49.48.73.110.102.111.7 = STRING: "99.78" I have figured out that by assigning a .4 at the end of my OID I get less garbage. Now my question is as follows: What are all those values after my OID that I specified (.1.2.10.83.65.82.53.49.48.73.110.102.111)? Kind regards, Lean Cornelius ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders