| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Upload File : |
o
G%@iN � @ s2 d dl Z d dlmZmZmZ G dd� dee�ZdS )� N)�Plugin�IndependentPlugin� PluginOptc @ s@ e Zd ZdZdZdZdZdZedddd �gZ d
d� Z
dd
� ZdS )�CupszCUPS IPP print service�cups)�hardware)r zcups-browsed�lprintzlegacy-printer-app)r � userconfsFz6Changes whether plugin will collect user .cups configs)�default�descc C s~ | � d�s| �d� | �d� | �d� | �d� n
| �d� | �d� | �g d�� | �g d �� | � d
�r=| �� d S d S )N�all_logsz/var/log/cups/access_logz/var/log/cups/error_logz/var/log/cups/page_logz/var/log/ipp-usb/main.logz
/var/log/cupsz/var/log/ipp-usb) z/etc/cups/*.confz/etc/cups/*.typesz/etc/cups/lpoptionsz/etc/cups/ppd/*.ppdz
/etc/ipp-usb/z/etc/lprint.confz/etc/legacy-printer-app.confz/var/lib/lprint.statez!/var/lib/legacy-printer-app.state)z lpstat -tz lpstat -sz lpstat -dr )�
get_option�
add_copy_spec�add_cmd_output�get_user_configs)�self� r �9/usr/lib/python3/dist-packages/sos/report/plugins/cups.py�setup s
�z
Cups.setupc
s� t �� }ddg}i }z,tdddd��}|D ]}|�� dd� \}}|||<