Hi,
I'm using net-snmp v 5.1.1 on solaris, and i got some problems with the
pass-through method.
In my snmpd.conf, I have added the following line:
"pass .1.3.6.1.4.1.1368 /root/passtestbis"
When I try to do a snmpget with the following line command, :
"snmpget -v 1 -c public myaddressip .1.3.6.1.4.1.1368.2231.1.1.1.7"
Sometimes I have the good returned value,
sometimes it doesn't work and the snmpget command returned:
"Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: IADR-MIB::idcsManageSupervision"
The problem is only with snmpget, snmpset always works.
I have traced my called pass script, and It is always called.
The problem seems to be between my snmpd agent and my script.
Here is the -g process in my pass script:
"while getopts :g:s: argument
do
case $argument in
g)
MIB=$OPTARG
echo $MIB
echo integer
VALUE=`cat OID_VALUE`
echo 1
;;
s)
MIB=$OPTARG
TYPE=$3
VALUE=$4
;;
*)
echo "NONE"
;;
esac
done
This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the person to whom
it is addressed. If you are not the intended recipient, you are not authorized
to read, print, retain, copy, disseminate, distribute, or use this message or
any part thereof. If you receive this message in error, please notify the
sender immediately and delete all copies of this message.
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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