dhclient logs inundados com informações inúteis

2

Estou usando dhclient no Debian ( isc-dhcp-client , isc-dhcp-common ).

Os registros que dhclient estão registrando são inundados com informações de copyright e outras coisas inúteis ("por favor, consulte o README", "por favor, visite http: // ...")

Esta é a aparência da dhcp sessão simples:

dhclient:  Internet Systems Consortium DHCP Client 4.2.2
dhclient:  Copyright 2004-2011 Internet Systems Consortium.
dhclient:  All rights reserved.
dhclient:  For info, please visit https://www.isc.org/software/dhcp/
dhclient:  
dhclient:  Listening on LPF/wlan0/aa:bb:cc:dd:ee:ff
dhclient:  Sending on   LPF/wlan0/aa:bb:cc:dd:ee:ff
dhclient:  Sending on   Socket/fallback
dhclient:  DHCPRELEASE on wlan0 to 192.168.0.1 port 67
dhclient:  send_packet: Network is unreachable
dhclient:  send_packet: please consult README file regarding broadcast address.
dhclient:  Internet Systems Consortium DHCP Client 4.2.2
dhclient:  Copyright 2004-2011 Internet Systems Consortium.
dhclient:  All rights reserved.
dhclient:  For info, please visit https://www.isc.org/software/dhcp/
dhclient:  
dhclient:  Listening on LPF/wlan0/aa:bb:cc:dd:ee:ff
dhclient:  Sending on   LPF/wlan0/aa:bb:cc:dd:ee:ff
dhclient:  Sending on   Socket/fallback
dhclient:  DHCPRELEASE on wlan0 to 192.168.0.1 port 67
dhclient:  send_packet: Network is unreachable
dhclient:  send_packet: please consult README file regarding broadcast address.
dhclient:  Internet Systems Consortium DHCP Client 4.2.2
dhclient:  Copyright 2004-2011 Internet Systems Consortium.
dhclient:  All rights reserved.
dhclient:  For info, please visit https://www.isc.org/software/dhcp/
dhclient:  
dhclient:  Listening on LPF/wlan0/aa:bb:cc:dd:ee:ff
dhclient:  Sending on   LPF/wlan0/aa:bb:cc:dd:ee:ff
dhclient:  Sending on   Socket/fallback
dhclient:  DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
dhclient:  DHCPREQUEST on wlan0 to 255.255.255.255 port 67
dhclient:  DHCPOFFER from 192.168.0.1
dhclient:  DHCPACK from 192.168.0.1
dhclient:  bound to 192.168.0.16 -- renewal in 36865 seconds.

A informação importante é misturada com lixo. Isso é um problema para mim porque estou encaminhando logs importantes (incluindo dhclient ) e exibindo-os em segundo plano. E como dhclient geralmente renova a concessão, o log pode ficar bastante longo rapidamente. Eu então tenho que rolar para cima para ver outros logs.

É possível ocultar o lixo e manter apenas as informações relevantes?

    
por Martin Vegter 08.10.2016 / 18:42

0 respostas