%PDF- %PDF-
Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/mssql.cpython-312.pyc |
� i��d� � �0 � d dl mZmZmZ G d� dee� Zy)� )�Plugin�RedHatPlugin� PluginOptc �: � e Zd ZdZdZdZdZ eddd�� gZd � Z y )�MsSQLzMicrosoft SQL Server on Linux�mssql)�services)�mssql-server� mssql_confz/var/opt/mssql/mssql.confzSQL server configuration file)�default�descc �� � | j d� }d}d}d}d } t |� j � j � D ]� }|j d� r|}�|j d� }|d j � dk( r3|d k( r|d j � }�W|dk( s�]|d j � }�q|d j � dk( s��|d k( s��|d j � }�� d|z } |�K| j |� r)| j d|z � | j d|z � n| j | � | j ||dz |g� | j d� s&| j |dz � | j |� n%| j |dz � | j |� | j dg�� y # t $ r!}| j d|�d|��� Y d }~y d }~ww xY w)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.setup s� � ��_�_�\�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+ r r s4 � �0�J��K��H� �H� �,�(C�6� 8��K� =1r6 r N)�sos.report.pluginsr r r r r5 r6 r+ �<module>r8 s �� ?� >�J1�F�L� J1r6