Project

General

Profile

Actions

Bug #6838

closed

bsnmpd logs errors when /etc/printcap is missing

Added by Jim Pingle over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
SNMP
Target version:
Start date:
10/05/2016
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.3.x
Affected Architecture:

Description

We do not ship with an /etc/printcap file but it appears that bsnmpd does not like that fact. When probed in various ways (especially when querying SNMP OID 1.3.6.1.2.1.25.3.5 ), bsnmpd logs an error to the system log:

snmpd[67512]: hrPrinterTable: printcap entry for <noname?> has errors, skipping

With an empty /etc/printcap (touch /etc/printcap), no errors are logged.

We could include a blank printcap or include the FreeBSD default printcap file which is logically empty as it all of its contents are comments.

Actions #1

Updated by Kill Bill over 7 years ago

Yeah, filed this as #6810, please close that one as duplicate.

Actions #2

Updated by Jim Pingle over 7 years ago

Somehow I completely missed that ticket when looking into this. I'll close the older one out since this one has a viable workaround on it.

Actions #3

Updated by Jim Pingle over 7 years ago

  • Assignee set to Jim Pingle
Actions #4

Updated by Jim Pingle over 7 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #5

Updated by Jim Pingle over 7 years ago

  • Status changed from Feedback to Resolved

Seems to be fine now, no more log spam and the dummy printcap file is there as expected.

Actions #6

Updated by Jim Pingle about 7 years ago

  • Target version changed from 2.4.0 to 2.3.3
Actions

Also available in: Atom PDF