Red Hat Bugzilla – Bug 466923
[sosreport] printing.py update needed
Last modified: 2009-09-02 03:31:18 EDT
Created attachment 320306 [details]
Description of problem:
The printing plug-in for sosreport lacks information needed to troubleshoot most printing cases. The time it takes to go back to customer and request the information can be advoided with the printing plug-in being modified to reflect needed files.
Version-Release number of selected component (if applicable):
$ rpm -q sos
Steps to Reproduce:
1. Run 'sosreport -av' or 'sosreport -o printing'
sosreport creates with the lack of printing information
sosreport creates with enough printing information to troubleshoot
The patch is to get global lpoptions being used, the ppd files being used by assigned printers, and lpstat commands to see what printers are being used and the URIs assigned to them.
$ diff -pruN /usr/lib/python2.4/site-packages/sos/plugins/printing.py printing.py
--- /usr/lib/python2.4/site-packages/sos/plugins/printing.py 2007-08-14 13:01:29.000000000 -0400
+++ printing.py 2008-10-14 10:33:17.000000000 -0400
@@ -19,6 +19,12 @@ class printing(sos.plugintools.PluginBas
+ self.collectExtOutput("/usr/bin/lpstat -t")
+ self.collectExtOutput("/usr/bin/lpstat -s")
+ self.collectExtOutput("/usr/bin/lpstat -d")
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.