SNMP
SPX Server ships two SNMP components:
snmp— SNMP client (UDP / loopback transports)snmp_server— in-memory loopback server used for tests and tooling
snmp (client)
snmp (client)YAML key: snmp
Minimal example (UDP transport):
attributes:
temperature: 0.0
communication:
- snmp:
transport: udp
host: 192.168.1.50
port: 161
version: v2c
community: public
poll_interval: 5.0
bindings:
- name: temp_read
direction: inbound
operation: get
oid: 1.3.6.1.4.1.9999.1.0
codec: float32
attribute: "#attr(temperature)"snmp_server (loopback server)
snmp_server (loopback server)YAML key: snmp_server
Notes
UDP transport uses
pysnmpunder the hood (see server code for supported SNMPv2c/SNMPv3 fields).Loopback transport is used by unit tests (attach a server to the client).
Last updated

