HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/xen.cpython-36.pyc
3

3��d�
�@s6ddlmZmZddlZddlZGdd�dee�ZdS)�)�Plugin�RedHatPluginNc@s@eZdZdZdZdZdd�Zdd�Zdd	�Zd
d�Z	dd
�Z
dS)�XenzXen virtualizationZxen�virtcCsXtjdtj�r(|jd�}|ddkr(dStjdtj�rT|jd�}|ddkrPdSd	Sd
S)Nz/proc/acpi/dsdtzgrep -qi xen /proc/acpi/dsdtZstatusr�hvmz/proc/xen/capabilitiesz(grep -q control_d /proc/xen/capabilities�dom0�domU�	baremetal)�os�access�R_OK�exec_cmd)�self�result�r�/usr/lib/python3.6/xen.py�determine_xen_hosts

zXen.determine_xen_hostcCs|j�dkS)Nr	)r)rrrr�
check_enabled#szXen.check_enabledcCs&|jd�d}tjd|�d}|j�S)Nzpidof xenstored�outputz
$r)r
�re�split�isdigit)rZxs_pidZ	xs_pidnumrrr�is_running_xenstored&szXen.is_running_xenstoredcCs*|jddddg�|jd�|jd�dS)Nz/proc/xen/balloonz/proc/xen/capabilitiesz/proc/xen/xsd_kvaz/proc/xen/xsd_portzgrep pae /proc/cpuinfoz egrep -e 'vmx|svm' /proc/cpuinfo)�
add_copy_spec�add_cmd_output)rrrr�dom_collect_proc+s
zXen.dom_collect_proccCs�|j�}|dkr$|j�|jd�nr|dkr.nh|dkr�|jddddd	d
g�|jddd
ddg�|j�|j�r�|jd�|jd�q�|jd�ndS|jd|�dS)Nrz/sys/hypervisorrrz/var/log/xenz/etc/xenz/sys/hypervisor/versionz/sys/hypervisor/compilationz/sys/hypervisor/propertiesz/sys/hypervisor/typezxm dmesgzxm infozxm listzxm list --longzbridge link showz/sys/hypervisor/uuidzxenstore-lsz/var/lib/xenstored/tdbzXen hostType: )rrrrrZadd_custom_text)rZ	host_typerrr�setup6s6
z	Xen.setupN)r)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesrrrrrrrrrrsr)Zsos.report.pluginsrrr
rrrrrr�<module>	s