thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.76k stars 845 forks source link

[HELP] Setting and OID to an SNMP device does not work #1580

Open kitaniman opened 2 weeks ago

kitaniman commented 2 weeks ago

Describe the issue How to send an SNMP set request to the target SNMP device? I would like to set the OID 1.3.6.1.4.1.26381.1.11.1.0 to "0" (OctetString) But the documentation does not include an example of how the RPC request is supposed to look like as far as I have seen.

image

Connector name: SNMP Connector: { "devices": [ { "deviceName": "Office Smart PDU", "deviceType": "snmp", "ip": "192.168.50.3", "port": 161, "pollPeriod": 45000, "community": "private", "attributes": [], "telemetry": [], "attributeUpdateRequests": [], "serverSideRpcRequests": [ { "requestFilter": "setData", "method": "set", "oid": "1.3.6.1.4.1.26381.1.11.1.0" } ] } ], "logLevel": "DEBUG", "name": "privateOfficeSmartPdu", "enableRemoteLogging": true, "id": "ece4b482-72ca-4aee-ae73-c0e09fa4f92d" }

Error traceback: {"error":"privateOfficeSmartPdu - connector not found in available connectors.","code":404}

Versions (please complete the following information):