[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ]
2009/2/27 anand chandragandhi <chandragandhi.an...@gmail.com>: > I am wiriting a C code level interface. That's what I suspected. > I can't use NETSNMP_DS_LIB_PRINT_BARE_VALUE as parmaneter to (print_variable > or print_value API's) Correct. That's not how this value is used. But that isn't what I suggested you do: >> see ...the option parsing code in snmplib/mib.c >> In particular, look at using the tokens >> NETSNMP_DS_LIB_PRINT_BARE_VALUE and >> NETSNMP_DS_LIB_QUICK_PRINT The code in question is the following block: char * snmp_out_toggle_options(char *options) { while (*options) { switch (*options++) { : case 'q': netsnmp_ds_toggle_boolean( NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_QUICK_PRINT); break; case 'v': netsnmp_ds_toggle_boolean( NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_PRINT_BARE_VALUE); break; : } That is how you would set the library up to print the value alone. Dave ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ 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