Hi to all
I'm trying to run in Ubuntu 9.10 OS the subagent example provided at link
http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent
I have downloaded the example-demon files and compiled them using the
included makefile.
When I start the example-demon , it correctly connect to the master agent
and run.
I can also get the NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0 variable,
as described in the example.
However, when I try to set the variable using the command
snmpset localhost NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0 = 5,
I get this error message :
Error in packet.
Reason: (badValue) The value given has the wrong type or length.
Failed object: NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0
Is someone knowing what could be the cause of this problem?
Before to compile the subagent I have downloaded the NET-SNMP source project
5.6.1.1 and installed it following procedure described at link.
http://www.net-snmp.org/docs/INSTALL.html
The snmpd.conf file is configured as per suggestions provided in the example
page.
Is there any other configuration I need to do in order to be able to write
values to this OID?
Thank you in advance for your support and best regards
Emanuele
-------------------
Emanuele Scalco
Software Engineer - GDS / Global Display Solutions Spa
Via Tezze, 20/A - 36073 Cornedo (Vicenza) - Italy
Phone: +39 0445 428939
Fax: +39 0445 428992
E-mail: <mailto:[email protected]> [email protected]
This email and any attachments may contain privileged and confidential
information that is intended for the recipient only. If you have received
this transmission in error, please notify the sender by reply and delete it
from your system. You may not copy, nor distribute, nor disclose its
contents.
Go Green! Please do not print this e-mail unless it is completely
necessary.
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
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