PowerSNMP for .NET
GetDevicesFromARPTables(SnmpVersion,String,Security,Int32,IPEndPoint) Method




SNMP version of the messages to send.
SNMP community of the messages to send.
SNMPv3 credentials for target. Use null when version is not SnmpVersion.Three.
The amount of time (in milliseconds) each message will be given to receive a response.
IPEndPoint of the router/device hosting the table(s).
Gets target's ARP table(s) IP addresses via SNMP, and returns a list of Devices representing them.
Syntax
Public Overloads Function GetDevicesFromARPTables( _
   ByVal version As SnmpVersion, _
   ByVal community As String, _
   ByVal security As Security, _
   ByVal timeout As Integer, _
   ByVal target As IPEndPoint _
) As List(Of Device)
Dim instance As Devices
Dim version As SnmpVersion
Dim community As String
Dim security As Security
Dim timeout As Integer
Dim target As IPEndPoint
Dim value As List(Of Device)
 
value = instance.GetDevicesFromARPTables(version, community, security, timeout, target)

Parameters

version
SNMP version of the messages to send.
community
SNMP community of the messages to send.
security
SNMPv3 credentials for target. Use null when version is not SnmpVersion.Three.
timeout
The amount of time (in milliseconds) each message will be given to receive a response.
target
IPEndPoint of the router/device hosting the table(s).

Return Value

A list of Devices that were listed in the target's ARP tables.
Remarks

Queries atTable, ipNetToMediaTable, and ipNetToPhysicalTable to retrieve ARP table IP addresses. Does not check if the IPs listed in the tables respond to pings or SNMP GET messages.

Uses GetNext for SnmpVersion.One, uses GetBulk otherwise.

Uses an IPv6 dual-mode socket. Requires a Vista or newer operating system.

If Aborted before all three tables are queried, returns an empty list.

See Also

Reference

Devices Class
Devices Members
Overload List


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