PowerSNMP for .NET
UpdateSnmpStatus(List<Device>,IPEndPoint,Boolean,Int32,X509Certificate2Collection) Method




A list of Devices to scan.
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.
The amount of time (in milliseconds) each message will be given to receive a response.
The certificate chain to use with DTLS connections. Use null if every Transport is UDP.
Updates Device.SnmpStatus for each Device in devices.
Syntax
Public Overloads Function UpdateSnmpStatus( _
   ByVal devices As List(Of Device), _
   ByVal localEP As IPEndPoint, _
   ByVal dualMode As Boolean, _
   ByVal timeout As Integer, _
   ByVal clientCertificateChain As X509Certificate2Collection _
) As List(Of Device)
Dim instance As Devices
Dim devices As List(Of Device)
Dim localEP As IPEndPoint
Dim dualMode As Boolean
Dim timeout As Integer
Dim clientCertificateChain As X509Certificate2Collection
Dim value As List(Of Device)
 
value = instance.UpdateSnmpStatus(devices, localEP, dualMode, timeout, clientCertificateChain)

Parameters

devices
A list of Devices to scan.
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.
timeout
The amount of time (in milliseconds) each message will be given to receive a response.
clientCertificateChain
The certificate chain to use with DTLS connections. Use null if every Transport is UDP.

Return Value

The list of devices with updated Device.SnmpStatus.
Remarks

If localEP.AddressFamily does not match Device.Endpoint.Address.AddressFamily, or if Transport is DTLS but no clientCertificateChain is provided, Device.SnmpStatus is set to DeviceStatus.InvalidInterface.

If Aborted before all devices are queried, the returned list will only be updated up to the most recent queried Device.

All Agent certificates are accepted regardless of validity.

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