관리-도구
편집 파일: xen.pyc
� u��ec @ sK d d l m Z m Z d d l Z d d l Z d e e f d � � YZ d S( i����( t Plugint RedHatPluginNt Xenc B sG e Z d Z d Z d Z d � Z d � Z d � Z d � Z d � Z RS( s Xen virtualization t xent virtc C s~ t j d t j � r; | j d � } | d d k r; d Sn t j d t j � rz | j d � } | d d k rs d Sd Sn d S( Ns /proc/acpi/dsdts grep -qi xen /proc/acpi/dsdtt statusi t hvms /proc/xen/capabilitiess( grep -q control_d /proc/xen/capabilitiest dom0t domUt baremetal( t ost accesst R_OKt exec_cmd( t selft result( ( s3 /usr/lib/python2.7/site-packages/sos/plugins/xen.pyt determine_xen_host s c C s | j � d k S( NR ( R ( R ( ( s3 /usr/lib/python2.7/site-packages/sos/plugins/xen.pyt check_enabled# s c C s3 | j d � d } t j d | � d } | j � S( Ns pidof xenstoredt outputs $i ( R t ret splitt isdigit( R t xs_pidt xs_pidnum( ( s3 /usr/lib/python2.7/site-packages/sos/plugins/xen.pyt is_running_xenstored&