PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /usr/libexec/kcare/python/kcarectl/__pycache__/
Server: Linux red.truehostdns.com 4.18.0-553.150.1.el8_10.x86_64 #1 SMP Fri Jul 31 15:23:31 EDT 2026 x86_64
IP: 51.161.15.103
Choose File :

Url:
Dir : //usr/libexec/kcare/python/kcarectl/__pycache__/server_info.cpython-36.pyc

3

0�j��@s�ddlZddlZddlZddlZddlZddlZddlmZmZm	Z	m
Z
mZmZm
Z
mZd
dd�Zddd�Zdd	d
�Zdd�ZdS)�N�)�capabilities�	constants�
http_utils�kcare�platform_utils�serverid�update_utils�utilsFc	Cs�t�}t|ptj��|d<||d<tj�|d<tj�|d<tj�|d<tj�|d<tj�|d<t	j
�}|d|d	<|d
|d<tj�|d<t
jtj�|d
<tj�|d<t	j�|d<t	j�|d<t	j�|d<tj�|d<tjtj��}|d|d<|d|d<|d|d<tj��pd|d<tj�|d<tj�|d<tj�|d<ytj�|d<Wntk
�rdYnXt j!�}|�r|||d<tj"�}|dk	�r�||d <t#j$d!�|d"<|�r�t	j%�|d#<|�r�t	j&�|d$<|S)%N�ts�reason�machine�	processor�release�system�versionr�distror�distro_versionZeuname�
kcare_version�	last_stop�node�uptime�virt�proxyzlast-updateZ
ltimestampzpatch-level�patch_levelz
patch-type�
patch_type��kmodZcrashreporter_ts�kdump_statusrZkdump_ts�	server_id�state�kernel�update_errorZsecure_boot�perf_metrics)'�dict�int�time�platformr
rrrrr�
get_distror�kcare_unamer
�strip_version_timestampr�VERSION�
get_last_stop�get_hostname�
get_uptime�get_virtr�
proxy_is_used�parse_patch_description�loaded_patch_description�get_current_kmod_version�$crashreporter_latest_event_timestamprr�get_kc_capabilites_bits�kdumps_latest_event_timestamp�	Exceptionr�get_serverid�	get_stater	�read_update_error�secure_boot_info�get_performance_metrics)	r�nowr;r#�datar�descriptionrr �r@�1/usr/libexec/kcare/python/kcarectl/server_info.py�server_infosT
rBcCs�t�}t|ptj��|d<||d<||d<tj�}|d|d<|d|d<tj�|d<tjt	j
�|d	<tj�|d
<tj�|d<tj
�|d<tj�|d
<d}tjjd�r�tjjd�}||d<tjd�|d<|S)Nrrrrrrrr
rrrrrgz/var/lib/libcare/stop�stop_ts�libcarer")r$r%r&rr(r'r
r
r*rr+r-r.r/r�get_lc_capabilites_bits�os�path�exists�getctimer	r:)rrr=r>rrCr@r@rA�server_lib_infoIs&rJcCst|||d�}t|dd�S)N)rrr=T)�b64_encoding)rJ�encode_checkin_payload)rrr=�infor@r@rA�encoded_server_lib_infodsrNcCsP|r2tj|ddd�}tjtjtjtj|d����Stjtj	tjt
|����SdS)NF�,�:)�ensure_ascii�
separatorszutf-8)rOrP)�json�dumpsr
�nstr�base64�urlsafe_b64encode�zlib�compress�bstr�	b16encode�str)r>rKZdata_strr@r@rArLisrL)NFF)N)N)rVrSrFr'r&rXrrrrrrrr	r
rBrJrNrLr@r@r@rA�<module>s(
7