Re: Hanlder function
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 19/02/07, Porat, Dan <[email protected]> wrote: > I would like to know id it possible in an Agent , to register on a handler. > Meaning to register a specific OID on a handler function. > Upon request for this specific OID , A function will be called . Yes - that's exactly how the Net-SNMP agent works. The basic mechanism uses netsnmp_register_handler(), although depending on the type of MIB object or OID you're implementing, there may be other registration calls that use various helpers to do some/most of the work for you. > Does anyone have a code for that ? See the various example and actual implementations under 'agent/mibgroup'. It's hard to be more precise without a better idea of what type of OID you're working with. 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