Свойство | Type | Description | |
---|---|---|---|
_address | |||
_agentParameters | IAgentParameters | ||
_port | int | ||
_retry | int | ||
_timeout | int |
Méthode | Description | |
---|---|---|
Discovery ( |
Perform SNMP version 3 discovery operation. This is the first operation that needs to be performed on a newly accessed agent to retrieve agentId, agentBoots and agentTime values, critical for further authentication and privacy operations.
|
|
DiscoveryAsync ( |
Make an async discovery request for protocol version 3.
|
|
Request ( Pdu pdu, IAgentParameters agentParameters ) : |
Make SNMP Request Make SNMP request. With this method you can make blocked SNMP version 1, 2 and 3 requests of type GET, GET-NEXT, GET-BULK, SET and REPORT (request types have to compatible with the SNMP protocol version you are using). This method will pass through any exceptions thrown by parsing classes/methods so see individual packet classes, ASN.1 type classes, authentication, privacy, etc. classes for exceptions thrown. |
|
RequestAsync ( Pdu pdu, IAgentParameters agentParameters, SnmpAsyncResponse responseCallback ) : bool |
Make SNMP request. With this method you can make blocked SNMP version 1, 2 and 3 requests of type GET, GET-NEXT, GET-BULK, SET and REPORT (request types have to compatible with the SNMP protocol version you are using). This method will pass through any exceptions thrown by parsing classes/methods so see individual packet classes, ASN.1 type classes, authentication, privacy, etc. classes for exceptions thrown.
|
|
UdpTarget ( |
Constructor Initializes the class with defaults for timeout (2000ms = 2 seconds), retry (two) and agent UDP port number (161). |
|
UdpTarget ( |
Constructor.
|
Méthode | Description | |
---|---|---|
AsyncResponse ( AsyncRequestResult result, |
public Discovery ( |
||
param | ||
Résultat | bool |
public DiscoveryAsync ( |
||
param | Agent parameters | |
callback | SnmpAsyncResponse | Callback method |
Résultat | bool |
public Request ( Pdu pdu, IAgentParameters agentParameters ) : |
||
pdu | Pdu | Pdu class (do not pass ScopedPdu) |
agentParameters | IAgentParameters | Security information for the request. Use |
Résultat |
public RequestAsync ( Pdu pdu, IAgentParameters agentParameters, SnmpAsyncResponse responseCallback ) : bool | ||
pdu | Pdu | Pdu class (do not pass ScopedPdu) |
agentParameters | IAgentParameters | Security information for the request. Use |
responseCallback | SnmpAsyncResponse | Callback that receives the result of the async operation. |
Résultat | bool |
public UdpTarget ( |
||
peer | Agent IP address | |
Résultat | System |
public UdpTarget ( |
||
peer | SNMP peer IP address | |
port | int | SNMP peer UDP port number |
timeout | int | SNMP peer timeout in milliseconds |
retry | int | SNMP peer maximum retires setting. Value of 0 will result in a single request with no retries. |
Résultat | System |
protected IPAddress,System.Net _address | ||
Résultat |
protected IAgentParameters _agentParameters | ||
Résultat | IAgentParameters |