Dear Sirs,
I installed net-snmp 5.1.1 which I downloaded from sunfreeware for Solaris 9.
The pass commandof the configuration file for the snmpd looks like:
# grep pass /usr/local/share/snmp/snmpd.conf
pass .1.3.6.1.4.1.13069.20.3.2 /usr/local/share/snmp/diveoBackup/robotTable.sh
pass .1.3.6.1.4.1.13069.20.3.3 /usr/local/share/snmp/diveoBackup/robotHeads.sh
pass .1.3.6.1.4.1.13069.20.3.4 /usr/local/share/snmp/diveoBackup/robotHeads.sh
If the script is called from the command line, it seems to work fine. Please
see the output:
# ./robotHeads.sh -g .1.3.6.1.4.1.13069.20.3.3.1.2.1
.1.3.6.1.4.1.13069.20.3.3.1.2.1
integer
0
# ./robotHeads.sh -s .1.3.6.1.4.1.13069.20.3.3.1.2.1 i 111
# ./robotHeads.sh -g .1.3.6.1.4.1.13069.20.3.3.1.2.1
.1.3.6.1.4.1.13069.20.3.3.1.2.1
integer
111
#
If the script is called from the agent, the output looks like:
# /usr/local/bin/snmpget -v1 -c 123 localhost .1.3.6.1.4.1.13069.20.3.3.1.2.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises.13069.20.3.3.1.2.1
#
Just for a test I inserted the following 2 lines as the first commands at the
beginning of the script:
/usr/bin/echo "${2}\ninteger\n11"
exit 0
Please see the output calling the script from the agent:
# /usr/local/bin/snmpget -v1 -c 123 localhost .1.3.6.1.4.1.13069.20.3.3.1.2.1
SNMPv2-SMI::enterprises.13069.20.3.3.1.2.1 = INTEGER: 11
#
I found some information about conflicting libraries and renamed the snmp
libraries in the /usr/lib directory. Please see the following aoutput:
# ls -l /usr/lib/*snmp*
lrwxrwxrwx 1 root root 17 Jan 27 12:47 /usr/lib/_x_libssasnmp.so
-> ./libssasnmp.so.1
-rwxr-xr-x 1 root bin 159792 Jun 18 2004
/usr/lib/_x_libssasnmp.so.1
-rw-r--r-- 1 root bin 262 Apr 6 2002 /usr/lib/_x_llib-lssasnmp
-rw-r--r-- 1 root bin 9764 Apr 6 2002
/usr/lib/_x_llib-lssasnmp.ln
/usr/lib/snmp:
total 506
-rwxr-xr-x 1 root sys 31336 Apr 15 2002 mdlogd
-rwxr-xr-x 1 root sys 95292 Jun 18 2004 mibiisa
-rwxr-xr-x 1 root sys 121464 Jun 18 2004 snmpdx
# echo $LD_LIBRARY_PATH
/usr/lib:/usr/local/lib:/usr/local/ssl/lib
#
Does someone know about a timeout configuration or some other wrong
configuration? Is it a bug? The script worked already correctly with netsnmp
5.0.7 under Solaris 9.
Thank you very much for your help.
Best regards,
Thomas
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders