When this SNMP protocol adaptor is started it creates a datagram socket and is able to receive requests and send traps or inform requests. When it is stopped, the socket is closed and neither requests and nor traps/inform request are processed.
The default port number of the socket is 161. This default value can be changed by specifying a port number:
The SNMP protocol adaptor supports versions 1 and 2 of the SNMP protocol in a stateless way: when it receives a v1 request, it replies with a v1 response, when it receives a v2 request it replies with a v2 response.
The method {@link #snmpV1Trap snmpV1Trap} sends traps using SNMP v1format. The method {@link #snmpV2Trap snmpV2Trap} sends traps using SNMP v2 format.The method {@link #snmpInformRequest snmpInformRequest} sends informrequests using SNMP v2 format.
To receive data packets, the SNMP protocol adaptor uses a buffer which size can be configured using the property bufferSize
(default value is 1024). Packets which do not fit into the buffer are rejected. Increasing bufferSize
allows the exchange of bigger packets. However, the underlying networking system may impose a limit on the size of UDP packets. Packets which size exceed this limit will be rejected, no matter what the value of bufferSize
actually is.
An SNMP protocol adaptor may serve several managers concurrently. The number of concurrent managers can be limited using the property maxActiveClientCount
.
The SNMP protocol adaptor specifies a default value (10) for the maxActiveClientCount
property. When the adaptor is stopped, the active requests are interrupted and an error result is sent to the managers.
This API is a Sun Microsystems internal API and is subject to change without notice.
|
|
|
|