SILENT KILLERPanel

Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > lvestats > lib > parsers


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/venv/lib64/python3.11/site-packages/lvestats/lib/parsers

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 197 bytes May 30 2025 10:30:46.
cloudlinux_statistics_parser.py File 8177 bytes May 30 2025 10:30:46.
cloudlinux_top_argparse.py File 2801 bytes May 30 2025 10:30:46.
lve_create_db_argparse.py File 1589 bytes May 30 2025 10:30:46.
lve_read_snapshot_argparse.py File 3333 bytes May 30 2025 10:30:46.
lveinfoargparse.py File 25807 bytes May 30 2025 10:30:46.
run_tests_argparse.py File 2991 bytes May 30 2025 10:30:46.

Reading File: //opt/cloudlinux/venv/lib64/python3.11/site-packages/lvestats/lib/parsers/lve_create_db_argparse.py

# coding=utf-8
#
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT

import argparse


def lve_create_db_parser():
    parser = argparse.ArgumentParser(
        prog='lve_create_db',
        add_help=True,
        description='Creates a database for lve-stats',
        formatter_class=argparse.ArgumentDefaultsHelpFormatter)

    parser.add_argument(
        '--recreate',
        help='Drops and recreates database even if tables exists',
        action='store_true',
        default=False)
    parser.add_argument(
        '--create-missing-tables',
        help='Create missing tables',
        action='store_true',
        default=False)
    parser.add_argument(
        '--print-sql',
        help='Prints sql and exits, without creating db',
        action='store_true',
        default=False)
    parser.add_argument(
        '--update-serverid-prompt',
        help='Update exist server ID or create new one',
        action='store_true',
        default=False)
    parser.add_argument(
        '--update-serverid-auto',
        help='Update exist server ID with uuid',
        action='store_true',
        default=False)
    parser.add_argument(
        '--validate',
        help='Check the correctness of the database structure',
        action='store_true',
        default=False
    )
    parser.add_argument(
        '--fix',
        help='Try fix errors in database',
        action='store_true',
        default=False
    )

    return parser

SILENT KILLER Tool