Thank you Dave,
this exactly what i wanted.
snprint_objid suited me the best for this purpose, as i was able to assign
buffer output to variable.
In case others are interested how this is done:
static char buf[SPRINT_MAX_LEN];
int res = snprint_objid(buf,sizeof(buf)-1,oid,oid_length);
buf[sizeof
On 31 January 2012 11:28, opium wrote:
> Are there any C API functions which would return textual representation of
> OID ?
$ man mib_api
:
Output
print_objid will take an object identifier (as returned by read_objid,
snmp_parse_oid or get_module_node), and prints the
Are there any C API functions which would return textual representation of OID ?
If there's not, what is the best approach to do this ?
in other words this is what i'm trying to acomplish:
snmptranslate -OS .1.3.6.1.2.1.2.2.1.6 => IF-MIB::ifPhysAddress
--