Re: Traps/Informs

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 22 July 2010 10:24, Gaurav Chaturvedi <[email protected]> wrote:
> Following are the functions which can be used in your case as per the
> requirement:
>
> print_objid, fprint_objid, snprint_objid

Those will return the name of the MIB object
(formatted according to the current output format settings)

For the description, you probably need to look at
    print_description, fprint_description, snprint_description

Note that you'll probably need to call
     snmp_set_save_descriptions(1);

*before* invoking init_snmp(), otherwise the MIB parsing code
will discard the description text.

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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.