PowerSNMP for .NET
CreateResponse Method (SnmpBase)




The received RequestMessage.
Creates a ResponseMessage from the RequestMessage received. Supports SNMPv3 discovery packets by returning a ReportMessage that should be sent to the initiator.
Syntax
Public Function CreateResponse( _
   ByVal request As RequestMessage _
) As ResponseMessage
Dim instance As SnmpBase
Dim request As RequestMessage
Dim value As ResponseMessage
 
value = instance.CreateResponse(request)
public ResponseMessage CreateResponse( 
   RequestMessage request
)
public: ResponseMessage* CreateResponse( 
   RequestMessage* request
) 
public:
ResponseMessage^ CreateResponse( 
   RequestMessage^ request
) 

Parameters

request
The received RequestMessage.

Return Value

The ResponseMessage created based on the RequestMessage.
Remarks

An SNMPv3 ReportMessage is returned when:
1. The engine ID of the request does not match Security.AuthoritativeEngine.Id (a usmStatsUnknownEngineIDs variable is added to the variable bindings).
2. Authentication is requested and the time window has not been synchronized (a usmStatsNotInTimeWindows variable is added to the variable bindings).
3. The received username is not present in Security.AuthoritativeEngine.Users or Security.TrapUsers (a usmStatsUnknownUserNames variable is added to the variable bindings).
4. The received username is present, but the security level in the packet does not match the security level in the AuthoritativeEngine (a usmStatsUnsupportedSecLevels variable is added to the variable bindings).
5. Authentication failed because the computed digest failed to match (a usmStatsWrongDigests variable is added to the variable bindings).

No response is desired if the received request could not be decrypted with the specified password. A null is returned in this case.

See Also

Reference

SnmpBase Class
SnmpBase Members


PowerSNMP for .NET Documentation Version 5.0
© 2021 Dart Communications. All Rights Reserved.
Send comments on this topic