From: Buchan M. <bg...@st...> - 2007-12-21 07:16:35
|
On Thursday 20 December 2007 11:55:38 xbgmsharp wrote: > Hi all, > > In order to figure if it is the same bug, i would sujest. > In template directory execute: > find . -type f -name "oids" | xargs cat | grep leaf | cut -d ':' -f 2 | > tr -d ' ' | awk '{ print "snmpget -t 20 -On -v2c -c COMMUNAUTY IP " $1 > }' | sh > > It should work, this do an snmpget on all leaf oid like in my version. Except I am having problems with branch oids. > > To do it like devmon do it, it is: > find . -type f -name "oids" | xargs cat | grep leaf | tr -d ' ' | tr > '\n' ' ' | awk -F '|' '{ print "snmpget -t 20 -On -v2c -c COMMUNAUTY > IP " $1 }' | sh > > Which request all oids leaf in one request. > If yo get Tobbig error, my version fix the bug. If not, send the error > msg. Can you commit your fix in svn? If you commit it today I can test (I will be on leave after today until 2 January). > If the problem is due to snmpwalk, i would sujest do add this line: > do_log("DEBUG SNMP MSG: $SNMP_Session::errmsg",0) if $g{'debug'} > > before line 474 and 524 in the file modules/dm_snmp.pm. > > Then running devmon in devmon will print you the error msg you received > when polling. On some devices I get something like this: ERROR: snmpget xxx (Received SNMP response with error code) So, I would prefer to test your fix. Regards, Buchan |