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




SNMP version of the messages to send.
SNMP community of the messages to send.
Lower end of the IP address range to start with.
Higher end of the IP address range to end with.
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 between lowIP and highIP 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 lowIP As IPAddress, _
   ByVal highIP As IPAddress, _
   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 lowIP As IPAddress
Dim highIP As IPAddress
Dim timeout As Integer
Dim transport As Transport
Dim clientCertificateChain As X509Certificate2Collection
Dim value As List(Of Device)
 
value = instance.DiscoverSnmp(version, community, lowIP, highIP, timeout, transport, clientCertificateChain)

Parameters

version
SNMP version of the messages to send.
community
SNMP community of the messages to send.
lowIP
Lower end of the IP address range to start with.
highIP
Higher end of the IP address range to end with.
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

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