- Hardware: CPUArchitecture/RAM/storage VM 4 core, 2gb ram 32gb HDD
- OS: what OS is used and which version ubuntu 18.04
- Java Runtime Environment: which java platform is used and what version 1.8.0_191
- openHAB version: Openhab2 2.4.0-1
I’m trying to get the snmp binding working but getting a bit confused with what needs configured where.
My end goal is to know the state of a PDU socket in Basic UI (with a light or indicator) and to make an on/off button and reboot button for the socket.
so far i have established from the command line on the Ubuntu machine running my Openhab install I can achieve these goals using the following commands
snmpwalk -v1 -c public 10.72.23.51 22.214.171.124.4.1.3126.96.36.199.188.8.131.52.4.3
iso.184.108.40.206.1.3220.127.116.11.18.104.22.168.4.3 = INTEGER: 2
(interger 2 tells me the socket is off )
so i can run
snmpset -v1 -c private 10.72.23.51 22.214.171.124.4.1.3126.96.36.199.188.8.131.52.4.3$outlet integer 1
this switches the socket on.
if I run
snmpset -v1 -c private 10.72.23.51 184.108.40.206.4.1.3220.127.116.11.18.104.22.168.4.3$outlet integer 3
this would immediately power cycle the socket.
could someone give me a rough order of how best to approach this. so far i’m just reading stuff about snmp and going round in circles.
i have reads the snmp bindings page about 100 times so far, pls don’t refer me to that.