| Server IP : 77.50.203.18 / Your IP : 192.168.0.10 Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23 System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64 User : warsnews.ru ( 1001) PHP Version : 8.4.23 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/sos/report/plugins/__pycache__/ |
Upload File : |
a
ܓ�iU
� @ s. d dl Z d dlmZmZ G dd� dee�ZdS )� N)�Plugin�IndependentPluginc @ sB e Zd ZdZdZdZdZefZdZdZ dd� Z
d d
� Zdd� ZdS )
�ClearContainersz'Intel(R) Clear Containers configurationZclear_containers)�systemZvirt� containerz
cc-runtime)zcc-proxyNc C sV dg}| j � d�}| �|�d }|�� D ]}|dkr(|�|� q(t|�}| �|� dS )z' Collect Clear Containers config files z_/etc/clear-containers/configuration.toml/usr/share/defaults/clear-containers/configuration.tomlz --cc-show-default-config-paths�output� N)�runtime�exec_cmd�
splitlines�append�set�
add_copy_spec)�selfZconfig_files�cmdZconfigsZconfig� r �G/usr/lib/python3.9/site-packages/sos/report/plugins/clear_containers.py�collect_cc_config_files s �z'ClearContainers.collect_cc_config_filesc C st dg}| j � d�}| �|�d }|�� D ]0}t�d|�}|r(|�d�}|rT|�|� qZq(t|�}| �|| j � dS )z$ Collect Clear Containers log files z-/var/lib/clear-containers/runtime/runtime.log� cc-envr z\bGlobalLogPath\b\s+=\s+"(.+)"� N)
r r
r �re�search�groupr r
r �loglimit)r Z log_filesr r �line�resultZglobal_logfiler r r �collect_cc_log_files/ s �
z$ClearContainers.collect_cc_log_filesc C sN | � d�| _| � d�rd | _| �| j� d�� | �� | �� | jdd� d S )NZlog_sizeZall_logsr zcc-shim)Z
identifier)Z
get_optionr Zadd_cmd_outputr r r Zadd_journal)r r r r �setupG s
zClearContainers.setup)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesr ZpackagesZservicesr r r r r r r r r
s r )r Zsos.report.pluginsr r r r r r r �<module> s