> 
>    If I am to call netsnmp_create_handler_registration for a scalar of type
> DisplayString, what is the instance handler that this scalar should be
> registered with?

If you're registering a scalar object, then use
                netsnmp_register_scalaer()
rather than
                netsnmp_register_instance()

This handles invalid requests properly (i.e. a GET on myScalar.1 gives
noSuchInstance rather than noSuchObject)


For a scalar object that is "watching" an internal variable,
then use
                netsnmp_register_scalar_watcher()

This can cope with watching string buffers as well as integers.
(with a bit of fiddling for writeable variable-size values).


A search on the mailing list archives should give some examples
of how to use this.

Dave



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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