Network binding: Permanent log messages "DHCP request for unknown address:"

network
Tags: #<Tag:0x00007fd30f9ea5e0>

(Micha Mueller) #1

Hi,
in my openhab.log, I get permanent entries like

  2017-06-06 13:46:07.821 [INFO ] [rvice.dhcp.ReceiveDHCPRequestPackets] - DHCP request for unknown address: 192.168.178.60
  2017-06-06 13:48:28.331 [INFO ] [rvice.dhcp.ReceiveDHCPRequestPackets] - DHCP request for registered address: 192.168.178.27

I think they come from the network binding.

Things are setup like this

Thing network:device:handy1 [ hostname="192.168.178.54", port="0", retry="1", timeout="5000", refresh_interval="60000", use_system_ping="false", dhcplisten="true" ]

Is there a way to suppress them?


(Rossko57) #2

Sure, set dhcplisten=“false”


(Micha Mueller) #3

Okay, but then presence detections will take longer to see the actual state, right?


(David Graeff) #4

Change the log level from “info” to “warn” and u won’t see any information messages anymore :slight_smile:
It might be a good idea to make this message a “trace” log, which is per default not visible.


(Rossko57) #5

Good idea, even if only for registered addresses. An ‘info’ for unknown addresses might be still desirable? Guess a user needs to raise an enhancement request against the binding in the issues list


(Micha Mueller) #6

Hmm, info for unknown addresses would not be desirable in our network - I am using the binding only for presence detection and so only have some phones in it. All other devices (and there are a LOT) in the network would lead to unknown address log messages - not very convenient…
But an enhancement request would be nice…


(Rossko57) #7

Well, you are the user with the use-case, over to you :smile:


(Micha Mueller) #8

Okay, done: https://github.com/openhab/openhab2-addons/issues/2365


(Micha Mueller) #9

The enhancement request seems to be resolved and I updated to the latest snapshot, but the log messages are still there.
I also changed the network:device: to network:pingdevice:
Anything else that I need to do to avoid the log messages?


(David Graeff) #10

The log messages were only removed for not tracked devices. Configured devices are still logged but as trace, if I recall correctly. If not, please open another issue on github. We will not remove the log message completely though.

Cheers David


(Mario Preis) #11

I also get the Info messages “DHCP request for unknown address:” for devices that are not configured for the network binding. I just installed the 2.3.0 version of the binding:

openhab> bundle:list -s | grep network
242 │ Active   │  80 │ 2.3.0.201804092039     │ org.openhab.binding.network

but I still see those messages. Do I have to install some other version?


(David Graeff) #12

(Mario Preis) #13

Thank you. What does that mean exactly? Will I have to download the latest file from https://openhab.jfrog.io/openhab/libs-pullrequest-local/org/openhab/binding/org.openhab.binding.network/2.3.0-SNAPSHOT/?


(David Graeff) #14

Yup. Wait another day and it should be on the snapshot server, if it isn’t right now.


(Mario Preis) #15

Thanks, messages are “gone” now. :slight_smile: