Snmp class
Properties
-
The community string to use when communicating via SNMP v1 or v2c
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
port
↔ int
-
The port which the target device has opened for snmp traffic
getter/setter pair
-
requests
↔ Map<int, Request>
-
A map of sent snmp requests which are still awaiting a response
getter/setter pair
-
retries
↔ int
-
How many times to retry a single snmp request before throwing
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
socket
↔ RawDatagramSocket
-
The socket used for all incoming/outgoing snmp requests/responses
getter/setter pair
-
target
↔ InternetAddress
-
The address of the target device we want to communicate with
getter/setter pair
-
timeout
↔ Duration
-
How long to wait for a single snmp request to resolve
getter/setter pair
-
trapPort
↔ int
-
The local port where we intend to receive snmp trap messages
getter/setter pair
-
user
↔ User?
-
The user credential to use when communicating via SNMP v3
getter/setter pair
-
version
↔ SnmpVersion
-
getter/setter pair
Static Methods
-
createSession(InternetAddress target, {int port = 161, int trapPort = 162, int retries = 1, Duration timeout = const Duration(seconds: 5), SnmpVersion version = SnmpVersion.V2c, InternetAddress? sourceAddress, int? sourcePort, Level logLevel = logging.Level.INFO})
→ Future<Snmp>
-
Opens an SNMP v1 or v2c (default) session with
target
-
createV3Session(InternetAddress target, User user, {int port = 161, int trapPort = 162, int retries = 1, Duration timeout = const Duration(seconds: 5), InternetAddress? sourceAddress, int? sourcePort, Level logLevel = logging.Level.INFO})
→ Future<Snmp>
-
Opens an SNMP v3 session with
target