Re: how to getting numeric form of oid
On 17/04/07, Erik Earle <[EMAIL PROTECTED]> wrote: > char buf[SPRINT_MAX_LEN]; > snprint_objid(buf, sizeof(buf), var->name, > var->name_length); > DEBUGMSGTL(("agenty", " oidStr: %s\n", buf)); > the oidStr = > "SNMPv2-SMI::enterprises.7755.1000.42.
how to getting numeric form of oid
The below (mostly taken from one of the examples) handles requests. int request_handler(netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) { while (request
