관리-도구
편집 파일: run_manager.cpython-311.pyc
� b��f� � � � d Z ddlZddlmZ ddlmZ ddlmZm Z ddl mZ ddlm Z ddlmZ dd lmZmZ dd lmZ ddlmZ dd �Zed� � � ZdS )z6 This module contains X Ray Manager main run function � N)�gettext)�app)�cmd_parser_manager�parse_cmd_arguments)�validate)�manager_log)�root_execution_only_check)�configure_logging�read_agent_sys_id)�initialize_manager)�reconfigure�returnc � � t � � t t � � t t � � � � } t | j � � }| j t � � k rt � � t |� � dS )z Main run function N)r r r r r r �__dict__� system_idr �reconfigure_sys_id�manager_run)�args�validated_argss �U/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/console_utils/run_manager.py�runr sw � � �����k�"�"�"��1�3�3�4�4�D��d�m�,�,�N� �~�*�,�,�,�,������������ c � � t | j � � }| j dk r] d}| j }n-# t $ r d} | j }n# t $ r d}Y nw xY wY nw xY w|� | j | j ||�� � }�n�| j dk r|� | j � � }�n�| j dk r|� | j � � }�n�| j dk r|� | j � � }�n�| j d k r|� � � }�ne| j d k r|� | j � � }�n>| j dk r"|� | j | j � � }�n| j dk r|� | j � � }�n�| j d k r|� | j � � }�n�| j dk r|� | j � � }�n�| j dk r|� � � }�n{| j dk r|� � � }�nZ| j dk r|� | j � � }�n3| j dk r"|� | j | j � � }�n| j dk r|� � � }n�| j dk r|� � � }n�| j dk r|� � � }n�| j dk r#|� t; | � � � � }nx| j dk r#|� t; | � � � � }nJ| j dk r#|� t; | � � � � }ntA tC d� � � � �tE |� � dS )z$ X Ray Manager run function �start�time�request_qty� )�url� client_ip� tracing_by� tracing_count�stop�continue�completezautocomplete-tasks�deletezenable-continuouszdisable-continuouszstart-continuouszstop-continuouszcontinuous-tracing-listz tasks-listz requests-listzrequest-datazenable-user-agentzdisable-user-agentzuser-agent-statuszadvanced-metricszenable-serverwide-modezdisable-serverwide-modezUnknown actionN)#r r �commandr �AttributeErrorr r r r r"