Patent ID: 7657635

Claim:
A method performed by a network device including a data store modeled by an internal data format definition, the method comprising: at an instrumentation module of a network device, receiving a stub routine from a compiler, the stub routine corresponding to a network management protocol request, accessing a mapping of the internal data format definition to a management information base (MIB) model structure of the compiler, wherein objects of the MIB model structure are mapped with respective objects of the internal data format definition, and automatically generating an MIB routine from the stub routine, including inserting into the stub routine instrumentation code based on the mapping of the internal data format definition with the MIB model structure; providing the generated MIB routine to a network management protocol agent of the network device; receiving at the network device a network management protocol request; and in response to the receiving the network management protocol request, the network management protocol agent processing the network management protocol request, including parsing the network management protocol request to extract a binary payload, based on the extracted binary payload, executing the generated MIB routine, and with the executing MIB routine, converting the extracted binary payload into a plurality of markup language tags and content embedded in the markup language tags, and sending the plurality of markup language tags and content embedded in the markup language tags to an application of the network device in a request to access a management object of the data store.