%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__/saphana.cpython-312.pyc

�

i��d
��,�ddlmZmZGd�dee�Zy)�)�Plugin�RedHatPluginc�(�eZdZdZdZdZdZd�Zd�Zy)�saphanazSAP HANA)�sap)z/hanac�v�g}|jd��r%|jd�}|D]2}t|�dk(s�|j�}|j	|��4|D]�}d|j�z}d|z}|j
d|zd|z��|j
d|zd	|z��|j
d
|zd|z��|j
d|zd
|z��|jd|z�s��|jd|z�D]-}d|vs�|j�dd}|j|||��/��yy)Nz/hana/shared�z%sadmz
su - %s -cz
%s "HDB info"z%s_HDB_info��suggest_filenamez%s "hdbsrvutil -v"z
%s_versionz%s 'hdbcons "mm l -s -S -p"'z%s_memusagezU%s 'hdbcons -e hdbindexserver                                     "replication info"'z%s_replicainfoz/hana/shared/%s/�HDB���)�
path_isdir�listdir�len�strip�append�lower�add_cmd_output�
get_inst_info)�self�sids�s�sid�sidadm�prefix�insts       �</usr/lib/python3/dist-packages/sos/report/plugins/saphana.py�setupz
saphana.setups~�����?�?�>�*����^�,�A��
%���s�8�q�=��)�)�+�C��K�K��$�
%�
�
B�� �3�9�9�;�.��%��.���#�#�O�f�$<�5B�S�5H�$�J��#�#�$8�6�$A�5A�C�5G�$�I��#�#�$D�v�$M�5B�S�5H�$�J��#�#�%:�<B�%C�5E��5K�$�M��?�?�#5��#;�<� $���-?�#�-E� F�B�� �D�=�#'�:�:�<���#4�D� �.�.�s�F�D�A�B�%
B�+�c���d}|�d|�d�}|j|||fz|��d|�d|�d�}|j|�r#d}|�d|�d	�}|j|||fz|��yy)
Nz7su - %s -c "sapcontrol -nr %s -function GetProcessList"�_�_statusr
z	/usr/sap/z/HDBz/exe/python_supportz4su - %s -c "python %s/landscapeHostConfiguration.py"�_landscapeConfig)rr)	rrrr�proc_cmd�status_fname�path�py_cmd�py_fnames	         rrzsaphana.get_inst_info5s���L��),�d�3��������~�%�)�	�	
�
:=�d�C���?�?�4� �K�F�25�t�<�H�����&�$��'�!)�
 �
�!rN)	�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�filesrr�rrrrs"���J��K��H��E� B�DrrN)�sos.report.pluginsrrrr0rr�<module>r2s��4�8�f�l�8r

Zerion Mini Shell 1.0