Skip to Content
On this page

SNMP manager

SNMP manager collects Agent OIDs, performs Set, GetNext, Walk, and GetBulk, and receives Trap/Inform notifications. For shared operations, see Collection Configuration. To publish gateway variables as an Agent, use the SNMP Agent forwarding plugin.

Compatible devices and models

Device series / model examplesConnection requirements
SNMP switches, routers, UPS devices and network instrumentsMatch SNMP v1/v2c/v3 USM, security settings and the device MIB/OIDs. Set and Trap/Inform require the corresponding device capabilities.

Map an OID from the Agent configuration

Enable the required SNMP version in the switch, UPS or instrument management interface. Permit the gateway to query UDP 161, then assign a read-only community or USM user. Configure notification targets separately; port 162 is not the ordinary query port.

  1. Connect a MIB browser using the same version and credentials. Get 1.3.6.1.2.1.1.3.0 (sysUpTime). The final .0 is the scalar instance; omitting it commonly returns NoSuchInstance.
  2. Create a UDP channel to the Agent IP and port 161. Use a gateway-local bind endpoint. Add this plugin and match the Agent credentials; public is only the default community value.
  3. Add read-only AgentUptime, type UInt32, array length 1, and select TimeTicks:
{"oid":"1.3.6.1.2.1.1.3.0","syntax":"TimeTicks"}
  1. Get it in protocol debugging and compare with the MIB browser. TimeTicks are hundredths of a second: 12345 means 123.45 seconds. Divide by 100 in a read expression when seconds are required; changing the variable type does not change the protocol unit.
  2. Walk 1.3.6.1.2.1.2.2.1 before selecting interface-table cells. Copy the actual ifIndex from returned OIDs; it need not equal the front-panel port number. Use UInt64 and v2c/v3 for Counter64.
ScenarioConfiguration
NoAuthNoPrivMatch user and contextName; keep authentication/privacy algorithms at None.
AuthNoPrivMatch the authentication algorithm and passphrase; privacy remains None. SHA1 and SHA256 are distinct algorithms.
AuthPrivMatch authentication, Aes128 privacy, both passphrases, user and contextName.
Get/Walk onlyKeep notification reception disabled; polling does not require a Trap destination.
Trap/InformEnable the independent listener and configure its reachable gateway IP/port in the Agent. The listener bind address belongs to the gateway.
v3 InformConfigure this receiver’s stable, unique authoritative engine ID and matching USM settings in the Agent.

The Walk limit bounds one traversal; GetBulk repetitions controls table expansion per request. For a small Agent returning tooBig, reduce repetitions or split the query before increasing local message limits. OctetString values preserve bytes as Base64, even when a MIB browser displays decoded text.

Create a channel and device

Open Development Configuration → Collection Configuration. Create a UDP channel with a local binding and the Agent endpoint, normally on port 161. Add an SNMP manager device, select the matching version and security settings, save it, and enable it.

ParameterDescription
SNMP versionV1, V2c, or V3. Authentication failure does not downgrade the version. V1 has no GetBulk.
CommunityV1/V2c credential; must match the Agent and notification sender.
USM username and contextNameV3 identity and context configured by the Agent.
USM security levelNoAuthNoPriv, AuthNoPriv, or AuthPriv. Match the authentication and privacy settings.
USM authenticationMD5, SHA1 or SHA-224/256/384/512 with a matching 8–256 character passphrase. Store credentials in device settings.
USM privacyAES128 for AuthPriv, with the required authentication settings.
Request timeout100–120000 ms; default 3000.
Maximum message bytesDefault 65507. Limits the complete BER request and response, including USM and varbind overhead. Minimum 64 for v1/v2c, 484 for v3. V3 advertises this value as msgMaxSize.
Maximum Walk varbinds1–4096; default 1024. Bounds traversal.
GetBulk repetitions1–128; default 16. A response is also limited to 512 varbinds. Walk switches to GetNext when the Agent explicitly rejects Bulk.
Enable Trap/Inform receptionCreates a notification listener owned by this device; a second collection channel is unnecessary.
Notification bindingDefault 0.0.0.0:162. Choose a suitable interface and free port.
Notification authoritative engine IDRequired for v3 notifications: 5–32 bytes in hexadecimal. Keep it stable and unique.
Recent notification capacity1–1024; default 64.
Maximum notification datagram bytesDefault 65507. Separately limits notification reception and acknowledgements; minimum 64 for v1/v2c and 484 for v3.

SHA-2 authentication

Select V3, use AuthNoPriv or AuthPriv, and match the agent’s authentication algorithm and passphrase. AuthPriv also uses Aes128 and a privacy passphrase. Changing the authentication algorithm requires both peers to derive authentication and privacy keys with that algorithm for the current engine. Localized keys from a different algorithm cannot be reused.

Configuration valueStandard authentication nameDigest bytesProtocol OID
Sha224HMAC-SHA-224-128161.3.6.1.6.3.10.1.1.4
Sha256HMAC-SHA-256-192241.3.6.1.6.3.10.1.1.5
Sha384HMAC-SHA-384-256321.3.6.1.6.3.10.1.1.6
Sha512HMAC-SHA-512-384481.3.6.1.6.3.10.1.1.7

These names follow RFC 7860. Match peers displaying algorithm names such as SHA-256 using this table. Protocol OIDs identify authentication algorithms; they are not variable addresses. Authentication failures do not downgrade to SHA1, MD5 or no authentication.

Configure OID variables

{"oid":"1.3.6.1.2.1.1.3.0","syntax":"TimeTicks"}

Use numeric OIDs, optionally with one leading dot. Confirm the OID and write permissions against the target MIB and Agent.

SyntaxJSON value
IntegerSigned 32-bit integer, from -2147483648 to 2147483647.
BitStringBoolean array in most-significant-bit order, for example [true,false,true].
Counter32 / Gauge32 / TimeTicksUnsigned 32-bit number. Unsigned32 shares Gauge32 encoding; TimeTicks uses hundredths of a second.
Counter64Unsigned 64-bit number. Preserve large-integer precision in downstream systems.
OctetString / OpaqueBase64 string preserving the original bytes.
ObjectIdentifier / IpAddressNumeric OID string / IPv4 string.
Null / NoSuchObject / NoSuchInstance / EndOfMibViewNull or protocol exception semantics. Exception values are not normal collection values.

For example, text browser-set is the OctetString JSON value "YnJvd3Nlci1zZXQ=". SNMPv2 MIB BITS normally uses OCTET STRING and must be interpreted according to its MIB; standalone ASN.1 BIT STRING uses the Boolean array above.

Reads and writes enforce each syntax’s numeric range. Values outside Integer or unsigned 32-bit ranges are rejected without truncation. Use Counter64 over v2c/v3 for unsigned 64-bit counters. IpAddress requires a four-byte IPv4 value; encoding sixteen IPv6 bytes with this syntax produces a protocol error.

V1 responses cannot contain Counter64, NoSuchObject, NoSuchInstance, or EndOfMibView, and error-status must be 0–5. Receiving these v2c/v3 syntaxes or an extended error-status fails the read with a protocol error. Check the versions configured on the Manager, Agent, and notification sender. An Agent should report noSuchName for a missing object queried over v1.

  1. Add or edit a variable in Real-time Variables and open its address Field editor.
  2. Enter the complete numeric OID and the MIB’s ASN.1 type. A leading dot is removed when filling back.
  3. Confirm and fill back, inspect oid and syntax, save the variable, and reopen it to verify.

NoSuchObject, NoSuchInstance, and EndOfMibView are response exceptions and should not be configured as variable types. V1 variables cannot use Counter64. Cancel discards editor changes.

Check values and notifications

In Real-time Variables, inspect each OID, value, online state, collection time, and error. Successful Get requests advance collection time; change time advances only when the value changes. Matching Trap/Inform notifications also update variables. OctetString values are shown in Base64.

After sending a notification, also inspect its source, OIDs, contents, and Inform acknowledgement in Trap / Inform. Verify Manager requests and notification reception separately.

Protocol debugging

Select the device and open Protocol Debug. Core Status shows connection, security settings, message budgets, and listener state. Use the workspace Refresh action to update status. Notification pagination defaults to 20 rows and preserves the current page during updates; it does not change GetBulk repetitions or message budgets.

  1. Use Read for Get. GetNext returns the next OID in numeric lexicographic order; inspect the returned address.
  2. In Batch Get, use Add and each item’s Edit fields to enter OID and syntax, up to 32 addresses.
  3. For Walk, enter a root OID and limit. Traversal stays within that subtree. V1 uses GetNext; v2c/v3 start with GetBulk and switch to GetNext on explicit rejection.
  4. For GetBulk, enter the OID, nonRepeaters, and maxRepetitions. Use GetNext or Walk for v1.
  5. For Write, enter OID, select syntax, and supply the typed JSON value. Confirm Set, then Get the value back. Success requires a matching remote OID, type, and value echo.
  6. In Trap / Inform, inspect version, notification type, source, USM user, and varbinds. An acknowledged Inform means the receiver sent an acknowledgement. Trap has no delivery acknowledgement.

SNMP batch Get OID and syntax fields, Chinese interface

Batch addresses use the variable address rules. Complete or cancel pending field drafts before submission. GetNext, Walk, and GetBulk still expect plain OIDs in their OID fields.

Batches and small Agents

Polling uses an individual Get for each OID. Debug batch Get accepts up to 32 OIDs; a single Manager request accepts up to 128 varbinds. GetBulk also observes its repetition, 512-varbind response, and byte limits. When WalkBulk is explicitly rejected after successful pages, traversal resumes with GetNext from the last successful OID. If the first page is rejected, it starts from the root. The entire traversal and retry sequence share one deadline. Malformed BER, non-increasing OIDs, source mismatches, and timeouts fail the operation.

This example uses a 64-byte Manager budget and one repetition: the first Bulk page succeeds, the next is rejected, and GetNext retrieves the remaining entries. Check all four OIDs and their order:

SNMP manager: Run Walk

A GetNext timeout during the continued traversal fails the whole Walk without returning partial success. User cancellation remains a cancellation. After correcting the problem, issue a new Get to verify recovery.

Trap/Inform uses a separate listener and request state. With reception enabled, the debug panel refreshes listener state every 1.5 seconds. Check Manager responses and notifications independently.

In a V1 Trap header, agent-addr must be a four-byte IPv4 address, generic-trap must be 0–6, specific-trap must be a signed 32-bit integer, and the TimeTicks timestamp must be 0–4294967295. Invalid headers record a notification parsing error without entering the recent-notification cache or updating variables. Valid notifications continue to work after correcting the sender.

SNMP does not split a BER message at the application layer. Start with single Get and one Bulk repetition for small Agents. A single long value can exceed the byte budget even when there is only one varbind. Reduce repetitions or adjust the data or budget; truncated data is not a valid result. V3 needs at least 484 bytes including its security envelope.

SNMP manager: Read

The Manager can be offline without recent Get responses while its notification listener remains online. Check both timestamps and states.

Community, USM user name, and contextName use the printable ASCII required by the configuration and match byte for byte. ? is a literal character, not a wildcard; bytes in another encoding cannot be replaced with ? and accepted. A response with a different identity or invalid encoding cannot complete a pending read or refresh its response timestamp. Such notifications cannot enter the cache or update variables. Check the sender’s actual identity bytes, then verify recovery on the same connection.

Special methods

Open Protocol Debug → Special Methods. Available methods are GetAsync, GetBatchAsync, GetNextAsync, WalkAsync, GetBulkAsync, SetAsync, and GetNotifications. Batch objectIdentifiers contains an array of OID strings. Set accepts an address JSON string and typed value JSON text.

Enter a JSON array in method parameter order, or use the field editor. Trailing optional parameters can be omitted. For GetAsync:

["1.3.6.1.2.1.1.3.0"]

Use [] for GetNotifications. The dedicated batch panel accepts address JSON; the batch special method accepts OID strings.

SNMP manager: Special Methods

Troubleshooting

SymptomCheck and action
TimeoutCheck remote endpoint, UDP 161, firewall, version, and community.
V3 discovery or authentication failureCheck user, context, algorithms, passphrases, Agent engine boots/time, and the time window.
noSuchObject / noSuchInstanceCheck the MIB, scalar .0 suffix, version, and user view.
Set wrongType / noAccessUse the MIB’s declared type and permitted range.
Walk ends earlyCheck subtree boundaries, EndOfMibView, and the configured count limit.
No notificationsCheck binding, sender destination, credentials, version, and firewall.
Repeated InformA sender may retry without an acknowledgement. The receiver acknowledges duplicates without delivering the variable update twice.