SNMP Component |
The SNMP control is used to implement SNMP Management Applications and SNMP Agent Applications. (NOTE: The following is a very short description. For more information, please consult the help files that come with the respective package.) |
The control provides both encoding/decoding and transport capabilities, making the task of developing a custom SNMP agent or manager as simple as setting a few key properties and handling a few events. SNMP data, such as for instance SNMP object id-s (OID-s) are exchanged as text strings, thus further simplifying the task of handling them.
The control is activated/deactivated by first setting the LocalPort to 161 or 162, depending on whether you want to implement an SNMP agent or SNMP manager, and then setting the Active property. This property enables or disables sending or receiving. It operates completely asynchronously. Messages are sent to other agents or managers by using the Action property, and are recieved through events such as GetRequest, GetResponse, or Trap.
SNMP object ids, types, and values are provided in arrays such as ObjId, ObjType, and ObjValue, for both sent and received packets. ObjCount provides the number of elements in each of the arrays. Other packet information is provided through corresponding properties, such as Community, or RequestId, or similarly named parameters in events.
The control may behave as an SNMP agent or SNMP manager, depending on the value of the LocalPort property. If the control listens to port 161 it may act as an SNMP agent by responding to SNMP requests from SNMP managers, and sending traps through the Action property. If the LocalPort is set to 162, the control listens for SNMP traps, and may send requests to SNMP agents listening on port 161.
SNMP Traps are received through the Trap event, and may be sent through the Action property by specifying appropriate values in the various trap properties, such as TrapAgentAddress, TrapEnterprise, TrapGenericType, TrapSpecificType, and TrapTimeStamp.
This control requires a Winsock 1.1 compliant TCP/IP stack. This means that the Winsock stack installed in the system must have a version of at least 1.1. In particular, Windows 95, 98, and NT machines with Winsock 2.0 are fully supported.
PROPERTIES |
EVENTS |