관리-도구
편집 파일: infiniband.pyo
� u��ec @ sQ d d l Z d d l m Z m Z m Z m Z d e e e e f d � � YZ d S( i����N( t Plugint RedHatPlugint DebianPlugint UbuntuPlugint Infinibandc B s) e Z d Z d Z d Z d Z d � Z RS( s Infiniband data t infinibandt hardwares libibverbs-utilst opensmt rdmas infiniband-diagsc C s� | j d d d g � | j d � | j d d d d g � d d d d g } d } t j j | � ru t j | � n g } x@| D]8} | j d � r� q� n xt j | | d � D]} y t | | d | d � } Wn t k r� q� n X| j � } | j � | d k rq� n y t | | d | d � } Wn t k rPq� n X| j � } | j � | j d � s|q� n d | | f } | j g | D] } d | | f ^ q�� q� Wq� Wd S( Ns /etc/ofed/openib.confs /etc/ofed/opensm.confs /etc/rdmas /var/log/opensm*t ibv_devicess ibv_devinfo -vt ibstatt ibstatust ibhostst iblinkinfot sminfot perfquerys /sys/class/infiniband/t hfis /portss /ports/s /link_layers InfiniBand s /states : ACTIVE s -C %s -P %ss %s %s( t add_copy_spect add_cmd_outputt ost patht isdirt listdirt startswitht opent IOErrort readlinet closet endswith( t selft ports_cmdst IB_SYS_DIRt ibst ibt portt pt link_layert st statet optst c( ( s: /usr/lib/python2.7/site-packages/sos/plugins/infiniband.pyt setup sN ' ( R ( s libibverbs-utilsR R s infiniband-diags( t __name__t __module__t __doc__t plugin_namet profilest packagesR) ( ( ( s: /usr/lib/python2.7/site-packages/sos/plugins/infiniband.pyR s ( R t sos.pluginsR R R R R ( ( ( s: /usr/lib/python2.7/site-packages/sos/plugins/infiniband.pyt <module> s "