The SNMP connector in ThingsBoard IoT Gateway is primarily used to collect data from SNMP devices and upload it to the ThingsBoard platform. Note: The SNMP connector does not natively support direct protocol conversion from SNMP v3 to MQTT. However, this functionality can be achieved indirectly through the "SNMP data collection + internal forwarding" mechanism within the ThingsBoard ecosystem.
To enable the security features of SNMP v3 (authentication and encryption), the corresponding authentication and privacy parameters must be correctly configured.
This test was performed on the company's BL410 hardware platform (ARM architecture), which offers stable performance and strong compatibility. Test results confirm that the BL410 fully supports SNMP v3.0 → MQTT forwarding. All ARMxy series hardware from the company (including BL330, BL340, etc.) are capable of the same adaptation, providing flexible hardware selection options for relevant projects.
Step 1: Set up SNMP v3 simulation agent (snmpd)
sudo apt update && sudo apt install -y snmpd snmp

sudo net-snmp-config --create-snmpv3-user -a SHA -A "AuthPass123!" -x AES -X "PrivPass123!" snmpv3user



sudo systemctl restart snmpd
sudo systemctl enable snmpd

snmpget -v3 -l authPriv -u snmpv3user -a SHA -A "AuthPass123!" -x AES -X "PrivPass123!" 127.0.0.1 1.3.6.1.2.1.1.1.0

Step 2: Install MQTT client (for verification)
sudo apt install -y mosquitto-clients

Step 3: Configure ThingsBoard Gateway (SNMP v3 → MQTT forwarding)

{
"timeout": 5,
"retries": 3,
"devices": [
{
"deviceName": "SNMPv3_Router",
"deviceType": "snmp",
"ip": "192.168.1.XXX", // Target SNMP device IP
"port": 161,
"pollPeriod": 5000,
"version": "3",
"community": "public", // Placeholder — not used in v3
"security": {
"username": "snmp_user_XXX",
"securityLevel": "authPriv",
"authProtocol": "SHA",
"authKey": "Auth_Key_XXX@123",
"privProtocol": "AES",
"privKey": "Priv_Key_XXX@123"
},
"attributes": [
{
"key": "Device Model Description",
"method": "get",
"oid": "1.3.6.1.2.1.1.1.0",
"timeout": 6
}
],
"telemetry": [
{
"key": "Device System Info",
"method": "table",
"oid": "1.3.6.1.2.1.1"
}
]
}
],
"logLevel": "INFO",
"name": "SNMP",
"enableRemoteLogging": false,
"id": "XXX-XXX-XXX-XXX-XXX",
"configVersion": "3.8.1"
}
sudo apt install -y mosquitto-clients

Step 4: Basic MQTT function test (optional)
Subscribe: mosquitto_sub -h 127.0.0.1 -p 1883 -t "test/#" -v
Publish: mosquitto_pub -h 127.0.0.1 -p 1883 -t "test/hello" -m "world"
Step 5: Monitor real forwarded MQTT topic
mosquitto_sub -h 127.0.0.1 -p 1883 -t "v1/gateway/telemetry" -v






