Have you tried calling snmp_set_save_descriptions(1) before initializing 
net-snmp?

  Bill


> On Oct 25, 2014, at 3:09 AM, ganeshyell...@bel.co.in 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 supp...@bel.co.in 
> immediately and destroy all copies of this message and any attachments. 
> ------------------------------------------------------------------------------
> _______________________________________________
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> 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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to