Construct and send SNMP v1 Trap

Namespace: SnmpSharpNet
Assembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.1.0 (0.9.1)

Syntax

C#
public void SendV1Trap(
	IpAddress receiver,
	int receiverPort,
	string community,
	Oid senderSysObjectID,
	IpAddress senderIpAdress,
	int genericTrap,
	int specificTrap,
	uint senderUpTime,
	VbCollection varList
)
Visual Basic
Public Sub SendV1Trap ( _
	receiver As IpAddress, _
	receiverPort As Integer, _
	community As String, _
	senderSysObjectID As Oid, _
	senderIpAdress As IpAddress, _
	genericTrap As Integer, _
	specificTrap As Integer, _
	senderUpTime As UInteger, _
	varList As VbCollection _
)
Visual C++
public:
void SendV1Trap(
	IpAddress^ receiver, 
	int receiverPort, 
	String^ community, 
	Oid^ senderSysObjectID, 
	IpAddress^ senderIpAdress, 
	int genericTrap, 
	int specificTrap, 
	unsigned int senderUpTime, 
	VbCollection^ varList
)

Parameters

receiver
Type: SnmpSharpNet..::..IpAddress
Receiver IP address
receiverPort
Type: System..::..Int32
Receiver UDP port number
community
Type: System..::..String
SNMP community name
senderSysObjectID
Type: SnmpSharpNet..::..Oid
Senders sysObjectID
senderIpAdress
Type: SnmpSharpNet..::..IpAddress
Sender IP address
genericTrap
Type: System..::..Int32
Generic trap code
specificTrap
Type: System..::..Int32
Specific trap code
senderUpTime
Type: System..::..UInt32
Senders sysUpTime
varList
Type: SnmpSharpNet..::..VbCollection
Variable binding list

See Also