RE: Hanlder function

"Porat, Dan" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <095758746BB502459CAB185FA3FFE6418806B3@IsrExch01.israel.polycom.com>
Could you please point me to the samples ?
Thanks


                        Best Regards

                                  

________________________________

Dan Porat

Computer and Software Engineer

Polycom Israel, Ltd.

94 Derech Em Hamoshavot, POB 3654, Petach Tikva 49130, Israel

direct: +972.3.925.1345

cell:   +972.54.7722327

fax:    +972.3.921.1571

Connect. Any Way You Want.

This communication (including any attachments) may contain privileged or
confidential information of Polycom and is intended for a specific
individual. If you are not the intended recipient, you should delete
this communication, including any attachments without reading or saving
them in any manner, and you are hereby notified that any disclosure,
copying, or distribution of this communication, or the taking of any
action based on it, is strictly prohibited..


-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Dave Shield
Sent: Monday, February 19, 2007 4:47 PM
To: Porat, Dan
Cc: [email protected]
Subject: Re: Hanlder function

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.