Server IP : 15.235.198.142 / Your IP : 216.73.216.190 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Upload File : |
� i��d � �, � d dl mZmZ G d� dee� Zy)� )�Plugin�RedHatPluginc �( � e Zd ZdZd ZdZdZd� Zd� Zy)�saphanazSAP HANA)�sap)z/hanac �v � g }| j d� �r%| j d� }|D ]2 }t |� dk( s�|j � }|j |� �4 |D ]� }d|j � z }d|z }| j d|z d|z �� | j d|z d |z �� | j d |z d|z �� | j d|z d |z �� | j d|z � s��| j d|z � D ]- }d|v s�|j � dd }| j |||� �/ �� y y )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.setup s~ � ����?�?�>�*����^�,�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 |�� y y ) Nz7su - %s -c "sapcontrol -nr %s -function GetProcessList"�_�_statusr z /usr/sap/z/HDBz/exe/python_supportz4su - %s -c "python %s/landscapeHostConfiguration.py"�_landscapeConfig)r r ) r r r r �proc_cmd�status_fname�path�py_cmd�py_fnames r r zsaphana.get_inst_info5 s� � �L��),�d�3��������~�%�)� � � :=�d�C���?�?�4� �K�F�25�t�<�H�����&�$��'�!)� � � !r N) �__name__� __module__�__qualname__� short_desc�plugin_name�profiles�filesr r � r r r r s"