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/collector/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 ~ �g"� � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl m Z d dlmZ d dl m Z d dlmZ d dlmZ d dlmZ d dlmZ d d lmZmZ d d lmZ d dlmZ d dlmZ d d lm Z dZ!G dd� de�Z"dS )� N)�datetime)�ThreadPoolExecutor)�getpass)�Path)�quote)� SoSCleaner)�SosNode)� ClusterOption�str_to_bool)�SoSComponent)�bold)�__version__)� SoSUploadz/etc/sos/groups.dc M s e Zd ZdZdZdddddddg ddg g g ddddddg dd g ddddd dd dddg dddddg ddg ddddddddg g g dddd ddg dddddddddddddddd�LZ� fdd�Zdd� Zedd� �Z edd� �Z edd� �Zdd� Zedd� �Z edd� �Zd_dd �Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd+d,� Zd-d.� Zd/d0� Zd1d2� Zd3d4� Zd5d6� Zd7d8� Zd9d:� Zd;d<� Zd=d>� Zd?d@� ZdAdB� Z dCdD� Z!dEdF� Z"dGdH� Z#dIdJ� Z$dKdL� Z%dMdN� Z&dOdP� Z'dQdR� Z(dSdT� Z)dUdV� Z*dWdX� Z+dYdZ� Z,d[d\� Z-d]d^� Z.� Z/S )`�SoSCollectora� sos collect, or SoS Collector, is the formerly standalone sos-collector project, brought into sos natively in 4.0 and later. It is meant to collect sos reports from an arbitrary number of remote nodes, as well as the localhost, at the same time. These nodes may be either user defined, defined by some clustering software, or both. For cluster defined lists of nodes, cluster profiles exist that not only define how these node lists are generated but may also influence the sos report command run on nodes depending upon their role within the cluster. Nodes are connected to via a 'transport' which defaults to the use of OpenSSH's Control Persist feature. Other transport types are available, and may be specifically linked to use with a certain cluster profile (or, at minimum, a node within a certain cluster type even if that profile is not used). sos collect may be run from either a node within the cluster that is capable of enumerating/discovering the other cluster nodes, or may be run from a user's workstation and instructed to first connect to such a node via the --primary option. If run in the latter manner, users will likely want to use the --no-local option, as by default sos collect will also collect an sos report locally. Users should expect this command to result in a tarball containing one or more sos report archives on the system that sos collect was executed on. z8Collect an sos report from multiple nodes simultaneouslyF�autoN� T� r z /etc/sos/cleaner/default_mapping� �rootiX )L�all_logs� alloptionsZallow_system_changes�become_root�case_id�chroot�clean�cluster_options�cluster_typeZcontainer_runtime�domains�disable_parsersZenable_pluginsZencrypt_keyZencrypt_pass�groupZimageZinherit_config_fileZforce_pull_image�skip_cleaning_files�jobsZjournal_size�keywords�keyword_file�keep_binary_files�label�list_options�log_sizeZlow_priority�map_file�primaryZ namespacesZnode_config_file�nodesZno_env_vars�no_local� nopasswd_sudoZno_pkg_check� no_updateZonly_plugins�password�password_per_node�plugoptsZplugin_timeoutZcmd_timeoutZpresetZ registry_userZregistry_passwordZregistry_authfile� save_groupZsince� skip_commands� skip_filesZskip_plugins�ssh_keyZssh_port�ssh_userZtimeout� transport�verify� usernames�uploadZ upload_urlZupload_directoryZupload_userZupload_passZ upload_methodZupload_no_ssl_verifyZupload_protocol�upload_s3_endpointZupload_s3_regionZupload_s3_bucketZupload_s3_access_keyZupload_s3_secret_keyZupload_s3_object_prefixZ upload_targetc sn t � j|||� tjd� g | _g | _d | _d| _d | _d | _ | j jjd� | j jj | _| jjdd� | jjd� t| jdd� tj� | _y$td d � tjtj� d �D ��| _W n& tk r� | jd� dg| _Y nX | j� | j� | _| jj�sjyT| j� | j � | j!d dj"dd� t#j$D ��� �� | j!d| jj%� � �� | j&� W n" t'k �rh | j(dd� Y nX d S )N�? r �collectr �none� node_list�sudo_pwr c S s h | ]}|d d �qS )r r � )�.0�ir@ r@ �/usr/lib/python3.6/__init__.py� <setcomp>� s z(SoSCollector.__init__.<locals>.<setcomp>zkCould not get a list of IP addresses from this hostnamne. This may indicate a DNS issue in your environmentz 127.0.0.1z Executing � c s s | ] }|V qd S )Nr@ )rA �sr@ r@ rC � <genexpr>� s z(SoSCollector.__init__.<locals>.<genexpr>zFound cluster profiles: zExiting on user cancel� ))�super�__init__�os�umask�client_listr>