RE: Help with exec and pass

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.