%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/mssql.cpython-312.pyc

�

i��d���0�ddlmZmZmZGd�dee�Zy)�)�Plugin�RedHatPlugin�	PluginOptc�:�eZdZdZdZdZdZeddd��gZd	�Z	y
)�MsSQLzMicrosoft SQL Server on Linux�mssql)�services)�mssql-server�
mssql_confz/var/opt/mssql/mssql.confzSQL server configuration file)�default�descc���|jd�}d}d}d}d}	t|�j�j�D]�}|j	d�r|}�|jd�}|dj
�dk(r3|d	k(r|d
j
�}�W|dk(s�]|d
j
�}�q|dj
�dk(s��|d
k(s��|d
j
�}��	d|z}	|�K|j|�r)|jd|z�|jd|z�n|j|	�|j||dz|g�|jd�s&|j|dz�|j|�n%|j|dz�|j|�|jdg��y#t$r!}|jd|�d|���Yd}~yd}~wwxYw)Nr�z/var/opt/mssql/logz&/var/opt/mssql/log/sqlagentstartup.log�[�=r�errorlogfilez[filelocation]�z
[sqlagent]�kerberoskeytabfilez	[network]zCould not open conf file z: z:keytab file is specfieid in mssql_conf but not found in %szls -l %szklist -e -k %sz/*�all_logsr
)�units)
�
get_option�open�read�
splitlines�
startswith�split�strip�IOError�
_log_error�path_isfile�add_cmd_output�
add_copy_spec�add_journal)
�selfr�sectionr�sqlagent_errorlogfiler�line�words�ex�
keytab_errs
          �:/usr/lib/python3/dist-packages/sos/report/plugins/mssql.py�setupzMsSQL.setups����_�_�\�2�
���+�� H��!��	��Z�(�-�-�/�:�:�<�
>���?�?�3�'�"�G���
�
�3�����8�>�>�#�~�5��"2�2�',�Q�x�~�~�'7�� �L�0�05�a����0@�-��1�X�^�^�%�)=�=��+�-�-2�1�X�^�^�-=�*�
>�&-�/A�B�
��)���� 2�3��#�#�J�1C�$C�D��#�#�$4�7I�$I�J����
�+�	
�����4��!�
�	����z�*����|�d�2�3����4�5����|�d�2�3����4�5�����/��0��;�	��O�O�'��-�
.���	�s*�BF?�*F?�
F?�F?�?	G)�G$�$G)N)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesr�option_listr,��r+rrs4��0�J��K��H� �H�	�,�(C�6�	8��K�
=1r6rN)�sos.report.pluginsrrrrr5r6r+�<module>r8s��?�>�J1�F�L�J1r6

Zerion Mini Shell 1.0