On Fri, 2005-10-14 at 16:17 +0200, Santanu Misra wrote:
> Well some break through. I made  changes and make sure with  -g and - n
> correct OID I get it right value and my script knows where the OID tree
> end. 
> So here are the outputs
> 
> # /usr/bin/lmstat.pl -n .1.3.6.1.4.1.9999.1.1.7
> wrong oid passed with option -n

        $ man snmpd.conf

PASS-THROUGH CONTROL
   pass MIBOID EXEC

      EXEC -g MIBOID
      EXEC -n MIBOID

   To indicate that the script is unable to comply with the request
   due to an end-of-mib condition or an invalid request, simply exit
   and return no output to stdout at all.
       ^^^^^^^^^^^^^^^^^^^^^^^^^^


"wrong oid passed with option -n" is *NOT* the same as "no output"



> *** Question *** 
> 
> But what I need to do to get all those child value via snmpwalk 

Follow the instructions in snmpd.conf.

I'd also suggest you try testing with "snmpget" and
"snmpgetnext" rather than "snmpwalk"

Dave


-------------------------------------------------------
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

Reply via email to