Snmp class
Creates SNMP sessions
Properties
- community ↔ String
-
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
-
The version of the snmp protocol to use
getter/setter pair
Methods
-
close(
) → void - Closes the network socket
-
get(
Oid oid, {InternetAddress? target, int? port}) → Future< Message> - Sends an SNMPGET request to the specified Oid
-
getNext(
Oid oid, {InternetAddress? target, int? port}) → Future< Message> - Requests the next (lexigraphical) Oid after the specified Oid
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
Varbind varbind, {InternetAddress? target, int? port}) → Future< Message> - Sends an SNMPSET request with the Varbind as a payload
-
toString(
) → String -
A string representation of this object.
inherited
-
walk(
{Oid? oid, InternetAddress? target, int? port}) → Stream< Message> - Walks the entire mib
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
createSession(
InternetAddress target, {String community = 'public', 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