On 04/10/06, Mihail Peter <[EMAIL PROTECTED]> wrote:
> is there any functions for registering a string scalar, like you have
> for an integer:

The routine netsnmp_register_watched_scalar() will handle MIB objects
of *any* type
(including string and OID values), not just integer-based objects.

It also handles invalid instances correctly - unlike the register_int family.

This is perhaps not quite as simple as the integer-instance routines,
but still provides a simple way to monitor scalar objects.

See _register_extend() in the file agent/mibgroup/agent/extend.c for
an example of how this routine can be used.

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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