Dave Shield wrote:
The code appears to be ok, but the string isn't registered:
$ snmpget -v2c -c public localhost 1.3.6.1.4.1.10.1.2
SNMPv2-SMI::enterprises.10.1.2 = No Such Instance currently exists at this OID
Is this the same OID that you gave in the netsnmp_create_handler_registration() call?
Remember that this is registering a scalar object, so you'll need to add the instance subidentifier. Try snmpget -v2c -c public localhost 1.3.6.1.4.1.10.1.2.0
Dave
Thanks, Dave. Ok, shame on me, my error was stupid. :-) I hope this is not:
$ snmpget -v2c -c public rosalinda 1.3.6.1.4.1.10.1.2.0
SNMPv2-SMI::enterprises.10.1.2.0 = ""
$ snmpset -v2c -c foderosa rosalinda 1.3.6.1.4.1.10.1.2.0 s "1234567890"
Error in packet.
Reason: wrongLength (The set value has an illegal length from what the agent expects)
Grings
------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ 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
