Re: Printing DESCRIPTION of OID

Bill Fenner <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Have you tried calling snmp_set_save_descriptions(1) before initializing net-snmp?

  Bill


> On Oct 25, 2014, at 3:09 AM, [email protected] wrote:
> 
> Hi,
> 
> I am using net-snmp.5.7.2 on windows 7.
> 
> I tried to print oid description inside the funtion which is defined in mib.c:
> static void
> print_subtree_oid_report(FILE * f, struct tree *tree, int count)
> {
> struct tree   
> *tp;
> ....
> 
> if (print_subtree_oid_report_suffix) {
> //here i printed  }
> 
> ......
> }
> 
> When i tried to print the address of
> description variable i.e. tp->description,
> it is prining zero.
> 
> How could i get
> the description of a given oid?
> 
> Looking forward to the valuable answer.
> 
> regards,
> Ganesh Y
> 
> 
> 
> Every Sheets of paper is made from a tree.. Save trees... Conserve Trees.... Go Green .... Don't print this email or any Files unless you really need to!!!! 
> Confidentiality Notice 
> The information contained in this electronic message and any attachments to this 
> message are intended for the exclusive use of the addressee(s) and may contain 
> confidential or privileged information. If you are not the intended recipient, 
> please notify the sender at Bharat Electronics or [email protected] 
> immediately and destroy all copies of this message and any attachments. 
> ------------------------------------------------------------------------------
> _______________________________________________
> 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

------------------------------------------------------------------------------

_______________________________________________
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.