2010/1/11 Kristoff Bonne <[email protected]>:
> Using the C API from net-snmp, how can I print an object in its
> "decimal" format?
>
> When I use snprint_objid, it returns something like
> "SNMPv2-SMI::enterprises.9.1.46", I would to have it as
> "1.3.6.1.4.1.9.1.46".

Call
    netsnmp_ds_set_int(NETSNMP_DS_LIBRARY_ID,
         NETSNMP_DS_LIB_OID_OUTPUT_FORMAT,
         NETSNMP_OID_OUTPUT_NUMERIC);

before printing the OID.

Dave

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
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

Reply via email to