On 30 March 2010 15:30, Thomas Andrews <[email protected]> wrote:
> I can now get my_string using a GET but I get this warning when I do so:
>
>   NET-SNMP-EXAMPLES-MIB::netSnmpExampleString = Wrong Type (should be
>   INTEGER): STRING: "bla bla bla"
>
> What am I doing wrong here? Does netsnmp_register_watched_scalar() only
> work with INTEGERs ??

No - it works with any type of MIB object.

If you look closely at the error message, you'll see that the agent
*is* returning a string value, but the client (snmpget) is expecting
an INTEGER.   Though I don't know why!

In fact, the correct response to the GET request you're giving
should actually be "noSuchName" (v1) or "noSuchInstance (v2).
I'm not sure why it's returning a value instead.

What does
   snmpget -v1 -c private localhost netSnmpExampleString.0
          report?

Dave

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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