Current File : //usr/share/dstat/dstat_gpfs.pyo |
�
�-Lc @ s d e f d � � YZ d S( t dstat_pluginc B s) e Z d Z d � Z d � Z d � Z RS( sT
Total amount of read and write throughput (in bytes) on a GPFS filesystem.
c C s d | _ d | _ d | _ d S( Ns gpfs i/ot readt writet _br_t _bw_( s reads write( R R ( t namet nickt vars( t self( ( s /usr/share/dstat/dstat_gpfs.pyt __init__ s c C s� t j d t j � ru y? t d � \ | _ | _ | _ | j j d � t | j � Wn t k
rp t
d � n Xt St
d � d S( Ns /usr/lpp/mmfs/bin/mmpmons /usr/lpp/mmfs/bin/mmpmon -p -ss reset
s( Cannot interface with gpfs mmpmon binarys Needs GPFS mmpmon binary( t ost accesst X_OKt dpopent stdint stdoutt stderrR t readpipet IOErrort Exceptiont True( R ( ( s /usr/share/dstat/dstat_gpfs.pyt check
s
c C s� y� | j j d � xg t | j � D]V } | s5 q# n | j � } x5 | j D]* } t | | j | � d � | j | <qK Wq# Wx8 | j D]- } | j | | j | d t
| j | <q� WWn� t k
r} t
j d k r� d | j | f GHn xy | j D] } d | j | <q� WnX t k
rj} t
j d k rFd | j | f GHn x"