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__/ntp.cpython-36.pyc
3

~�g��@sRddlmZmZmZmZGdd�de�ZGdd�dee�ZGdd�deee�ZdS)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc@s$eZdZdZdZdZd	Zdd�ZdS)
�NtpzNetwork Time Protocol�ntp�system�servicescCs�|jddd�|jddg�|jddgdd	�|jd
�}|ddkr~x8d
d�|dj�dd�D�D]}|jd|�d��qdWdS)Nz
/etc/ntp.confZntp_conf)Ztagsz/etc/ntp/step-tickersz/etc/ntp/ntpserversZntptimezntpq -pnT)Z
cmd_as_tagz
ntpq -c asZstatusrcSsg|]}|j�d�qS)�)�split)�.0�i�r�/usr/lib/python3.6/ntp.py�
<listcomp>#szNtp.setup.<locals>.<listcomp>�output�zntpq -c 'rv �')�
add_copy_spec�add_cmd_outputZcollect_cmd_output�
splitlines)�selfZidsZasidrrr�setups
$z	Ntp.setupN)rr	)r)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesrrrrrrs
rcseZdZ�fdd�Z�ZS)�	RedHatNtpcs"t�j�|jd�|jd�dS)Nz/etc/sysconfig/ntpdZntpstat)�superrrr)r)�	__class__rrr)s

zRedHatNtp.setup)rrrr�
__classcell__rr)rrr'srcseZdZ�fdd�Z�ZS)�	DebianNtpcst�j�|jd�dS)Nz/etc/default/ntp)rrr)r)rrrr1s
zDebianNtp.setup)rrrrrrr)rrr /sr N)Zsos.report.pluginsrrrrrrr rrrr�<module>	s

NineSec Team - 2022