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
# /usr/bin/lmstat.pl -n .1.3.6.1.4.1.9999.1.0.7
.1.3.6.1.4.1.9999.1.1.7
integer
7
 
# snmpwalk -v 1 -c public ptxslicsrv01 .1.3.6.1.4.1.9999.1.0.7
SNMPv2-SMI::enterprises.9999.1.0.7 = STRING: "DevPartner"
# snmpwalk -v 1 -c public ptxslicsrv01 .1.3.6.1.4.1.9999.1.1.7
SNMPv2-SMI::enterprises.9999.1.1.7 = INTEGER: 7
#

*** Question *** 

But what I need to do to get all those child value via snmpwalk 
Like how I can do? I am sure I need to modify my script more.


snmpwalk -v 1 -c public ptxslicsrv01 .1.3.6.1.4.1.9999.1

-Thanks in advance,
Santanu



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave
Shield
Sent: Thursday, 13 October, 2005 13:22
To: Santanu Misra
Cc: [email protected]
Subject: RE: Help with exec and pass

On Thu, 2005-10-13 at 12:03 +0200, Santanu Misra wrote:
> # lmstat.pl -n  .1.3.6.1.4.1.9999.1.101.1
> .1.3.6.1.4.1.9999.1.101.1
> string
> QAC_runtime
> .1.3.6.1.4.1.9999.1.101.2
> string
> QAD_Planning
        [snip]

In which case, it's hardly surprising that things aren't
working!  The pass-through command is expected to return
*ONE* varbind value (represented by a set of three lines).

The agent isn't expecting the whole lot!

Your script needs to look at the OID parameter passed in,
and return either the corresponding OID/type/value ('-g')
or the OID/type/value triplet for the *next* entry ('-n')

Just that one set - nothing else.

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


-----------------------------------------------------------------
        Visit our Internet site at http://www.reuters.com

To find out more about Reuters Products and Services visit 
http://www.reuters.com/productinfo 

Any views expressed in this message are those of  the  individual
sender,  except  where  the sender specifically states them to be
the views of Reuters Ltd.



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