Click or drag to resize

MessengerSendTrapV1Async(EndPoint, IPAddress, OctetString, ObjectIdentifier, GenericCode, Int32, UInt32, IListVariable, CancellationToken) Method

Sends a TRAP v1 message.

Namespace: Lextm.SharpSnmpLib.Messaging
Assembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntax
public static Task SendTrapV1Async(
	EndPoint receiver,
	IPAddress agent,
	OctetString community,
	ObjectIdentifier enterprise,
	GenericCode generic,
	int specific,
	uint timestamp,
	IList<Variable> variables,
	CancellationToken token
)

Parameters

receiver  EndPoint
Receiver.
agent  IPAddress
Agent.
community  OctetString
Community name.
enterprise  ObjectIdentifier
Enterprise OID.
generic  GenericCode
Generic code.
specific  Int32
Specific code.
timestamp  UInt32
Timestamp.
variables  IListVariable
Variable bindings.
token  CancellationToken
The cancellation token.

Return Value

Task
Remarks
This method only supports SNMP v1.
See Also