HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-87-generic #88-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 09:28:41 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/sos/report/plugins/__pycache__/oratab.cpython-312.pyc
�

([Qh���8�ddlZddlmZmZmZGd�dee�Zy)�N)�Plugin�RedHatPlugin�	PluginOptc�<�eZdZdZdZdZdZedded��gZ	d�Z
y	)
�Oratabz.Oratab discovery for Oracle instances on Linux�oratab)�services)rz/etc/oratabzlocation of the oratab file)�default�val_type�descc��|jd�}tjj|�r�	t	�}t|dd��5}|j
�j�D]G}|jd�s|j�s�%|j|jd�d��I	ddd�dd	g}|j|D��cgc]}|D]}|j||����c}}�y|j!d�y#1swY�XxYwcc}}w#t$r!}|jd
|�d|���Yd}~yd}~wwxYw)
Nr�rzUTF-8)�encoding�#�:�z
dbs/init*.orazdbs/spfile*.orazCould not open conf file z: z@Could not locate oratab file. Oracle data will not be collected.)�
get_option�os�path�isfile�set�open�read�
splitlines�
startswith�strip�add�split�
add_copy_spec�	path_join�IOError�
_log_error�	_log_warn)	�self�ora_tab�	path_list�ofile�line�dbfiles�dbfiler�exs	         �;/usr/lib/python3/dist-packages/sos/report/plugins/oratab.py�setupzOratab.setups:���/�/�(�+��
�7�7�>�>�'�"�
� �E�	��'�3��9�:�U� %�
�
�� 7� 7� 9�:���?�?�3�/�t�z�z�|�$�!�
�
�d�j�j��o�a�&8�9�:�:�$�%���
�"�"�?F�$+�5;� )�$+���N�N�4��0�$+�0�$+�,�
�N�N�@�
A�%:�:��$+���
����";�G�9�B�r�d� K�L���
�s<�D�
A)D�4D� D
�0D�D�
D�	E�&E�EN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesr�str�option_listr-��r,rr
s6��A�J��K��H��H�	�(�M�C�4�	6��K�
Ar8r)r�sos.report.pluginsrrrrr7r8r,�<module>r:s ��
�>�>�)A�V�\�)Ar8