HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/sos/report/plugins/__pycache__/ntp.cpython-36.opt-1.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