PowerSNMP for .NET
GetDevicesFromARPTables(SnmpVersion,String,Security,Int32,IPEndPoint,IPEndPoint,Boolean) 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).
The local IPEndPoint the socket should bind to.
Specifies whether the socket should be a dual mode IPv6 socket. Only supported on Vista and newer operating systems.
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, _
   ByVal localEP As IPEndPoint, _
   ByVal dualMode As Boolean _
) 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 localEP As IPEndPoint
Dim dualMode As Boolean
Dim value As List(Of Device)
 
value = instance.GetDevicesFromARPTables(version, community, security, timeout, target, localEP, dualMode)

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).
localEP
The local IPEndPoint the socket should bind to.
dualMode
Specifies whether the socket should be a dual mode IPv6 socket. Only supported on Vista and newer operating systems.

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.

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

localEP.AddressFamily must match the AddressFamily of the target SNMP entity unless dualMode is true and localEP.Address is IPAddress.IPv6Any or an IPv4-mapped IPv6 address. If dual mode (simultaneous IPv4 and IPv6) socket operation is desired, use IPAddress.IPv6Any (for all IPv4 and IPv6 interfaces) or an IPv4-mapped IPv6 address for the localEP address, and true for the dualMode argument. An IPv4-mapped IPv6 address is the IPv4 address of a network interface preceded by "::ffff:". Ex: ::ffff:192.168.1.1.

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