Hi,
well, I went to increase debug level according to documentation. Which is itself really troublesome. Simply setting log level to DEBUG does no seem to be possible. Instead I had to use the Karaf console. And set the loglevel. I hope I did it in the right way (as I was just using the provided example):
log:set TRACE org.openhab.binding.snmp
(Just a side note: after this command I was not able to leave the consoel by exit
, I had to kill the ssh connection.)
I restarted the binding (sufficient? or full oepnhab restart needed?):
ssh openhab@localhost -p8101 'bundle:restart org.openhab.binding.snmp'
Looks like I have been successful so far:
root@openhab:~# ssh openhab@localhost -p8101 'log:get org.openhab.binding.snmp'
Password authentication
Password:
TRACE
Now when checking openhab.log there is no difference in logging:
2020-05-25 08:02:36.464 [WARN ] [inding.snmp.internal.SnmpServiceImpl] - could not open SNMP instance on port 162: Keine Berechtigung (Bind failed)
2020-05-25 08:02:36.491 [WARN ] [inding.snmp.internal.SnmpServiceImpl] - could not open SNMP instance on port 162: Keine Berechtigung (Bind failed)
2020-05-25 08:02:36.580 [WARN ] [inding.snmp.internal.SnmpServiceImpl] - SNMP service not initialized, can't send GET[requestID=0, errorStatus=Success(0), errorIndex=0, VBS[1.3.6.1.2.1.31.1.1.1.6.2 = Null]] to CommunityTarget[address=192.168.22.254/161,version=1,timeout=1500,retries=2,securityLevel=1,securityModel=1,securityName=1234,preferredTransports=null]
2020-05-25 08:02:36.592 [WARN ] [inding.snmp.internal.SnmpServiceImpl] - SNMP service not initialized, can't send GET[requestID=0, errorStatus=Success(0), errorIndex=0, VBS[1.3.6.1.2.1.31.1.1.1.6.2 = Null]] to CommunityTarget[address=192.168.22.254/161,version=1,timeout=1500,retries=2,securityLevel=1,securityModel=1,securityName=1234,preferredTransports=null]
In eventlog I see some further details but the do not tell me anything either:
2020-05-25 08:00:00.935 [hingStatusInfoChangedEvent] - 'snmp:target:router' changed from ONLINE to UNINITIALIZED
2020-05-25 08:00:01.009 [hingStatusInfoChangedEvent] - 'snmp:target:router' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2020-05-25 08:00:01.387 [hingStatusInfoChangedEvent] - 'snmp:target:router' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2020-05-25 08:00:01.435 [hingStatusInfoChangedEvent] - 'snmp:target:router' changed from INITIALIZING to UNKNOWN
2020-05-25 08:00:01.442 [hingStatusInfoChangedEvent] - 'snmp:target:router' changed from UNKNOWN to ONLINE
As I was unsure about my logging I restarted the system completely. And no change, still the same error, still no further details.
Thanks for your patience but I am close to give up. Or are there any further ideas?
/KNEBB