Project

General

Profile

Actions

Todo #13263

closed

Reduce log spam when deleting a static DHCP entry

Added by → luckman212 over 2 years ago. Updated 8 months ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
DHCP (IPv4)
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
24.03
Release Notes:
Default

Description

This is not a huge priority, but when deleting static DHCP mappings for devices that are offline / not on network and thus not in arp cache, the log will be filled with

/services_dhcp_edit.php: The command '/usr/sbin/arp -d '192.168.20.60" returned exit code '1', the output was 'arp: writing to routing socket: No such file or directory'

Simply piping the output of that arp -d command to /dev/null should solve this and reduce log spam.

Example screenshot:


Files

clipboard-202206101152-yqi0i.png (293 KB) clipboard-202206101152-yqi0i.png → luckman212, 06/10/2022 10:52 AM
Actions #1

Updated by → luckman212 over 2 years ago

I made and tested this small patch: https://github.com/pfsense/pfsense/pull/4597

Actions #2

Updated by Marcos M about 1 year ago

  • Tracker changed from Bug to Todo
  • Subject changed from Deleting a static DHCP entry when the related IP is not in the arp table spams the log to Reduce log spam when deleting a static DHCP entry
  • Assignee set to Marcos M
  • Target version set to 2.8.0
  • Plus Target Version set to 24.03

Applied in changeset 8b4006f25828c5fbd768e27b52470cdd3614f7ea.

Actions #3

Updated by Marcos M about 1 year ago

  • Status changed from New to Feedback
Actions #4

Updated by Jordan G 8 months ago

I see the following when removing a static DHCP entry running 24.03.r.20240416.0005

/services_dhcp.php: Configuration Change: admin@172.21.27.25 (Local Database): DHCP Server static map deleted
Actions #5

Updated by Jim Pingle 8 months ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF