On Thu, Mar 20, 2014 at 03:01:21PM +0000, Pentasuglia, Corey wrote:
> Thanks again for the response Niels. I hope you don't mind me throwing
> one more at you. Is there a good way to take the value/values that are
> returned and convert them into strings (if they are of different snmp
> types)? Given the example below it seems like I'd have to have a case
> statement, but is there an easier way?

man netsnmp_varbind_api

You probably want snprint_variable or snprint_value.

/Niels

-- 
Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to