Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Other versions of this page are also available for the following:
Windows Mobile Not Supported Windows Embedded CE Supported
8/28/2008

You can use the SnmpTfx framework to bypass the need to write the intermediate-level code between the Get-PDU and Set-PDU for individual SNMP variables and the core SNMP master-agent code.

To implement the SnmpTfx framework
  1. Create a master structure that defines all of the AsnAnyvariables that are used in the MIB to generate the access/set buffers for extension-agent MIB actions.

  2. Define the necessary gb_and sb_variables, so that they correspond to the master structure.

    Because the master agent is single-threaded with respect to manager requests, the sb_and gb_variables can share the same buffer.

  3. Define Getand Setoperations for all of the variables, and define gf _and sf _symbols for all of the extension-agent MIB variables that require Getand Setoperations.

    When designing the structure of the extension agent, you should define only one or two functions, and then use #definestatements. This way, you can ensure that all of the MIB variable Getand Setoperations use the same functions.

  4. Define all of the OIDs for the MIB variables and tables in the extension agent, and define the root OID of the extension agent.

  5. Lay out the SnmpMibEntryarray in the order of the MIB definition for the extension agent.

    The entries in this array consist of MIB_ variable_type_xx , MIB_TABLE_ROOT, and MIB_TABLE_ENTRYmacros, and must be terminated by using a MIB_ENDmacro.

  6. Define the SnmpMibTablearray.

    Each entry consists of one MIB_TABLEmacro, which corresponds to one table in the extension-agent MIB.

  7. Define the SnmpMibViewstructure by using the MIB_VIEWmacro.

See Also