Server IP : 184.107.3.203 / Your IP : 216.73.216.51 Web Server : Apache System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64 User : adminteladeoro ( 1015) PHP Version : 8.2.28 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 ~ �gU � @ s. d dl Z d dlmZmZ G dd� dee�ZdS )� N)�Plugin�IndependentPluginc @ sB e Zd ZdZdZdZdZefZdZdZ d d � Z dd� Zd d� ZdS )�ClearContainersz'Intel(R) Clear Containers configurationZclear_containers�system�virt� containerz cc-runtime�cc-proxyNc C sZ dg}| j � d�}| j|�d }x"|j� D ]}|dkr*|j|� q*W t|�}| j|� 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�cmdZconfigs�config� r �&/usr/lib/python3.6/clear_containers.py�collect_cc_config_files s z'ClearContainers.collect_cc_config_filesc C sv dg}| j � d�}| j|�d }x:|j� D ].}tjd|�}|r*|jd�}|rV|j|� P q*W t|�}| j|| j � dS )z$ Collect Clear Containers log files z-/var/lib/clear-containers/runtime/runtime.logz 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 | j d�| _| j d�rd | _| j| j� d�� | j� | j� | jdd� d S )NZlog_sizeZall_logsz cc-envzcc-shim)Z identifier)Z get_optionr Zadd_cmd_outputr r r Zadd_journal)r r r r �setupG s zClearContainers.setup)r r r )r ) �__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