PowerSNMP for .NET
DiscoverSnmp(SnmpVersion,String,String,Int32,Transport,X509Certificate2Collection) Method




SNMP version of the messages to send.
SNMP community of the messages to send.
IP address range to discover SNMP Agents across.
The amount of time (in milliseconds) each GET message will be given to receive a response.
Specifies the Transport layer to use.
The certificate chain to use with DTLS connections. Use null when transport is UDP.
Discovers SNMP Agents that respond to a GET message or initial SNMPv3 discovery within ipAddressRange on the default port 161, or 10161 when transport is UDP.
Syntax
Public Overloads Function DiscoverSnmp( _
   ByVal version As SnmpVersion, _
   ByVal community As String, _
   ByVal ipAddressRange As String, _
   ByVal timeout As Integer, _
   ByVal transport As Transport, _
   ByVal clientCertificateChain As X509Certificate2Collection _
) As List(Of Device)
Dim instance As Devices
Dim version As SnmpVersion
Dim community As String
Dim ipAddressRange As String
Dim timeout As Integer
Dim transport As Transport
Dim clientCertificateChain As X509Certificate2Collection
Dim value As List(Of Device)
 
value = instance.DiscoverSnmp(version, community, ipAddressRange, timeout, transport, clientCertificateChain)

Parameters

version
SNMP version of the messages to send.
community
SNMP community of the messages to send.
ipAddressRange
IP address range to discover SNMP Agents across.
timeout
The amount of time (in milliseconds) each GET message will be given to receive a response.
transport
Specifies the Transport layer to use.
clientCertificateChain
The certificate chain to use with DTLS connections. Use null when transport is UDP.

Return Value

A list of Devices that responded to the SNMP GET message.
Remarks

ipAddressRange supports formats such as: "192.168.0.0/24", "192.168.0.0/255.255.255.0", "192.168.0.0-192.168.0.10", "192.168.0.0-10", and IPv6.

Agents on non-standard ports may be added to the list manually.

If Abort() is called, this method returns all devices previously discovered by the method.

All Agent certificates are accepted regardless of validity.

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