NineSec Team Shell
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  ]

Current File : //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/clear_containers.cpython-36.pyc
3

~�gU
�@s.ddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPluginc@sBeZdZdZdZdZdZefZdZdZ	d	d
�Z
dd�Zd
d�ZdS)�ClearContainersz'Intel(R) Clear Containers configurationZclear_containers�system�virt�	containerz
cc-runtime�cc-proxyNcCsZdg}|j�d�}|j|�d}x"|j�D]}|dkr*|j|�q*Wt|�}|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)�selfZconfig_files�cmdZconfigs�config�r�&/usr/lib/python3.6/clear_containers.py�collect_cc_config_filessz'ClearContainers.collect_cc_config_filescCsvdg}|j�d�}|j|�d}x:|j�D].}tjd|�}|r*|jd�}|rV|j|�Pq*Wt|�}|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)
rrr
�re�search�grouprrr�loglimit)rZ	log_filesrr	�line�resultZglobal_logfilerrr�collect_cc_log_files/s

z$ClearContainers.collect_cc_log_filescCsN|jd�|_|jd�rd|_|j|j�d��|j�|j�|jdd�dS)NZlog_sizeZall_logsz cc-envzcc-shim)Z
identifier)Z
get_optionrZadd_cmd_outputrrrZadd_journal)rrrr�setupGs
zClearContainers.setup)rrr)r)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesrZpackagesZservicesrrrrrrrrr
sr)rZsos.report.pluginsrrrrrrr�<module>	s

NineSec Team - 2022