コード例 #1
0
ファイル: sos_archive.py プロジェクト: vkrizan/insights-core
class SosSpecs(Specs):
    auditctl_status = simple_file("sos_commands/auditd/auditctl_-s")
    autofs_conf = simple_file("/etc/autofs.conf")

    blkid = first_file([
        "sos_commands/block/blkid_-c_.dev.null",
        "sos_commands/filesys/blkid_-c_.dev.null"
    ])
    candlepin_log = first_of([
        simple_file("/var/log/candlepin/candlepin.log"),
        simple_file(
            "sos_commands/foreman/foreman-debug/var/log/candlepin/candlepin.log"
        )
    ])
    candlepin_error_log = first_of([
        simple_file("var/log/candlepin/error.log"),
        simple_file(
            r"sos_commands/foreman/foreman-debug/var/log/candlepin/error.log")
    ])
    catalina_out = glob_file("var/log/tomcat*/catalina.out")
    catalina_server_log = glob_file("var/log/tomcat*/catalina*.log")
    ceilometer_central_log = simple_file("/var/log/ceilometer/central.log")
    ceph_osd_tree_text = simple_file("sos_commands/ceph/ceph_osd_tree")
    ceph_report = simple_file("sos_commands/ceph/ceph_report")
    ceph_health_detail = simple_file(
        "sos_commands/ceph/ceph_health_detail_--format_json-pretty")
    checkin_conf = simple_file("/etc/splice/checkin.conf")
    chkconfig = first_file([
        "sos_commands/startup/chkconfig_--list",
        "sos_commands/services/chkconfig_--list"
    ])
    cib_xml = first_of([
        simple_file("/var/lib/pacemaker/cib/cib.xml"),
        head(glob_file("sos_commands/pacemaker/crm_report/*/cib.xml"))
    ])
    cni_podman_bridge_conf = simple_file(
        "/etc/cni/net.d/87-podman-bridge.conflist")
    corosync_cmapctl = glob_file("sos_commands/corosync/corosync-cmapctl*")
    cpe = simple_file("/etc/system-release-cpe")
    cpu_smt_control = simple_file("sys/devices/system/cpu/smt/control")
    cpu_vulns_meltdown = simple_file(
        "sys/devices/system/cpu/vulnerabilities/meltdown")
    cpu_vulns_spectre_v1 = simple_file(
        "sys/devices/system/cpu/vulnerabilities/spectre_v1")
    cpu_vulns_spectre_v2 = simple_file(
        "sys/devices/system/cpu/vulnerabilities/spectre_v2")
    cpu_vulns_spec_store_bypass = simple_file(
        "sys/devices/system/cpu/vulnerabilities/spec_store_bypass")
    cpuinfo_max_freq = simple_file(
        "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq")
    cpupower_frequency_info = simple_file(
        "sos_commands/processor/cpupower_frequency-info")
    date = first_of([
        simple_file("sos_commands/general/date"),
        simple_file("sos_commands/date/date")
    ])
    df__al = first_file([
        "sos_commands/filesys/df_-al", "sos_commands/filesys/df_-al_-x_autofs"
    ])
    dirsrv = simple_file("/etc/sysconfig/dirsrv")
    dirsrv_access = glob_file("var/log/dirsrv/*/access*")
    display_java = simple_file("sos_commands/java/alternatives_--display_java")
    dnf_modules = glob_file("/etc/dnf/modules.d/*.module")
    docker_host_machine_id = simple_file(
        "/etc/redhat-access-insights/machine-id")
    docker_image_inspect = glob_file("sos_commands/docker/docker_inspect_*")
    docker_info = simple_file("sos_commands/docker/docker_info")
    docker_list_containers = first_file(
        ["sos_commands/docker/docker_ps_-a", "sos_commands/docker/docker_ps"])
    docker_list_images = simple_file("sos_commands/docker/docker_images")
    docker_network = simple_file("/etc/sysconfig/docker-network")
    docker_storage = simple_file("/etc/sysconfig/docker-storage")
    dm_mod_use_blk_mq = simple_file("/sys/module/dm_mod/parameters/use_blk_mq")
    dmesg = first_file([
        "sos_commands/kernel/dmesg", "sos_commands/general/dmesg",
        "var/log/dmesg"
    ])
    dmidecode = simple_file("sos_commands/hardware/dmidecode")
    dmsetup_info = simple_file("sos_commands/devicemapper/dmsetup_info_-c")
    dnsmasq_config = glob_file(["/etc/dnsmasq.conf", "/etc/dnsmasq.d/*.conf"])
    dumpe2fs_h = glob_file("sos_commands/filesys/dumpe2fs_-h_*")
    ethtool = glob_file("sos_commands/networking/ethtool_*",
                        ignore="ethtool_-.*")
    ethtool_S = glob_file("sos_commands/networking/ethtool_-S_*")
    ethtool_T = glob_file("sos_commands/networking/ethtool_-T_*")
    ethtool_a = glob_file("sos_commands/networking/ethtool_-a_*")
    ethtool_c = glob_file("sos_commands/networking/ethtool_-c_*")
    ethtool_g = glob_file("sos_commands/networking/ethtool_-g_*")
    ethtool_i = glob_file("sos_commands/networking/ethtool_-i_*")
    ethtool_k = glob_file("sos_commands/networking/ethtool_-k_*")
    exim_conf = simple_file("etc/exim.conf")
    fdisk_l_sos = first_of([
        glob_file(r"sos_commands/filesys/fdisk_-l_*"),
        glob_file(r"sos_commands/block/fdisk_-l_*")
    ])
    foreman_production_log = first_of([
        simple_file("/var/log/foreman/production.log"),
        simple_file(
            "sos_commands/foreman/foreman-debug/var/log/foreman/production.log"
        )
    ])
    foreman_proxy_conf = first_of([
        simple_file("/etc/foreman-proxy/settings.yml"),
        simple_file(
            "sos_commands/foreman/foreman-debug/etc/foreman-proxy/settings.yml"
        )
    ])
    foreman_proxy_log = first_of([
        simple_file("/var/log/foreman-proxy/proxy.log"),
        simple_file(
            "sos_commands/foreman/foreman-debug/var/log/foreman-proxy/proxy.log"
        )
    ])
    foreman_satellite_log = first_of([
        simple_file("/var/log/foreman-installer/satellite.log"),
        simple_file(
            "sos_commands/foreman/foreman-debug/var/log/foreman-installer/satellite.log"
        )
    ])
    foreman_ssl_access_ssl_log = first_file([
        "var/log/httpd/foreman-ssl_access_ssl.log",
        r"sos_commands/foreman/foreman-debug/var/log/httpd/foreman-ssl_access_ssl.log"
    ])
    foreman_tasks_config = first_file(
        ["/etc/sysconfig/foreman-tasks", "/etc/sysconfig/dynflowd"])
    freeipa_healthcheck_log = simple_file(
        "/var/log/ipa/healthcheck/healthcheck.log")
    hammer_ping = first_file([
        "sos_commands/foreman/hammer_ping",
        "sos_commands/foreman/foreman-debug/hammer-ping"
    ])
    getcert_list = first_file(
        ["sos_commands/ipa/ipa-getcert_list", "sos_commands/ipa/getcert_list"])
    glance_api_conf = first_file([
        "/var/lib/config-data/puppet-generated/glance_api/etc/glance/glance-api.conf",
        "/etc/glance/glance-api.conf"
    ])
    glance_api_log = first_file(
        ["/var/log/containers/glance/api.log", "/var/log/glance/api.log"])
    glance_cache_conf = first_file([
        "/var/lib/config-data/puppet-generated/glance_api/etc/glance/glance-cache.conf",
        "/etc/glance/glance-cache.conf"
    ])
    glance_registry_conf = simple_file("/etc/glance/glance-registry.conf")
    gluster_v_info = simple_file("sos_commands/gluster/gluster_volume_info")
    gluster_v_status = simple_file(
        "sos_commands/gluster/gluster_volume_status")
    gluster_peer_status = simple_file(
        "sos_commands/gluster/gluster_peer_status")
    heat_engine_log = first_file([
        "/var/log/containers/heat/heat-engine.log",
        "/var/log/heat/heat-engine.log"
    ])
    hostname = first_file(
        ["sos_commands/general/hostname_-f", "sos_commands/host/hostname_-f"])
    hostname_default = first_file([
        "sos_commands/general/hostname", "sos_commands/host/hostname",
        "/etc/hostname", "hostname"
    ])
    hostname_short = first_file([
        "sos_commands/general/hostname", "sos_commands/host/hostname",
        "/etc/hostname", "hostname"
    ])
    httpd_access_log = simple_file("/var/log/httpd/access_log")
    httpd_M = simple_file("sos_commands/apache/apachectl_-M")
    httpd_ssl_access_log = simple_file("/var/log/httpd/ssl_access_log")
    httpd_ssl_error_log = simple_file("/var/log/httpd/ssl_error_log")
    initscript = glob_file(r"etc/rc.d/init.d/*")
    installed_rpms = first_file(
        ["sos_commands/rpm/package-data", "installed-rpms"])
    ip_addr = first_of([
        simple_file("sos_commands/networking/ip_-d_address"),
        simple_file("sos_commands/networking/ip_address")
    ])
    ip_neigh_show = first_file([
        "sos_commands/networking/ip_-s_-s_neigh_show",
        "sos_commands/networking/ip_neigh_show"
    ])
    ip_route_show_table_all = simple_file(
        "sos_commands/networking/ip_route_show_table_all")
    ip_s_link = first_of([
        simple_file("sos_commands/networking/ip_-s_-d_link"),
        simple_file("sos_commands/networking/ip_-s_link"),
        simple_file("sos_commands/networking/ip_link")
    ])
    ip6tables_permanent = simple_file("etc/sysconfig/ip6tables")
    iptables = first_file(
        ["/etc/sysconfig/iptables", "/etc/sysconfig/iptables.save"])
    journal_since_boot = first_of([
        simple_file("sos_commands/logs/journalctl_--no-pager_--boot"),
        simple_file(
            "sos_commands/logs/journalctl_--no-pager_--catalog_--boot"),
        simple_file(
            "sos_commands/logs/journalctl_--all_--this-boot_--no-pager")
    ])
    ironic_conf = first_file([
        "/var/lib/config-data/puppet-generated/ironic/etc/ironic/ironic.conf",
        "/etc/ironic/ironic.conf"
    ])
    journal_since_boot = first_of([
        simple_file("sos_commands/logs/journalctl_--no-pager_--boot"),
        simple_file("sos_commands/logs/journalctl_--no-pager_--catalog_--boot")
    ])
    kerberos_kdc_log = simple_file("var/log/krb5kdc.log")
    keystone_log = first_file([
        "/var/log/containers/keystone/keystone.log",
        "/var/log/keystone/keystone.log"
    ])
    kexec_crash_loaded = simple_file("/sys/kernel/kexec_crash_loaded")
    keystone_conf = first_file([
        "/var/lib/config-data/puppet-generated/keystone/etc/keystone/keystone.conf",
        "/etc/keystone/keystone.conf"
    ])
    libvirtd_qemu_log = glob_file(r"/var/log/libvirt/qemu/*.log")
    locale = simple_file("sos_commands/i18n/locale")
    lsblk = first_file(
        ["sos_commands/block/lsblk", "sos_commands/filesys/lsblk"])
    ls_boot = simple_file("sos_commands/boot/ls_-lanR_.boot")
    lscpu = simple_file("sos_commands/processor/lscpu")
    lsinitrd = simple_file("sos_commands/boot/lsinitrd")
    lsof = simple_file("sos_commands/process/lsof_-b_M_-n_-l")
    lsmod = simple_file("sos_commands/kernel/lsmod")
    lspci = first_of([
        simple_file("sos_commands/pci/lspci_-nnvv"),
        simple_file("sos_commands/pci/lspci_-nvv"),
        simple_file("sos_commands/pci/lspci")
    ])
    lsscsi = simple_file("sos_commands/scsi/lsscsi")
    ls_dev = first_file([
        "sos_commands/block/ls_-lanR_.dev",
        "sos_commands/devicemapper/ls_-lanR_.dev"
    ])
    lvs = first_file([
        "sos_commands/lvm2/lvs_-a_-o_lv_tags_devices_--config_global_locking_type_0",
        "sos_commands/lvm2/lvs_-a_-o_devices"
    ])
    manila_conf = first_file([
        "/var/lib/config-data/puppet-generated/manila/etc/manila/manila.conf",
        "/etc/manila/manila.conf"
    ])
    mistral_executor_log = simple_file("/var/log/mistral/executor.log")
    modinfo_all = glob_file("sos_commands/kernel/modinfo_*")
    mount = simple_file("sos_commands/filesys/mount_-l")
    mounts = simple_file("/proc/mounts")
    mlx4_port = glob_file("/sys/bus/pci/devices/*/mlx4_port[0-9]")
    multipath__v4__ll = first_file([
        "sos_commands/multipath/multipath_-v4_-ll",
        "sos_commands/devicemapper/multipath_-v4_-ll"
    ])
    netstat = first_file([
        "sos_commands/networking/netstat_-neopa",
        "sos_commands/networking/netstat_-W_-neopa",
        "sos_commands/networking/netstat_-T_-neopa"
    ])
    netstat_agn = first_of([
        simple_file("sos_commands/networking/netstat_-agn"),
        simple_file("sos_commands/networking/netstat_-W_-agn"),
        simple_file("sos_commands/networking/netstat_-T_-agn")
    ])
    netstat_s = simple_file("sos_commands/networking/netstat_-s")
    neutron_ml2_conf = first_file([
        "/var/lib/config-data/puppet-generated/neutron/etc/neutron/plugins/ml2/ml2_conf.ini",
        "/etc/neutron/plugins/ml2/ml2_conf.ini"
    ])
    neutron_server_log = first_file([
        "/var/log/containers/neutron/server.log", "/var/log/neutron/server.log"
    ])
    nmcli_dev_show = simple_file("sos_commands/networking/nmcli_device_show")
    nmcli_dev_show_sos = glob_file([
        "sos_commands/networking/nmcli_dev_show_*",
        "sos_commands/networkmanager/nmcli_dev_show_*"
    ])
    ntptime = simple_file("sos_commands/ntp/ntptime")
    octavia_conf = simple_file(
        "/var/lib/config-data/puppet-generated/octavia/etc/octavia/octavia.conf"
    )
    openvswitch_daemon_log = simple_file(
        '/var/log/openvswitch/ovs-vswitchd.log')
    openvswitch_other_config = simple_file(
        "sos_commands/openvswitch/ovs-vsctl_-t_5_get_Open_vSwitch_._other_config"
    )
    openvswitch_server_log = simple_file(
        '/var/log/openvswitch/ovsdb-server.log')
    osa_dispatcher_log = first_file([
        "/var/log/rhn/osa-dispatcher.log", "/rhn-logs/rhn/osa-dispatcher.log"
    ])
    ovirt_engine_boot_log = simple_file("/var/log/ovirt-engine/boot.log")
    ovirt_engine_confd = glob_file("/etc/ovirt-engine/engine.conf.d/*")
    ovirt_engine_console_log = simple_file("/var/log/ovirt-engine/console.log")
    ovs_vsctl_show = simple_file(
        "sos_commands/openvswitch/ovs-vsctl_-t_5_show")
    pam_conf = simple_file("/etc/pam.conf")
    partitions = simple_file("/proc/partitions")
    pcs_config = simple_file("sos_commands/pacemaker/pcs_config")
    pcs_quorum_status = simple_file("sos_commands/pacemaker/pcs_quorum_status")
    pcs_status = first_file([
        "sos_commands/pacemaker/pcs_status",
        "/sos_commands/pacemaker/pcs_status_--full"
    ])
    podman_image_inspect = glob_file("sos_commands/podman/podman_inspect_*")
    podman_list_containers = first_file(
        ["sos_commands/podman/podman_ps_-a", "sos_commands/podman/podman_ps"])
    podman_list_images = simple_file("sos_commands/podman/podman_images")
    ps_alxwww = simple_file("sos_commands/process/ps_alxwww")
    ps_aux = first_file([
        "sos_commands/process/ps_aux", "sos_commands/process/ps_auxwww",
        "sos_commands/process/ps_auxcww"
    ])
    ps_auxcww = first_file([
        "sos_commands/process/ps_auxcww", "sos_commands/process/ps_auxwww",
        "sos_commands/process/ps_aux"
    ])
    ps_auxww = first_file([
        "sos_commands/process/ps_auxww", "sos_commands/process/ps_auxwww",
        "sos_commands/process/ps_aux", "sos_commands/process/ps_auxcww"
    ])
    puppet_ssl_cert_ca_pem = first_file([
        "/etc/puppetlabs/puppet/ssl/certs/ca.pem",
        "sos_commands/foreman/foreman-debug/var/lib/puppet/ssl/certs/ca.pem"
    ])
    pvs = first_file([
        "sos_commands/lvm2/pvs_-a_-v_-o_pv_mda_free_pv_mda_size_pv_mda_count_pv_mda_used_count_pe_start_--config_global_locking_type_0",
        "sos_commands/lvm2/pvs_-a_-v", "sos_commands/devicemapper/pvs_-a_-v"
    ])
    qpid_stat_q = first_file([
        "sos_commands/pulp/qpid-stat_-q_--ssl-certificate_.etc.pki.pulp.qpid.client.crt_-b_amqps_..localhost_5671",
        "sos_commands/pulp/qpid-stat_-q_--ssl-certificate_.etc.pki.katello.qpid_client_striped.crt_-b_amqps_..localhost_5671",
        "sos_commands/katello/qpid-stat_-q_--ssl-certificate_.etc.pki.pulp.qpid.client.crt_-b_amqps_..localhost_5671",
        "sos_commands/katello/qpid-stat_-q_--ssl-certificate_.etc.pki.katello.qpid_client_striped.crt_-b_amqps_..localhost_5671",
        "sos_commands/foreman/foreman-debug/qpid-stat-q", "qpid-stat-q",
        "sos_commands/foreman/foreman-debug/qpid_stat_queues",
        "qpid_stat_queues"
    ])
    qpid_stat_u = first_file([
        "sos_commands/pulp/qpid-stat_-u_--ssl-certificate_.etc.pki.pulp.qpid.client.crt_-b_amqps_..localhost_5671",
        "sos_commands/pulp/qpid-stat_-u_--ssl-certificate_.etc.pki.katello.qpid_client_striped.crt_-b_amqps_..localhost_5671",
        "sos_commands/katello/qpid-stat_-u_--ssl-certificate_.etc.pki.pulp.qpid.client.crt_-b_amqps_..localhost_5671",
        "sos_commands/katello/qpid-stat_-u_--ssl-certificate_.etc.pki.katello.qpid_client_striped.crt_-b_amqps_..localhost_5671",
        "sos_commands/foreman/foreman-debug/qpid-stat-u", "qpid-stat-u",
        "sos_commands/foreman/foreman-debug/qpid_stat_subscriptions",
        "qpid_stat_subscriptions"
    ])
    rabbitmq_logs = glob_file("/var/log/rabbitmq/rabbit@*.log",
                              ignore=".*rabbit@.*(?<!-sasl).log$")
    rabbitmq_report = simple_file("sos_commands/rabbitmq/rabbitmqctl_report")
    rabbitmq_report_of_containers = glob_file(
        "sos_commands/rabbitmq/docker_exec_-t_rabbitmq-bundle-docker-*_rabbitmqctl_report"
    )
    rabbitmq_startup_err = simple_file("/var/log/rabbitmq/startup_err")
    rhn_charsets = first_file([
        "sos_commands/satellite/rhn-charsets", "sos_commands/rhn/rhn-charsets"
    ])
    rhn_hibernate_conf = first_file([
        "/usr/share/rhn/config-defaults/rhn_hibernate.conf",
        "/config-defaults/rhn_hibernate.conf"
    ])
    rhn_search_daemon_log = first_file([
        "/var/log/rhn/search/rhn_search_daemon.log",
        "/rhn-logs/rhn/search/rhn_search_daemon.log"
    ])
    rhn_server_satellite_log = simple_file(
        "var/log/rhn/rhn_server_satellite.log")
    rhn_server_xmlrpc_log = first_file([
        "/var/log/rhn/rhn_server_xmlrpc.log",
        "/rhn-logs/rhn/rhn_server_xmlrpc.log"
    ])
    rhosp_release = simple_file("/etc/rhosp-release")
    root_crontab = first_file([
        "sos_commands/crontab/root_crontab", "sos_commands/cron/root_crontab"
    ])
    route = simple_file("sos_commands/networking/route_-n")
    sap_host_profile = simple_file("/usr/sap/hostctrl/exe/host_profile")
    sched_rt_runtime_us = simple_file("/proc/sys/kernel/sched_rt_runtime_us")
    scheduler = glob_file("/sys/block/*/queue/scheduler")
    scsi_mod_use_blk_mq = simple_file(
        "/sys/module/scsi_mod/parameters/use_blk_mq")
    secure = simple_file("/var/log/secure")
    sestatus = simple_file("sos_commands/selinux/sestatus_-b")
    sssd_logs = glob_file("var/log/sssd/*.log")
    samba_logs = glob_file("var/log/samba/log.*")
    ssh_foreman_config = simple_file("/usr/share/foreman/.ssh/ssh_config")
    subscription_manager_id = simple_file(
        "/sos_commands/subscription_manager/subscription-manager_identity")
    subscription_manager_list_consumed = first_file([
        'sos_commands/yum/subscription-manager_list_--consumed',
        'sos_commands/subscription_manager/subscription-manager_list_--consumed',
        'sos_commands/general/subscription-manager_list_--consumed'
    ])
    subscription_manager_list_installed = first_file([
        'sos_commands/yum/subscription-manager_list_--installed',
        'sos_commands/subscription_manager/subscription-manager_list_--installed',
        'sos_commands/general/subscription-manager_list_--installed'
    ])
    swift_conf = first_file([
        "/var/lib/config-data/puppet-generated/swift/etc/swift/swift.conf",
        "/etc/swift/swift.conf"
    ])
    swift_log = first_file(
        ["/var/log/containers/swift/swift.log", "/var/log/swift/swift.log"])
    sys_kernel_sched_features = simple_file("/sys/kernel/debug/sched_features")
    sysconfig_chronyd = simple_file("/etc/sysconfig/chronyd")
    sysconfig_httpd = simple_file("/etc/sysconfig/httpd")
    sysconfig_irqbalance = simple_file("etc/sysconfig/irqbalance")
    sysconfig_memcached = first_file([
        "/var/lib/config-data/puppet-generated/memcached/etc/sysconfig/memcached",
        "/etc/sysconfig/memcached"
    ])
    sysconfig_mongod = glob_file(
        ["etc/sysconfig/mongod", "etc/opt/rh/rh-mongodb26/sysconfig/mongod"])
    sysctl = simple_file("sos_commands/kernel/sysctl_-a")
    systemctl_list_unit_files = simple_file(
        "sos_commands/systemd/systemctl_list-unit-files")
    systemctl_list_units = first_file([
        "sos_commands/systemd/systemctl_list-units",
        "sos_commands/systemd/systemctl_list-units_--all"
    ])
    systemctl_show_all_services = simple_file(
        "sos_commands/systemd/systemctl_show_service_--all")
    systemd_system_origin_accounting = simple_file(
        "/etc/systemd/system.conf.d/origin-accounting.conf")
    teamdctl_config_dump = glob_file(
        "sos_commands/teamd/teamdctl_*_config_dump")
    teamdctl_state_dump = glob_file("sos_commands/teamd/teamdctl_*_state_dump")
    tomcat_web_xml = first_of([
        glob_file("/etc/tomcat*/web.xml"),
        glob_file("/conf/tomcat/tomcat*/web.xml")
    ])
    tuned_conf = simple_file("/etc/tuned.conf")
    udev_persistent_net_rules = simple_file(
        "/etc/udev/rules.d/70-persistent-net.rules")
    uname = simple_file("sos_commands/kernel/uname_-a")
    uptime = first_of([
        simple_file("sos_commands/general/uptime"),
        simple_file("sos_commands/host/uptime")
    ])
    var_qemu_xml = glob_file(r"var/run/libvirt/qemu/*.xml")
    vdsm_conf = simple_file("etc/vdsm/vdsm.conf")
    vdsm_id = simple_file("etc/vdsm/vdsm.id")
    vdsm_import_log = glob_file("var/log/vdsm/import/import-*.log")
    vgdisplay = first_file([
        "sos_commands/lvm2/vgdisplay_-vv_--config_global_locking_type_0",
        "sos_commands/lvm2/vgdisplay_-vv"
    ])
    vgs = first_file([
        "sos_commands/lvm2/vgs_-v_-o_vg_mda_count_vg_mda_free_vg_mda_size_vg_mda_used_count_vg_tags_--config_global_locking_type_0",
        "sos_commands/lvm2/vgs_-v", "sos_commands/devicemapper/vgs_-v"
    ])
    vmcore_dmesg = glob_file("/var/crash/*/vmcore-dmesg.txt")
    vmware_tools_conf = simple_file("etc/vmware-tools/tools.conf")
    xfs_info = glob_file("sos_commands/xfs/xfs_info*")
    yum_log = simple_file("/var/log/yum.log")
    yum_repolist = simple_file("sos_commands/yum/yum_-C_repolist")
    sendq_socket_buffer = simple_file("proc/sys/net/ipv4/tcp_wmem")
    recvq_socket_buffer = simple_file("proc/sys/net/ipv4/tcp_rmem")
コード例 #2
0
class InsightsArchiveSpecs(Specs):

    abrt_status_bare = simple_file("insights_commands/abrt_status_--bare_True")
    all_installed_rpms = glob_file("insights_commands/rpm_-qa*")
    alternatives_display_python = simple_file(
        "insights_commands/alternatives_--display_python")
    auditctl_status = simple_file("insights_commands/auditctl_-s")
    aws_instance_id_doc = simple_file(
        "insights_commands/python_-m_insights.tools.cat_--no-header_aws_instance_id_doc"
    )
    aws_instance_id_pkcs7 = simple_file(
        "insights_commands/python_-m_insights.tools.cat_--no-header_aws_instance_id_pkcs7"
    )
    awx_manage_check_license = simple_file(
        "insights_commands/awx-manage_check_license")
    azure_instance_type = simple_file(
        "insights_commands/python_-m_insights.tools.cat_--no-header_azure_instance_type"
    )
    bios_uuid = simple_file("insights_commands/dmidecode_-s_system-uuid")
    blkid = simple_file("insights_commands/blkid_-c_.dev.null")
    brctl_show = simple_file("insights_commands/brctl_show")
    ceph_df_detail = first_file([
        "insights_commands/ceph_df_detail_-f_json-pretty",
        "insights_commands/ceph_df_detail_-f_json"
    ])
    ceph_health_detail = first_file([
        "insights_commands/ceph_health_detail_-f_json-pretty",
        "insights_commands/ceph_health_detail_-f_json"
    ])
    ceph_insights = simple_file(
        "insights_commands/python_-m_insights.tools.cat_--no-header_ceph_insights"
    )
    ceph_osd_dump = first_file([
        "insights_commands/ceph_osd_dump_-f_json-pretty",
        "insights_commands/ceph_osd_dump_-f_json"
    ])
    ceph_osd_tree = first_file([
        "insights_commands/ceph_osd_tree_-f_json-pretty",
        "insights_commands/ceph_osd_tree_-f_json"
    ])
    ceph_s = first_file([
        "insights_commands/ceph_-s_-f_json-pretty",
        "insights_commands/ceph_-s_-f_json"
    ])
    ceph_v = simple_file("insights_commands/ceph_-v")
    certificates_enddate = first_file([
        "insights_commands/find_.etc.origin.node_.etc.origin.master_.etc.pki_.etc.ipa_-type_f_-exec_.usr.bin.openssl_x509_-noout_-enddate_-in_-exec_echo_FileName",
        "insights_commands/find_.etc.origin.node_.etc.origin.master_.etc.pki_-type_f_-exec_.usr.bin.openssl_x509_-noout_-enddate_-in_-exec_echo_FileName"
    ])
    chkconfig = simple_file("insights_commands/chkconfig_--list")
    chronyc_sources = simple_file("insights_commands/chronyc_sources")
    corosync_cmapctl = glob_file("insights_commands/corosync-cmapctl*")
    cpupower_frequency_info = simple_file(
        "insights_commands/cpupower_-c_all_frequency-info")
    date = simple_file("insights_commands/date")
    date_utc = simple_file("insights_commands/date_--utc")
    df__al = first_file(
        ["insights_commands/df_-al_-x_autofs", "insights_commands/df_-al"])
    df__alP = first_file(
        ["insights_commands/df_-alP_-x_autofs", "insights_commands/df_-alP"])
    df__li = first_file(
        ["insights_commands/df_-li_-x_autofs", "insights_commands/df_-li"])
    dig_dnssec = simple_file("insights_commands/dig_dnssec_._SOA")
    dig_edns = simple_file("insights_commands/dig_edns_0_._SOA")
    dig_noedns = simple_file("insights_commands/dig_noedns_._SOA")
    display_name = simple_file("display_name")
    dmesg = simple_file("insights_commands/dmesg")
    dmidecode = simple_file("insights_commands/dmidecode")
    dmsetup_info = simple_file("insights_commands/dmsetup_info_-C")
    docker_info = simple_file("insights_commands/docker_info")
    docker_list_containers = simple_file(
        "insights_commands/docker_ps_--all_--no-trunc")
    docker_list_images = simple_file(
        "insights_commands/docker_images_--all_--no-trunc_--digests")
    dotnet_version = simple_file("insights_commands/dotnet_--version")
    doveconf = simple_file("insights_commands/doveconf")
    du_dirs = glob_file("insights_commands/du_-s_-k_*")
    engine_db_query_vdsm_version = simple_file(
        "insights_commands/engine-db-query_--statement_SELECT_vs.vds_name_rpm_version_FROM_vds_dynamic_vd_vds_static_vs_WHERE_vd.vds_id_vs.vds_id_--json"
    )
    ethtool = glob_file("insights_commands/ethtool_*", ignore="ethtool_-.*")
    ethtool_S = glob_file("insights_commands/ethtool_-S_*")
    ethtool_T = glob_file("insights_commands/ethtool_-T_*")
    ethtool_c = glob_file("insights_commands/ethtool_-c_*")
    ethtool_g = glob_file("insights_commands/ethtool_-g_*")
    ethtool_i = glob_file("insights_commands/ethtool_-i_*")
    ethtool_k = glob_file("insights_commands/ethtool_-k_*")
    facter = simple_file("insights_commands/facter")
    fc_match = simple_file(
        "insights_commands/fc-match_-sv_sans_regular_roman_family_fontformat")
    fcoeadm_i = simple_file("insights_commands/fcoeadm_-i")
    findmnt_lo_propagation = simple_file(
        "insights_commands/findmnt_-lo_PROPAGATION")
    firewall_cmd_list_all_zones = simple_file(
        "insights_commands/firewall-cmd_--list-all-zones")
    getconf_page_size = simple_file("insights_commands/getconf_PAGE_SIZE")
    getenforce = simple_file("insights_commands/getenforce")
    getsebool = simple_file("insights_commands/getsebool_-a")
    grub1_config_perms = simple_file(
        "insights_commands/ls_-l_.boot.grub.grub.conf")
    grub_config_perms = simple_file(
        "insights_commands/ls_-l_.boot.grub2.grub.cfg")
    grubby_default_index = simple_file(
        "insights_commands/grubby_--default-index")
    grubby_default_kernel = simple_file(
        "insights_commands/grubby_--default-kernel")
    gluster_v_info = simple_file("insights_commands/gluster_volume_info")
    hammer_task_list = simple_file(
        "insights_commands/hammer_--config_.root..hammer.cli.modules.d.foreman.yml_--output_csv_task_list_--search_state_running_AND_label_Actions_Candlepin_ListenOnCandlepinEvents_OR_label_Actions_Katello_EventQueue_Monitor"
    )
    installed_rpms = head(all_installed_rpms)
    hostname = simple_file("insights_commands/hostname_-f")
    hostname_default = simple_file("insights_commands/hostname")
    hostname_short = simple_file("insights_commands/hostname_-s")
    httpd_M = glob_file("insights_commands/*httpd*_-M")
    httpd_on_nfs = simple_file(
        "insights_commands/python_-m_insights.tools.cat_--no-header_httpd_on_nfs"
    )
    httpd_V = glob_file("insights_commands/*httpd*_-V")
    initctl_lst = simple_file("insights_commands/initctl_--system_list")
    ip6tables = simple_file("insights_commands/ip6tables-save")
    ip_addr = simple_file("insights_commands/ip_addr")
    ip_addresses = simple_file("insights_commands/hostname_-I")
    ip_route_show_table_all = simple_file(
        "insights_commands/ip_route_show_table_all")
    ip_s_link = first_file(
        ["insights_commands/ip_-s_-d_link", "insights_commands/ip_-s_link"])
    ipcs_m = simple_file("insights_commands/ipcs_-m")
    ipcs_m_p = simple_file("insights_commands/ipcs_-m_-p")
    ipcs_s = simple_file("insights_commands/ipcs_-s")
    iptables = simple_file("insights_commands/iptables-save")
    ipv4_neigh = simple_file("insights_commands/ip_-4_neighbor_show_nud_all")
    ipv6_neigh = simple_file("insights_commands/ip_-6_neighbor_show_nud_all")
    iscsiadm_m_session = simple_file("insights_commands/iscsiadm_-m_session")
    keystone_crontab = simple_file("insights_commands/crontab_-l_-u_keystone")
    kpatch_list = simple_file("insights_commands/kpatch_list")
    localtime = simple_file("insights_commands/file_-L_.etc.localtime")
    lpstat_p = simple_file("insights_commands/lpstat_-p")
    ls_boot = simple_file("insights_commands/ls_-lanR_.boot")
    ls_dev = simple_file("insights_commands/ls_-lanR_.dev")
    ls_disk = simple_file("insights_commands/ls_-lanR_.dev.disk")
    ls_edac_mc = simple_file(
        "insights_commands/ls_-lan_.sys.devices.system.edac.mc")
    ls_etc = simple_file(
        "insights_commands/ls_-lan_.etc_.etc.cloud.cloud.cfg.d_.etc.nova.migration_.etc.pki.ovirt-vmconsole_.etc.pki.tls.certs_.etc.pki.tls.private_.etc.rc.d.init.d_.etc.sysconfig"
    )
    ls_lib_firmware = simple_file("insights_commands/ls_-lanR_.lib.firmware")
    ls_ocp_cni_openshift_sdn = simple_file(
        "insights_commands/ls_-l_.var.lib.cni.networks.openshift-sdn")
    ls_origin_local_volumes_pods = simple_file(
        "insights_commands/ls_-l_.var.lib.origin.openshift.local.volumes.pods")
    ls_osroot = simple_file("insights_commands/ls_-lan")
    ls_run_systemd_generator = simple_file(
        "insights_commands/ls_-lan_.run.systemd.generator")
    ls_R_var_lib_nova_instances = simple_file(
        "insights_commands/ls_-laR_.var.lib.nova.instances")
    ls_sys_firmware = simple_file("insights_commands/ls_-lanR_.sys.firmware")
    ls_tmp = simple_file("insights_commands/ls_-la_.tmp")
    ls_usr_bin = simple_file("insights_commands/ls_-lan_.usr.bin")
    ls_usr_lib64 = simple_file("insights_commands/ls_-lan_.usr.lib64")
    ls_var_lib_mongodb = simple_file(
        "insights_commands/ls_-la_.var.lib.mongodb")
    ls_var_lib_nova_instances = simple_file(
        "insights_commands/ls_-laRZ_.var.lib.nova.instances")
    ls_var_log = simple_file(
        "insights_commands/ls_-la_.var.log_.var.log.audit")
    ls_var_opt_mssql = simple_file("insights_commands/ls_-ld_.var.opt.mssql")
    ls_var_opt_mssql_log = simple_file(
        "insights_commands/ls_-la_.var.opt.mssql.log")
    ls_var_spool_clientmq = simple_file(
        "insights_commands/ls_-ln_.var.spool.clientmqueue")
    ls_var_spool_postfix_maildrop = simple_file(
        "insights_commands/ls_-ln_.var.spool.postfix.maildrop")
    ls_var_tmp = simple_file("insights_commands/ls_-ln_.var.tmp")
    ls_var_run = simple_file("insights_commands/ls_-lnL_.var.run")
    ls_var_www = simple_file("insights_commands/ls_-la_.dev.null_.var.www")
    lsblk = simple_file("insights_commands/lsblk")
    lsblk_pairs = simple_file(
        "insights_commands/lsblk_-P_-o_NAME_KNAME_MAJ_MIN_FSTYPE_MOUNTPOINT_LABEL_UUID_RA_RO_RM_MODEL_SIZE_STATE_OWNER_GROUP_MODE_ALIGNMENT_MIN-IO_OPT-IO_PHY-SEC_LOG-SEC_ROTA_SCHED_RQ-SIZE_TYPE_DISC-ALN_DISC-GRAN_DISC-MAX_DISC-ZERO"
    )
    lscpu = simple_file("insights_commands/lscpu")
    lsmod = simple_file("insights_commands/lsmod")
    lsof = simple_file("insights_commands/lsof")
    lspci = simple_file("insights_commands/lspci_-k")
    lssap = simple_file("insights_commands/usr.sap.hostctrl.exe.lssap")
    lsscsi = simple_file("insights_commands/lsscsi")
    lsvmbus = simple_file("insights_commands/lsvmbus_-vv")
    lvmconfig = first_file([
        "insights_commands/lvmconfig_--type_full",
        "insights_commands/lvm_dumpconfig_--type_full"
    ])
    lvs_noheadings = first_file([
        "insights_commands/lvs_--nameprefixes_--noheadings_--separator_-a_-o_lv_name_lv_size_lv_attr_mirror_log_vg_name_devices_region_size_data_percent_metadata_percent_segtype_seg_monitor_lv_kernel_major_lv_kernel_minor_--config_global_locking_type_0",
        "insights_commands/lvs_--nameprefixes_--noheadings_--separator_-a_-o_lv_name_lv_size_lv_attr_mirror_log_vg_name_devices_region_size_data_percent_metadata_percent_segtype_seg_monitor_--config_global_locking_type_0"
    ])
    max_uid = simple_file(
        "insights_commands/awk_-F_if_3_max_max_3_END_print_max_.etc.passwd")
    md5chk_files = glob_file("insights_commands/md5sum_*")
    mount = simple_file("insights_commands/mount")
    modinfo = glob_file("insights_commands/modinfo_*")
    modinfo_i40e = simple_file("insights_commands/modinfo_i40e")
    modinfo_igb = simple_file("insights_commands/modinfo_igb")
    modinfo_ixgbe = simple_file("insights_commands/modinfo_ixgbe")
    modinfo_veth = simple_file("insights_commands/modinfo_veth")
    modinfo_vmxnet3 = simple_file("insights_commands/modinfo_vmxnet3")
    mokutil_sbstate = simple_file("insights_commands/mokutil_--sb-state")
    multicast_querier = simple_file(
        "insights_commands/find_.sys.devices.virtual.net._-name_multicast_querier_-print_-exec_cat"
    )
    multipath_conf_initramfs = simple_file(
        "insights_commands/lsinitrd_-f_.etc.multipath.conf")
    multipath__v4__ll = simple_file("insights_commands/multipath_-v4_-ll")
    mysqladmin_vars = simple_file("insights_commands/mysqladmin_variables")
    named_checkconf_p = simple_file("insights_commands/named-checkconf_-p")
    ndctl_list_Ni = simple_file("insights_commands/ndctl_list_-Ni")
    netstat = simple_file("insights_commands/netstat_-neopa")
    netstat_agn = simple_file("insights_commands/netstat_-agn")
    netstat_i = simple_file("insights_commands/netstat_-i")
    netstat_s = simple_file("insights_commands/netstat_-s")
    nmcli_conn_show = simple_file("insights_commands/nmcli_conn_show")
    nmcli_dev_show = simple_file("insights_commands/nmcli_dev_show")
    nova_crontab = simple_file("insights_commands/crontab_-l_-u_nova")
    nova_uid = simple_file("insights_commands/id_-u_nova")
    ntpq_leap = simple_file("insights_commands/ntpq_-c_rv_0_leap")
    ntptime = simple_file("insights_commands/ntptime")
    numeric_user_group_name = simple_file(
        "insights_commands/grep_-c_digit_.etc.passwd_.etc.group")
    oc_get_clusterrole_with_config = simple_file(
        "insights_commands/oc_get_clusterrole_--config_.etc.origin.master.admin.kubeconfig"
    )
    oc_get_clusterrolebinding_with_config = simple_file(
        "insights_commands/oc_get_clusterrolebinding_--config_.etc.origin.master.admin.kubeconfig"
    )
    open_vm_tools_stat_raw_text_session = simple_file(
        "insights_commands/vmware-toolbox-cmd_stat_raw_text_session")
    openvswitch_other_config = simple_file(
        "insights_commands/ovs-vsctl_-t_5_get_Open_vSwitch_._other_config")
    ovs_vsctl_list_bridge = simple_file(
        "insights_commands/ovs-vsctl_list_bridge")
    ovs_vsctl_show = simple_file("insights_commands/ovs-vsctl_show")
    passenger_status = simple_file("insights_commands/passenger-status")
    pci_rport_target_disk_paths = simple_file(
        "insights_commands/find_.sys.devices._-maxdepth_10_-mindepth_9_-name_stat_-type_f"
    )
    pcp_metrics = simple_file(
        "insights_commands/curl_-s_http_..127.0.0.1_44322.metrics_--connect-timeout_5"
    )
    pcs_quorum_status = simple_file("insights_commands/pcs_quorum_status")
    pcs_status = simple_file("insights_commands/pcs_status")
    postconf_builtin = simple_file("insights_commands/postconf_-C_builtin")
    postconf = simple_file("insights_commands/postconf")
    ps_alxwww = simple_file("insights_commands/ps_alxwww")
    ps_aux = simple_file("insights_commands/ps_aux")
    ps_auxcww = simple_file("insights_commands/ps_auxcww")
    ps_auxww = simple_file("insights_commands/ps_auxww")
    ps_ef = simple_file("insights_commands/ps_-ef")
    ps_eo = simple_file("insights_commands/ps_-eo_pid_ppid_comm")
    pvs_noheadings = simple_file(
        "insights_commands/pvs_--nameprefixes_--noheadings_--separator_-a_-o_pv_all_vg_name_--config_global_locking_type_0"
    )
    qpid_stat_g = simple_file(
        "insights_commands/qpid-stat_-g_--ssl-certificate_.etc.pki.katello.qpid_client_striped.crt_-b_amqps_..localhost_5671"
    )
    rabbitmq_report = simple_file("insights_commands/rabbitmqctl_report")
    rabbitmq_users = simple_file("insights_commands/rabbitmqctl_list_users")
    readlink_e_etc_mtab = simple_file(
        "insights_commands/readlink_-e_.etc.mtab")
    readlink_e_shift_cert_client = simple_file(
        "insights_commands/readlink_-e_.etc.origin.node.certificates.kubelet-client-current.pem"
    )
    readlink_e_shift_cert_server = simple_file(
        "insights_commands/readlink_-e_.etc.origin.node.certificates.kubelet-server-current.pem"
    )
    rhn_schema_version = simple_file("insights_commands/rhn-schema-version")
    rhev_data_center = simple_file(
        "insights_commands/python_-m_insights.tools.cat_--no-header_rhev_data_center"
    )
    rndc_status = simple_file("insights_commands/rndc_status")
    rpm_V_packages = first_file([
        "insights_commands/rpm_-V_coreutils_procps_procps-ng_shadow-utils_passwd_sudo_chrony",
        "insights_commands/rpm_-V_coreutils_procps_procps-ng_shadow-utils_passwd_sudo"
    ])
    sap_hdb_version = simple_file(
        "insights_commands/python_-m_insights.tools.cat_--no-header_sap_hdb_version"
    )
    saphostctl_getcimobject_sapinstance = simple_file(
        "insights_commands/usr.sap.hostctrl.exe.saphostctrl_-function_GetCIMObject_-enuminstances_SAPInstance"
    )
    satellite_content_hosts_count = simple_file(
        "insights_commands/sudo_-iu_postgres_psql_-d_foreman_-c_select_count_from_hosts"
    )
    saphostexec_status = simple_file(
        "insights_commands/usr.sap.hostctrl.exe.saphostexec_-status")
    saphostexec_version = simple_file(
        "insights_commands/usr.sap.hostctrl.exe.saphostexec_-version")
    satellite_mongodb_storage_engine = simple_file(
        "insights_commands/mongo_pulp_database_--eval_db.serverStatus_.storageEngine"
    )
    sealert = simple_file('insights_commands/sealert_-l')
    sestatus = simple_file("insights_commands/sestatus_-b")
    smbstatus_p = simple_file("insights_commands/smbstatus_-p")
    software_collections_list = simple_file('insights_commands/scl_--list')
    spamassassin_channels = simple_file(
        'insights_commands/grep_-r_s_CHANNELURL_.etc.mail.spamassassin.channel.d'
    )
    ss = simple_file("insights_commands/ss_-tupna")
    sshd_config_perms = simple_file(
        "insights_commands/ls_-l_.etc.ssh.sshd_config")
    subscription_manager_id = simple_file(
        "insights_commands/subscription-manager_identity")
    subscription_manager_installed_product_ids = simple_file(
        "insights_commands/find_.etc.pki.product-default._.etc.pki.product._-name_pem_-exec_rct_cat-cert_--no-content"
    )
    sysctl = simple_file("insights_commands/sysctl_-a")
    systemctl_cat_rpcbind_socket = simple_file(
        "insights_commands/systemctl_cat_rpcbind.socket")
    systemctl_cinder_volume = simple_file(
        "insights_commands/systemctl_show_openstack-cinder-volume")
    systemctl_httpd = simple_file("insights_commands/systemctl_show_httpd")
    systemctl_nginx = simple_file("insights_commands/systemctl_show_nginx")
    systemctl_list_unit_files = simple_file(
        "insights_commands/systemctl_list-unit-files")
    systemctl_list_units = simple_file(
        "insights_commands/systemctl_list-units")
    systemctl_mariadb = simple_file("insights_commands/systemctl_show_mariadb")
    systemctl_qpidd = simple_file("insights_commands/systemctl_show_qpidd")
    systemctl_qdrouterd = simple_file(
        "insights_commands/systemctl_show_qdrouterd")
    systemctl_show_all_services = simple_file(
        "insights_commands/systemctl_show_.service")
    systemctl_show_target = simple_file(
        "insights_commands/systemctl_show_.target")
    systemctl_smartpdc = simple_file(
        "insights_commands/systemctl_show_smart_proxy_dynflow_core")
    systemd_analyze_blame = simple_file(
        "insights_commands/systemd-analyze_blame")
    systemd_docker = first_file([
        "insights_commands/systemctl_cat_docker.service",
        "/usr/lib/systemd/system/docker.service"
    ])
    systemd_openshift_node = first_file([
        "insights_commands/systemctl_cat_atomic-openshift-node.service",
        "/usr/lib/systemd/system/atomic-openshift-node.service"
    ])
    systool_b_scsi_v = simple_file("insights_commands/systool_-b_scsi_-v")
    testparm_s = simple_file("insights_commands/testparm_-s")
    testparm_v_s = simple_file("insights_commands/testparm_-v_-s")
    tomcat_vdc_fallback = simple_file(
        "insights_commands/find_.usr.share_-maxdepth_1_-name_tomcat_-exec_.bin.grep_-R_-s_VirtualDirContext_--include_.xml"
    )
    tuned_adm = simple_file("insights_commands/tuned-adm_list")
    uname = simple_file("insights_commands/uname_-a")
    uptime = simple_file("insights_commands/uptime")
    version_info = simple_file("version_info")
    vdo_status = simple_file("insights_commands/vdo_status")
    vgdisplay = simple_file("insights_commands/vgdisplay")
    vgs_noheadings = simple_file(
        "insights_commands/vgs_--nameprefixes_--noheadings_--separator_-a_-o_vg_all_--config_global_locking_type_0"
    )
    virsh_list_all = simple_file(
        "insights_commands/virsh_--readonly_list_--all")
    virt_what = simple_file("insights_commands/virt-what")
    yum_list_available = simple_file(
        "insights_commands/yum_-C_--noplugins_list_available")
    yum_repolist = first_file([
        "insights_commands/yum_-C_--noplugins_repolist",
        "insights_commands/yum_-C_repolist"
    ])
コード例 #3
0
class InsightsArchiveSpecs(Specs):

    all_installed_rpms = glob_file("insights_commands/rpm_-qa*")
    auditctl_status = simple_file("insights_commands/auditctl_-s")
    aws_instance_type = simple_file(
        "insights_commands/python_-m_insights.tools.cat_--no-header_aws_instance_type"
    )
    bios_uuid = simple_file("insights_commands/dmidecode_-s_system-uuid")
    blkid = simple_file("insights_commands/blkid_-c_.dev.null")
    brctl_show = simple_file("insights_commands/brctl_show")
    ceph_df_detail = simple_file(
        "insights_commands/ceph_df_detail_-f_json-pretty")
    ceph_health_detail = simple_file(
        "insights_commands/ceph_health_detail_-f_json-pretty")
    ceph_insights = simple_file(
        "insights_commands/python_-m_insights.tools.cat_--no-header_ceph_insights"
    )
    ceph_osd_df = simple_file("insights_commands/ceph_osd_df_-f_json-pretty")
    ceph_osd_dump = simple_file(
        "insights_commands/ceph_osd_dump_-f_json-pretty")
    ceph_osd_ec_profile_ls = simple_file(
        "insights_commands/ceph_osd_erasure-code-profile_ls")
    ceph_osd_tree = simple_file(
        "insights_commands/ceph_osd_tree_-f_json-pretty")
    ceph_s = simple_file("insights_commands/ceph_-s_-f_json-pretty")
    ceph_v = simple_file("insights_commands/ceph_-v")
    certificates_enddate = simple_file(
        "insights_commands/find_.etc.origin.node_.etc.origin.master_.etc.pki_-type_f_-exec_.usr.bin.openssl_x509_-noout_-enddate_-in_-exec_echo_FileName"
    )
    chkconfig = simple_file("insights_commands/chkconfig_--list")
    chronyc_sources = simple_file("insights_commands/chronyc_sources")
    crt = simple_file(
        "insights_commands/find_.etc.origin.node_.etc.origin.master_-type_f_-path_.crt"
    )
    date = simple_file("insights_commands/date")
    date_iso = simple_file("insights_commands/date_--iso-8601_seconds")
    date_utc = simple_file("insights_commands/date_--utc")
    df__al = simple_file("insights_commands/df_-al")
    df__alP = simple_file("insights_commands/df_-alP")
    df__li = simple_file("insights_commands/df_-li")
    dig = simple_file("insights_commands/dig_dnssec_._DNSKEY")
    dig_dnssec = simple_file("insights_commands/dig_dnssec_._SOA")
    dig_edns = simple_file("insights_commands/dig_edns_0_._SOA")
    dig_noedns = simple_file("insights_commands/dig_noedns_._SOA")
    display_java = simple_file("insights_commands/alternatives_--display_java")
    display_name = simple_file("display_name")
    dmesg = simple_file("insights_commands/dmesg")
    dmidecode = simple_file("insights_commands/dmidecode")
    dmsetup_info = simple_file("insights_commands/dmsetup_info_-C")
    docker_info = simple_file("insights_commands/docker_info")
    docker_list_containers = simple_file(
        "insights_commands/docker_ps_--all_--no-trunc")
    docker_list_images = simple_file(
        "insights_commands/docker_images_--all_--no-trunc_--digests")
    dumpdev = simple_file(
        "insights_commands/awk_.ext_234_._print_1_.proc.mounts")
    engine_config_all = simple_file("insights_commands/engine-config_--all")
    ethtool = glob_file("insights_commands/ethtool_*", ignore="ethtool_-.*")
    ethtool_S = glob_file("insights_commands/ethtool_-S_*")
    ethtool_a = glob_file("insights_commands/ethtool_-a_*")
    ethtool_c = glob_file("insights_commands/ethtool_-c_*")
    ethtool_g = glob_file("insights_commands/ethtool_-g_*")
    ethtool_i = glob_file("insights_commands/ethtool_-i_*")
    ethtool_k = glob_file("insights_commands/ethtool_-k_*")
    facter = simple_file("insights_commands/facter")
    fc_match = simple_file(
        "insights_commands/fc-match_-sv_sans_regular_roman_family_fontformat")
    fdisk_l = simple_file("insights_commands/fdisk_-l")
    foreman_rake_db_migrate_status = simple_file(
        'insights_commands/foreman-rake_db_migrate_status')
    getcert_list = simple_file("insights_commands/getcert_list")
    getenforce = simple_file("insights_commands/getenforce")
    getsebool = simple_file("insights_commands/getsebool_-a")
    grub1_config_perms = simple_file(
        "insights_commands/ls_-l_.boot.grub.grub.conf")
    grub_config_perms = simple_file(
        "insights_commands/ls_-l_.boot.grub2.grub.cfg")
    grubby_default_index = simple_file(
        "insights_commands/grubby_--default-index")
    grubby_default_kernel = simple_file(
        "insights_commands/grubby_--default-kernel")
    gluster_v_info = simple_file("insights_commands/gluster_volume_info")
    gluster_v_status = simple_file("insights_commands/gluster_volume_status")
    hammer_ping = simple_file("insights_commands/hammer_ping")
    hammer_task_list = simple_file("insights_commands/hammer_--csv_task_list")
    heat_crontab = simple_file("insights_commands/crontab_-l_-u_heat")
    heat_crontab_container = simple_file(
        "insights_commands/docker_exec_heat_api_cron_.usr.bin.crontab_-l_-u_heat"
    )
    installed_rpms = head(all_installed_rpms)
    hostname = first_of([
        simple_file("insights_commands/hostname_-f"),
        simple_file("insights_commands/hostname")
    ])
    hponcfg_g = simple_file("insights_commands/hponcfg_-g")
    httpd_M = glob_file("insights_commands/*httpd*_-M")
    httpd_on_nfs = simple_file(
        "insights_commands/python_-m_insights.tools.cat_--no-header_httpd_on_nfs"
    )
    httpd_pid = simple_file("insights_commands/pgrep_-o_httpd")
    httpd_V = glob_file("insights_commands/*httpd*_-V")
    ifconfig = simple_file("insights_commands/ifconfig_-a")
    ip6tables = simple_file("insights_commands/ip6tables-save")
    ip_addr = simple_file("insights_commands/ip_addr")
    ip_addresses = simple_file("insights_commands/hostname_-I")
    ip_route_show_table_all = simple_file(
        "insights_commands/ip_route_show_table_all")
    ip_s_link = simple_file("insights_commands/ip_-s_link")
    ipcs_m = simple_file("insights_commands/ipcs_-m")
    ipcs_m_p = simple_file("insights_commands/ipcs_-m_-p")
    ipcs_s = simple_file("insights_commands/ipcs_-s")
    iptables = simple_file("insights_commands/iptables-save")
    ipv4_neigh = simple_file("insights_commands/ip_-4_neighbor_show_nud_all")
    ipv6_neigh = simple_file("insights_commands/ip_-6_neighbor_show_nud_all")
    ip_netns_exec_namespace_lsof = glob_file(
        "insights_commands/ip_netns_exec_*_lsof_-i")
    iscsiadm_m_session = simple_file("insights_commands/iscsiadm_-m_session")
    katello_service_status = simple_file(
        "insights_commands/katello-service_status")
    keystone_crontab = simple_file("insights_commands/crontab_-l_-u_keystone")
    keystone_crontab_container = simple_file(
        "insights_commands/docker_exec_keystone_cron_.usr.bin.crontab_-l_-u_keystone"
    )
    libkeyutils = simple_file(
        "insights_commands/find_-L_.lib_.lib64_-name_libkeyutils.so")
    libkeyutils_objdumps = simple_file(
        "insights_commands/find_-L_.lib_.lib64_-name_libkeyutils.so.1_-exec_objdump_-x"
    )
    locale = simple_file("insights_commands/locale")
    localtime = simple_file("insights_commands/file_-L_.etc.localtime")
    lpstat_p = simple_file("insights_commands/lpstat_-p")
    ls_boot = simple_file("insights_commands/ls_-lanR_.boot")
    ls_dev = simple_file("insights_commands/ls_-lanR_.dev")
    ls_disk = simple_file("insights_commands/ls_-lanR_.dev.disk")
    ls_docker_volumes = simple_file(
        "insights_commands/ls_-lanR_.var.lib.docker.volumes")
    ls_etc = simple_file("insights_commands/ls_-lanR_.etc")
    ls_ocp_cni_openshift_sdn = simple_file(
        "insights_commands/ls_-l_.var.lib.cni.networks.openshift-sdn")
    ls_origin_local_volumes_pods = simple_file(
        "insights_commands/ls_-l_.var.lib.origin.openshift.local.volumes.pods")
    ls_sys_firmware = simple_file("insights_commands/ls_-lanR_.sys.firmware")
    ls_var_lib_mongodb = simple_file(
        "insights_commands/ls_-la_.var.lib.mongodb")
    ls_R_var_lib_nova_instances = simple_file(
        "insights_commands/ls_-laR_.var.lib.nova.instances")
    ls_var_lib_nova_instances = simple_file(
        "insights_commands/ls_-laRZ_.var.lib.nova.instances")
    ls_var_opt_mssql = simple_file("insights_commands/ls_-ld_.var.opt.mssql")
    ls_usr_sbin = simple_file("insights_commands/ls_-ln_.usr.sbin")
    ls_var_log = simple_file(
        "insights_commands/ls_-la_.var.log_.var.log.audit")
    ls_var_opt_mssql_log = simple_file(
        "insights_commands/ls_-la_.var.opt.mssql.log")
    ls_var_www = simple_file("insights_commands/ls_-la_.dev.null_.var.www")
    ls_var_spool_clientmq = simple_file(
        "insights_commands/ls_-ln_.var.spool.clientmqueue")
    ls_var_tmp = simple_file("insights_commands/ls_-ln_.var.tmp")
    ls_var_run = simple_file("insights_commands/ls_-lnL_.var.run")
    ls_var_spool_postfix_maildrop = simple_file(
        "insights_commands/ls_-ln_.var.spool.postfix.maildrop")
    ls_osroot = simple_file("insights_commands/ls_-lan")
    lsblk = simple_file("insights_commands/lsblk")
    lsblk_pairs = simple_file(
        "insights_commands/lsblk_-P_-o_NAME_KNAME_MAJ_MIN_FSTYPE_MOUNTPOINT_LABEL_UUID_RA_RO_RM_MODEL_SIZE_STATE_OWNER_GROUP_MODE_ALIGNMENT_MIN-IO_OPT-IO_PHY-SEC_LOG-SEC_ROTA_SCHED_RQ-SIZE_TYPE_DISC-ALN_DISC-GRAN_DISC-MAX_DISC-ZERO"
    )
    lscpu = simple_file("insights_commands/lscpu")
    ls_lib_firmware = simple_file("insights_commands/ls_-lanR_.lib.firmware")
    lsmod = simple_file("insights_commands/lsmod")
    lsof = simple_file("insights_commands/lsof")
    lspci = simple_file("insights_commands/lspci_-k")
    lssap = simple_file("insights_commands/usr.sap.hostctrl.exe.lssap")
    lsscsi = simple_file("insights_commands/lsscsi")
    lvdisplay = simple_file("insights_commands/lvdisplay")
    lvs_noheadings = simple_file(
        "insights_commands/lvs_--nameprefixes_--noheadings_--separator_-a_-o_lv_name_lv_size_lv_attr_mirror_log_vg_name_devices_region_size_data_percent_metadata_percent_segtype_seg_monitor_--config_global_locking_type_0"
    )
    lvs_noheadings_all = simple_file(
        "insights_commands/lvs_--nameprefixes_--noheadings_--separator_-a_-o_lv_name_lv_size_lv_attr_mirror_log_vg_name_devices_region_size_data_percent_metadata_percent_segtype_--config_global_locking_type_0_devices_filter_a"
    )
    max_uid = simple_file(
        "insights_commands/awk_-F_if_3_max_max_3_END_print_max_.etc.passwd")
    md5chk_files = simple_file(
        "insights_commands/md5sum_.dev.null_.etc.pki._product_product-default_.69.pem"
    )
    mlx4_port = simple_file(
        "insights_commands/find_.sys.bus.pci.devices._.mlx4_port_0-9_-print_-exec_cat"
    )
    mount = simple_file("insights_commands/mount")
    modinfo_i40e = simple_file("insights_commands/modinfo_i40e")
    modinfo_vmxnet3 = simple_file("insights_commands/modinfo_vmxnet3")
    multicast_querier = simple_file(
        "insights_commands/find_.sys.devices.virtual.net._-name_multicast_querier_-print_-exec_cat"
    )
    multipath_conf_initramfs = simple_file(
        "insights_commands/lsinitrd_-f_.etc.multipath.conf")
    multipath__v4__ll = simple_file("insights_commands/multipath_-v4_-ll")
    mysqladmin_vars = simple_file("insights_commands/mysqladmin_variables")
    named_checkconf_p = simple_file("insights_commands/named-checkconf_-p")
    namespace = simple_file("insights_commands/ls_.var.run.netns")
    netstat = simple_file("insights_commands/netstat_-neopa")
    netstat_agn = simple_file("insights_commands/netstat_-agn")
    netstat_i = simple_file("insights_commands/netstat_-i")
    netstat_s = simple_file("insights_commands/netstat_-s")
    nmcli_conn_show = simple_file("insights_commands/nmcli_conn_show")
    nmcli_dev_show = simple_file("insights_commands/nmcli_dev_show")
    nova_crontab = simple_file("insights_commands/crontab_-l_-u_nova")
    nova_crontab_container = simple_file(
        "insights_commands/docker_exec_nova_api_cron_.usr.bin.crontab_-l_-u_nova"
    )
    nova_uid = simple_file("insights_commands/id_-u_nova")
    nova_migration_uid = simple_file("insights_commands/id_-u_nova_migration")
    ntpq_leap = simple_file("insights_commands/ntpq_-c_rv_0_leap")
    ntpq_pn = simple_file("insights_commands/ntpq_-pn")
    ntptime = simple_file("insights_commands/ntptime")
    numeric_user_group_name = simple_file(
        "insights_commands/grep_-c_digit_.etc.passwd_.etc.group")
    oc_get_bc = simple_file(
        "insights_commands/oc_get_bc_-o_yaml_--all-namespaces")
    oc_get_build = simple_file(
        "insights_commands/oc_get_build_-o_yaml_--all-namespaces")
    oc_get_clusterrole_with_config = simple_file(
        "insights_commands/oc_get_clusterrole_--config_.etc.origin.master.admin.kubeconfig"
    )
    oc_get_clusterrolebinding_with_config = simple_file(
        "insights_commands/oc_get_clusterrolebinding_--config_.etc.origin.master.admin.kubeconfig"
    )
    oc_get_dc = simple_file(
        "insights_commands/oc_get_dc_-o_yaml_--all-namespaces")
    oc_get_egressnetworkpolicy = simple_file(
        "insights_commands/oc_get_egressnetworkpolicy_-o_yaml_--all-namespaces"
    )
    oc_get_endpoints = simple_file(
        "insights_commands/oc_get_endpoints_-o_yaml_--all-namespaces")
    oc_get_event = simple_file(
        "insights_commands/oc_get_event_-o_yaml_--all-namespaces")
    oc_get_node = simple_file("insights_commands/oc_get_nodes_-o_yaml")
    oc_get_pod = simple_file(
        "insights_commands/oc_get_pod_-o_yaml_--all-namespaces")
    oc_get_project = simple_file(
        "insights_commands/oc_get_project_-o_yaml_--all-namespaces")
    oc_get_pv = simple_file(
        "insights_commands/oc_get_pv_-o_yaml_--all-namespaces")
    oc_get_pvc = simple_file(
        "insights_commands/oc_get_pvc_-o_yaml_--all-namespaces")
    oc_get_rc = simple_file(
        "insights_commands/oc_get_rc_-o_yaml_--all-namespaces")
    oc_get_role = simple_file(
        "insights_commands/oc_get_role_-o_yaml_--all-namespaces")
    oc_get_rolebinding = simple_file(
        "insights_commands/oc_get_rolebinding_-o_yaml_--all-namespaces")
    oc_get_route = simple_file(
        "insights_commands/oc_get_route_-o_yaml_--all-namespaces")
    oc_get_service = simple_file(
        "insights_commands/oc_get_service_-o_yaml_--all-namespaces")
    oc_get_configmap = simple_file(
        "insights_commands/oc_get_configmap_-o_yaml_--all-namespaces")
    openvswitch_other_config = simple_file(
        "insights_commands/ovs-vsctl_-t_5_get_Open_vSwitch_._other_config")
    ovs_appctl_fdb_show_bridge = glob_file(
        "insights_commands/ovs-appctl_fdb.show_*")
    ovs_vsctl_list_bridge = simple_file(
        "insights_commands/ovs-vsctl_list_bridge")
    ovs_vsctl_show = simple_file("insights_commands/ovs-vsctl_show")
    parted__l = simple_file("insights_commands/parted_-l_-s")
    passenger_status = simple_file("insights_commands/passenger-status")
    pcs_config = simple_file("insights_commands/pcs_config")
    pcs_status = simple_file("insights_commands/pcs_status")
    ps_aux = simple_file("insights_commands/ps_aux")
    ps_auxcww = simple_file("insights_commands/ps_auxcww")
    ps_auxww = simple_file("insights_commands/ps_auxww")
    ps_ef = simple_file("insights_commands/ps_-ef")
    ps_eo = simple_file("insights_commands/ps_-eo_pid_ppid_comm")
    pvs = simple_file(
        "insights_commands/pvs_-a_-v_-o_pv_mda_free_pv_mda_size_pv_mda_count_pv_mda_used_count_pe_count_--config_global_locking_type_0"
    )
    pvs_noheadings = simple_file(
        "insights_commands/pvs_--nameprefixes_--noheadings_--separator_-a_-o_pv_all_vg_name_--config_global_locking_type_0"
    )
    pvs_noheadings_all = simple_file(
        "insights_commands/pvs_--nameprefixes_--noheadings_--separator_-a_-o_pv_all_vg_name_--config_global_locking_type_0_devices_filter_a"
    )
    qpid_stat_g = simple_file(
        "insights_commands/qpid-stat_-g_--ssl-certificate_.etc.pki.katello.qpid_client_striped.crt_-b_amqps_..localhost_5671"
    )
    qpid_stat_q = simple_file(
        "insights_commands/qpid-stat_-q_--ssl-certificate_.etc.pki.katello.qpid_client_striped.crt_-b_amqps_..localhost_5671"
    )
    qpid_stat_u = simple_file(
        "insights_commands/qpid-stat_-u_--ssl-certificate_.etc.pki.katello.qpid_client_striped.crt_-b_amqps_..localhost_5671"
    )
    rabbitmq_policies = simple_file(
        "insights_commands/rabbitmqctl_list_policies")
    rabbitmq_queues = simple_file(
        "insights_commands/rabbitmqctl_list_queues_name_messages_consumers_auto_delete"
    )
    rabbitmq_report = simple_file("insights_commands/rabbitmqctl_report")
    rabbitmq_users = simple_file("insights_commands/rabbitmqctl_list_users")
    rhn_charsets = simple_file("insights_commands/rhn-charsets")
    rhn_schema_stats = simple_file("insights_commands/rhn-schema-stats")
    rhn_schema_version = simple_file("insights_commands/rhn-schema-version")
    rhev_data_center = simple_file(
        "insights_commands/python_-m_insights.tools.cat_--no-header_rhev_data_center"
    )
    rhv_log_collector_analyzer = simple_file(
        "insights_commands/rhv-log-collector-analyzer_--json")
    root_crontab = simple_file("insights_commands/crontab_-l_-u_root")
    route = simple_file("insights_commands/route_-n")
    rpm_V_packages = simple_file(
        "insights_commands/rpm_-V_coreutils_procps_procps-ng_shadow-utils_passwd_sudo"
    )
    sapcontrol_getsystemupdatelist = simple_file(
        "insights_commands/python_-m_insights.tools.cat_--no-header_sapcontrol_getsystemupdatelist"
    )
    saphostctl_getcimobject_sapinstance = simple_file(
        "insights_commands/usr.sap.hostctrl.exe.saphostctrl_-function_GetCIMObject_-enuminstances_SAPInstance"
    )
    saphostexec_status = simple_file(
        "insights_commands/usr.sap.hostctrl.exe.saphostexec_-status")
    saphostexec_version = simple_file(
        "insights_commands/usr.sap.hostctrl.exe.saphostexec_-version")
    sestatus = simple_file("insights_commands/sestatus_-b")
    smbstatus_S = simple_file("insights_commands/smbstatus_-S")
    smbstatus_p = simple_file("insights_commands/smbstatus_-p")
    software_collections_list = simple_file('insights_commands/scl_--list')
    ss = simple_file("insights_commands/ss_-tupna")
    sshd_config_perms = simple_file(
        "insights_commands/ls_-l_.etc.ssh.sshd_config")
    subscription_manager_facts_list = simple_file(
        "insights_commands/subscription-manager_facts_--list")
    subscription_manager_id = simple_file(
        "insights_commands/subscription-manager_identity")
    subscription_manager_list_consumed = simple_file(
        'insights_commands/subscription-manager_list_--consumed')
    subscription_manager_list_installed = simple_file(
        'insights_commands/subscription-manager_list_--installed')
    subscription_manager_release_show = simple_file(
        'insights_commands/subscription-manager_release_--show')
    subscription_manager_repos_list_enabled = simple_file(
        'insights_commands/subscription-manager_repos_--list-enabled')
    sysctl = simple_file("insights_commands/sysctl_-a")
    sysctl_conf_initramfs = simple_file(
        "insights_commands/lsinitrd_.boot.initramfs-_kdump.img_-f_.etc.sysctl.conf_.etc.sysctl.d._.conf"
    )
    systemctl_cinder_volume = simple_file(
        "insights_commands/systemctl_show_openstack-cinder-volume")
    systemctl_httpd = simple_file("insights_commands/systemctl_show_httpd")
    systemctl_list_unit_files = simple_file(
        "insights_commands/systemctl_list-unit-files")
    systemctl_list_units = simple_file(
        "insights_commands/systemctl_list-units")
    systemctl_mariadb = simple_file("insights_commands/systemctl_show_mariadb")
    systemctl_pulp_workers = simple_file(
        "insights_commands/systemctl_show_pulp_workers")
    systemctl_pulp_resmg = simple_file(
        "insights_commands/systemctl_show_pulp_resource_manager")
    systemctl_pulp_celerybeat = simple_file(
        "insights_commands/systemctl_show_pulp_celerybeat")
    systemctl_qpidd = simple_file("insights_commands/systemctl_show_qpidd")
    systemctl_qdrouterd = simple_file(
        "insights_commands/systemctl_show_qdrouterd")
    systemctl_smartpdc = simple_file(
        "insights_commands/systemctl_show_smart_proxy_dynflow_core")
    systool_b_scsi_v = simple_file("insights_commands/systool_-b_scsi_-v")
    teamdctl_config_dump = glob_file(
        "insights_commands/teamdctl_*_config_dump")
    teamdctl_state_dump = glob_file("insights_commands/teamdctl_*_state_dump")
    tomcat_vdc_fallback = simple_file(
        "insights_commands/find_.usr.share_-maxdepth_1_-name_tomcat_-exec_.bin.grep_-R_-s_VirtualDirContext_--include_.xml"
    )
    tuned_adm = simple_file("insights_commands/tuned-adm_list")
    ulimit_hard = simple_file("insights_commands/ulimit_-a_-H")
    uname = simple_file("insights_commands/uname_-a")
    uptime = simple_file("insights_commands/uptime")
    vgdisplay = simple_file("insights_commands/vgdisplay")
    vgs_noheadings = simple_file(
        "insights_commands/vgs_--nameprefixes_--noheadings_--separator_-a_-o_vg_all_--config_global_locking_type_0"
    )
    vgs_noheadings_all = simple_file(
        "insights_commands/vgs_--nameprefixes_--noheadings_--separator_-a_-o_vg_all_--config_global_locking_type_0_devices_filter_a"
    )
    virsh_list_all = simple_file(
        "insights_commands/virsh_--readonly_list_--all")
    virt_what = simple_file("insights_commands/virt-what")
    woopsie = simple_file(
        "insights_commands/find_.var.crash_.var.tmp_-path_.reports-_.whoopsie-report"
    )
    yum_repolist = simple_file("insights_commands/yum_-C_repolist")
コード例 #4
0
class SosSpecs(Specs):
    auditctl_status = simple_file("sos_commands/auditd/auditctl_-s")
    blkid = first_file([
        "sos_commands/block/blkid_-c_.dev.null",
        "sos_commands/filesys/blkid_-c_.dev.null"
    ])
    candlepin_log = first_of([
        simple_file("/var/log/candlepin/candlepin.log"),
        simple_file(
            "sos_commands/foreman/foreman-debug/var/log/candlepin/candlepin.log"
        )
    ])
    candlepin_error_log = first_of([
        simple_file("var/log/candlepin/error.log"),
        simple_file(
            r"sos_commands/foreman/foreman-debug/var/log/candlepin/error.log")
    ])
    catalina_out = glob_file("var/log/tomcat*/catalina.out")
    catalina_server_log = glob_file("var/log/tomcat*/catalina*.log")
    ceph_osd_tree_text = simple_file("sos_commands/ceph/ceph_osd_tree")
    ceph_report = simple_file("sos_commands/ceph/ceph_report")
    ceph_health_detail = simple_file(
        "sos_commands/ceph/ceph_health_detail_--format_json-pretty")
    chkconfig = first_file([
        "sos_commands/startup/chkconfig_--list",
        "sos_commands/services/chkconfig_--list"
    ])
    cib_xml = first_of([
        simple_file("/var/lib/pacemaker/cib/cib.xml"),
        head(glob_file("sos_commands/pacemaker/crm_report/*/cib.xml"))
    ])
    cpupower_frequency_info = simple_file(
        "sos_commands/processor/cpupower_frequency-info")
    date = first_of([
        simple_file("sos_commands/general/date"),
        simple_file("sos_commands/date/date")
    ])
    df__al = first_file([
        "sos_commands/filesys/df_-al", "sos_commands/filesys/df_-al_-x_autofs"
    ])
    display_java = simple_file("sos_commands/java/alternatives_--display_java")
    docker_info = simple_file("sos_commands/docker/docker_info")
    docker_list_containers = first_file(
        ["sos_commands/docker/docker_ps_-a", "sos_commands/docker/docker_ps"])
    docker_list_images = simple_file("sos_commands/docker/docker_images")
    docker_image_inspect = glob_file("sos_commands/docker/docker_inspect_*")
    dmesg = first_file([
        "sos_commands/kernel/dmesg", "sos_commands/general/dmesg",
        "var/log/dmesg"
    ])
    dmidecode = simple_file("sos_commands/hardware/dmidecode")
    dmsetup_info = simple_file("sos_commands/devicemapper/dmsetup_info_-c")
    dumpe2fs_h = glob_file("sos_commands/filesys/dumpe2fs_-h_*")
    ethtool = glob_file("sos_commands/networking/ethtool_*",
                        ignore="ethtool_-.*")
    ethtool_S = glob_file("sos_commands/networking/ethtool_-S_*")
    ethtool_T = glob_file("sos_commands/networking/ethtool_-T_*")
    ethtool_a = glob_file("sos_commands/networking/ethtool_-a_*")
    ethtool_c = glob_file("sos_commands/networking/ethtool_-c_*")
    ethtool_g = glob_file("sos_commands/networking/ethtool_-g_*")
    ethtool_i = glob_file("sos_commands/networking/ethtool_-i_*")
    ethtool_k = glob_file("sos_commands/networking/ethtool_-k_*")
    fdisk_l_sos = first_of([
        glob_file(r"sos_commands/filesys/fdisk_-l_*"),
        glob_file(r"sos_commands/block/fdisk_-l_*")
    ])
    foreman_production_log = first_of([
        simple_file("/var/log/foreman/production.log"),
        simple_file(
            "sos_commands/foreman/foreman-debug/var/log/foreman/production.log"
        )
    ])
    foreman_proxy_conf = first_of([
        simple_file("/etc/foreman-proxy/settings.yml"),
        simple_file(
            "sos_commands/foreman/foreman-debug/etc/foreman-proxy/settings.yml"
        )
    ])
    foreman_proxy_log = first_of([
        simple_file("/var/log/foreman-proxy/proxy.log"),
        simple_file(
            "sos_commands/foreman/foreman-debug/var/log/foreman-proxy/proxy.log"
        )
    ])
    foreman_satellite_log = first_of([
        simple_file("/var/log/foreman-installer/satellite.log"),
        simple_file(
            "sos_commands/foreman/foreman-debug/var/log/foreman-installer/satellite.log"
        )
    ])
    foreman_ssl_access_ssl_log = first_file([
        "var/log/httpd/foreman-ssl_access_ssl.log",
        r"sos_commands/foreman/foreman-debug/var/log/httpd/foreman-ssl_access_ssl.log"
    ])
    hammer_ping = first_file([
        "sos_commands/foreman/hammer_ping",
        "sos_commands/foreman/foreman-debug/hammer-ping"
    ])
    getcert_list = first_file(
        ["sos_commands/ipa/ipa-getcert_list", "sos_commands/ipa/getcert_list"])
    gluster_v_info = simple_file("sos_commands/gluster/gluster_volume_info")
    gluster_v_status = simple_file(
        "sos_commands/gluster/gluster_volume_status")
    gluster_peer_status = simple_file(
        "sos_commands/gluster/gluster_peer_status")
    hostname = first_file(
        ["sos_commands/general/hostname_-f", "sos_commands/host/hostname_-f"])
    hostname_default = first_file([
        "sos_commands/general/hostname", "sos_commands/host/hostname",
        "/etc/hostname", "hostname"
    ])
    hostname_short = first_file([
        "sos_commands/general/hostname", "sos_commands/host/hostname",
        "/etc/hostname", "hostname"
    ])
    httpd_M = simple_file("sos_commands/apache/apachectl_-M")
    installed_rpms = first_file(
        ["sos_commands/rpm/package-data", "installed-rpms"])
    ip_addr = first_of([
        simple_file("sos_commands/networking/ip_-d_address"),
        simple_file("sos_commands/networking/ip_address")
    ])
    ip_neigh_show = first_file([
        "sos_commands/networking/ip_-s_-s_neigh_show",
        "sos_commands/networking/ip_neigh_show"
    ])
    ip_route_show_table_all = simple_file(
        "sos_commands/networking/ip_route_show_table_all")
    ip_s_link = first_of([
        simple_file("sos_commands/networking/ip_-s_-d_link"),
        simple_file("sos_commands/networking/ip_-s_link"),
        simple_file("sos_commands/networking/ip_link")
    ])
    iptables = first_file(
        ["/etc/sysconfig/iptables", "/etc/sysconfig/iptables.save"])
    journal_since_boot = first_of([
        simple_file("sos_commands/logs/journalctl_--no-pager_--boot"),
        simple_file("sos_commands/logs/journalctl_--no-pager_--catalog_--boot")
    ])
    locale = simple_file("sos_commands/i18n/locale")
    lsblk = first_file(
        ["sos_commands/block/lsblk", "sos_commands/filesys/lsblk"])
    ls_boot = simple_file("sos_commands/boot/ls_-lanR_.boot")
    lscpu = simple_file("sos_commands/processor/lscpu")
    lsinitrd = simple_file("sos_commands/boot/lsinitrd")
    lsof = simple_file("sos_commands/process/lsof_-b_M_-n_-l")
    lsmod = simple_file("sos_commands/kernel/lsmod")
    lspci = first_of([
        simple_file("sos_commands/pci/lspci_-nnvv"),
        simple_file("sos_commands/pci/lspci_-nvv"),
        simple_file("sos_commands/pci/lspci")
    ])
    lsscsi = simple_file("sos_commands/scsi/lsscsi")
    ls_dev = first_file([
        "sos_commands/block/ls_-lanR_.dev",
        "sos_commands/devicemapper/ls_-lanR_.dev"
    ])
    lvs = first_file([
        "sos_commands/lvm2/lvs_-a_-o_lv_tags_devices_--config_global_locking_type_0",
        "sos_commands/lvm2/lvs_-a_-o_devices"
    ])
    modinfo_all = glob_file("sos_commands/kernel/modinfo_*")
    mount = simple_file("sos_commands/filesys/mount_-l")
    multipath__v4__ll = first_file([
        "sos_commands/multipath/multipath_-v4_-ll",
        "sos_commands/devicemapper/multipath_-v4_-ll"
    ])
    netstat = first_file([
        "sos_commands/networking/netstat_-neopa",
        "sos_commands/networking/netstat_-W_-neopa",
        "sos_commands/networking/netstat_-T_-neopa"
    ])
    netstat_agn = first_of([
        simple_file("sos_commands/networking/netstat_-agn"),
        simple_file("sos_commands/networking/netstat_-W_-agn"),
        simple_file("sos_commands/networking/netstat_-T_-agn")
    ])
    netstat_s = simple_file("sos_commands/networking/netstat_-s")
    nmcli_dev_show = simple_file("sos_commands/networking/nmcli_device_show")
    nmcli_dev_show_sos = glob_file([
        "sos_commands/networking/nmcli_dev_show_*",
        "sos_commands/networkmanager/nmcli_dev_show_*"
    ])
    ntptime = simple_file("sos_commands/ntp/ntptime")
    openvswitch_other_config = simple_file(
        "sos_commands/openvswitch/ovs-vsctl_-t_5_get_Open_vSwitch_._other_config"
    )
    ovs_vsctl_show = simple_file(
        "sos_commands/openvswitch/ovs-vsctl_-t_5_show")
    pcs_config = simple_file("sos_commands/pacemaker/pcs_config")
    pcs_quorum_status = simple_file("sos_commands/pacemaker/pcs_quorum_status")
    pcs_status = simple_file("sos_commands/pacemaker/pcs_status")
    podman_image_inspect = glob_file("sos_commands/podman/podman_inspect_*")
    podman_list_containers = first_file(
        ["sos_commands/podman/podman_ps_-a", "sos_commands/podman/podman_ps"])
    podman_list_images = simple_file("sos_commands/podman/podman_images")
    ps_alxwww = simple_file("sos_commands/process/ps_alxwww")
    ps_aux = first_file([
        "sos_commands/process/ps_aux", "sos_commands/process/ps_auxwww",
        "sos_commands/process/ps_auxcww"
    ])
    ps_auxcww = first_file([
        "sos_commands/process/ps_auxcww", "sos_commands/process/ps_auxwww",
        "sos_commands/process/ps_aux"
    ])
    ps_auxww = first_file([
        "sos_commands/process/ps_auxww", "sos_commands/process/ps_auxwww",
        "sos_commands/process/ps_aux", "sos_commands/process/ps_auxcww"
    ])
    puppet_ssl_cert_ca_pem = first_file([
        "/etc/puppetlabs/puppet/ssl/certs/ca.pem",
        "sos_commands/foreman/foreman-debug/var/lib/puppet/ssl/certs/ca.pem"
    ])
    pvs = first_file([
        "sos_commands/lvm2/pvs_-a_-v_-o_pv_mda_free_pv_mda_size_pv_mda_count_pv_mda_used_count_pe_start_--config_global_locking_type_0",
        "sos_commands/lvm2/pvs_-a_-v", "sos_commands/devicemapper/pvs_-a_-v"
    ])
    qpid_stat_q = first_file([
        "sos_commands/pulp/qpid-stat_-q_--ssl-certificate_.etc.pki.pulp.qpid.client.crt_-b_amqps_..localhost_5671",
        "sos_commands/pulp/qpid-stat_-q_--ssl-certificate_.etc.pki.katello.qpid_client_striped.crt_-b_amqps_..localhost_5671",
        "sos_commands/katello/qpid-stat_-q_--ssl-certificate_.etc.pki.pulp.qpid.client.crt_-b_amqps_..localhost_5671",
        "sos_commands/katello/qpid-stat_-q_--ssl-certificate_.etc.pki.katello.qpid_client_striped.crt_-b_amqps_..localhost_5671",
        "sos_commands/foreman/foreman-debug/qpid-stat-q", "qpid-stat-q",
        "sos_commands/foreman/foreman-debug/qpid_stat_queues",
        "qpid_stat_queues"
    ])
    qpid_stat_u = first_file([
        "sos_commands/pulp/qpid-stat_-u_--ssl-certificate_.etc.pki.pulp.qpid.client.crt_-b_amqps_..localhost_5671",
        "sos_commands/pulp/qpid-stat_-u_--ssl-certificate_.etc.pki.katello.qpid_client_striped.crt_-b_amqps_..localhost_5671",
        "sos_commands/katello/qpid-stat_-u_--ssl-certificate_.etc.pki.pulp.qpid.client.crt_-b_amqps_..localhost_5671",
        "sos_commands/katello/qpid-stat_-u_--ssl-certificate_.etc.pki.katello.qpid_client_striped.crt_-b_amqps_..localhost_5671",
        "sos_commands/foreman/foreman-debug/qpid-stat-u", "qpid-stat-u",
        "sos_commands/foreman/foreman-debug/qpid_stat_subscriptions",
        "qpid_stat_subscriptions"
    ])
    rabbitmq_report = simple_file("sos_commands/rabbitmq/rabbitmqctl_report")
    rabbitmq_report_of_containers = glob_file(
        "sos_commands/rabbitmq/docker_exec_-t_rabbitmq-bundle-docker-*_rabbitmqctl_report"
    )
    rhn_charsets = first_file([
        "sos_commands/satellite/rhn-charsets", "sos_commands/rhn/rhn-charsets"
    ])
    root_crontab = first_file([
        "sos_commands/crontab/root_crontab", "sos_commands/cron/root_crontab"
    ])
    route = simple_file("sos_commands/networking/route_-n")
    sestatus = simple_file("sos_commands/selinux/sestatus_-b")
    sssd_logs = glob_file("var/log/sssd/*.log")
    samba_logs = glob_file("var/log/samba/log.*")
    subscription_manager_list_consumed = first_file([
        'sos_commands/yum/subscription-manager_list_--consumed',
        'sos_commands/subscription_manager/subscription-manager_list_--consumed',
        'sos_commands/general/subscription-manager_list_--consumed'
    ])
    subscription_manager_list_installed = first_file([
        'sos_commands/yum/subscription-manager_list_--installed',
        'sos_commands/subscription_manager/subscription-manager_list_--installed',
        'sos_commands/general/subscription-manager_list_--installed'
    ])
    sysctl = simple_file("sos_commands/kernel/sysctl_-a")
    systemctl_list_unit_files = simple_file(
        "sos_commands/systemd/systemctl_list-unit-files")
    systemctl_list_units = first_file([
        "sos_commands/systemd/systemctl_list-units",
        "sos_commands/systemd/systemctl_list-units_--all"
    ])
    systemctl_show_all_services = simple_file(
        "sos_commands/systemd/systemctl_show_service_--all")
    teamdctl_config_dump = glob_file(
        "sos_commands/teamd/teamdctl_*_config_dump")
    teamdctl_state_dump = glob_file("sos_commands/teamd/teamdctl_*_state_dump")
    uname = simple_file("sos_commands/kernel/uname_-a")
    uptime = first_of([
        simple_file("sos_commands/general/uptime"),
        simple_file("sos_commands/host/uptime")
    ])
    var_qemu_xml = glob_file(r"var/run/libvirt/qemu/*.xml")
    vdsm_import_log = glob_file("var/log/vdsm/import/import-*.log")
    vgdisplay = first_file([
        "sos_commands/lvm2/vgdisplay_-vv_--config_global_locking_type_0",
        "sos_commands/lvm2/vgdisplay_-vv"
    ])
    vgs = first_file([
        "sos_commands/lvm2/vgs_-v_-o_vg_mda_count_vg_mda_free_vg_mda_size_vg_mda_used_count_vg_tags_--config_global_locking_type_0",
        "sos_commands/lvm2/vgs_-v", "sos_commands/devicemapper/vgs_-v"
    ])
    xfs_info = glob_file("sos_commands/xfs/xfs_info*")
    yum_repolist = simple_file("sos_commands/yum/yum_-C_repolist")