Build SNMP discovery response packet.
Namespace:
SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.2.0 (0.5.2.0)
Syntax
| C# |
|---|
public static SnmpV3Packet DiscoveryResponse( int messageId, int requestId, OctetString engineId, int engineBoots, int engineTime, int unknownEngineIdCount ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function DiscoveryResponse ( _ messageId As Integer, _ requestId As Integer, _ engineId As OctetString, _ engineBoots As Integer, _ engineTime As Integer, _ unknownEngineIdCount As Integer _ ) As SnmpV3Packet |
| Visual C++ |
|---|
public: static SnmpV3Packet^ DiscoveryResponse( int messageId, int requestId, OctetString^ engineId, int engineBoots, int engineTime, int unknownEngineIdCount ) |
Parameters
- messageId
- Type: System..::.Int32
Message id from the received discovery packet
- requestId
- Type: System..::.Int32
Request id from the received discovery packets Pdu
- engineId
- Type: SnmpSharpNet..::.OctetString
Local engine id
- engineBoots
- Type: System..::.Int32
Number of times local SNMP engine has been restarted
- engineTime
- Type: System..::.Int32
Time since the engine was started in seconds
- unknownEngineIdCount
- Type: System..::.Int32
Number of discovery packets received by the local SNMP engine
Return Value
SNMP v3 packet properly formatted as a response to a discovery request
Remarks
Manager application has to be able to respond to discovery requests to be able to handle
SNMPv3 INFORM notifications.
In an INFORM packet, engineId value is set to the manager stations id (unlike all other requests
where agent is the authoritative SNMP engine). For the agent to discover appropriate manager engine
id, boots and time values (required for authentication and privacy packet handling), manager has to
be able to respond to the discovery request.