| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/dstat/ |
Upload File : |
Ñò
¾Kc @ s d e f d „ ƒ YZ d S( t dstat_pluginc B s5 e Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s. d | _ | i ƒ | _ d | _ d | _ d S( Nt vmkhbat readt writi ( s readR ( t namet discovert nickt cols( t self( ( s! /usr/share/dstat/dstat_vmk_hba.pyt __init__ s c G sÈ g } y t i d ƒ } Wn t d ‚ n Xx• | D] } x„ t d | ƒ i ƒ D]l } | i ƒ } t | ƒ d j o qP n | d d j o qP n | d g d j o qP n | i | ƒ qP Wq3 W| S( Ns /proc/vmware/scsi/s Needs VMware ESXs /proc/vmware/scsi/%s/statsi
i t cmdst 0( t ost listdirt Exceptiont dopent readlinest splitt lent append( R t listt retR t linet l( ( s! /usr/share/dstat/dstat_vmk_hba.pyR s$
c C sm g } t i o
t i } n | i } | i ƒ x6 | D]. } | | i d g j o | i | ƒ q7 q7 W| S( Nt total( t opt disklistR t sortR ( R R R R ( ( s! /usr/share/dstat/dstat_vmk_hba.pyt vars' s
c C s5 y t i d ƒ Wn t d ‚ n Xt d d ƒ d S( Ns /proc/vmwares Needs VMware ESXi s, The vmkhba module is an EXPERIMENTAL module.( R R
R t info( R ( ( s! /usr/share/dstat/dstat_vmk_hba.pyt check6 s
c
C s d | i d <x | i D] } d
| i | <q Wx¸t i d ƒ D]§} x-t d | ƒ i ƒ D]} | i ƒ } t | ƒ d j o q[ n | d d j o q[ n | d d j o | d d j o q[ n | d g d j o q[ n | i d d t | d ƒ | i d d
t | d ƒ f | i d <| | i j o8 | d j o+ t | d ƒ t | d ƒ f | i | <q[ q[ Wxn | i i ƒ D]] } | i | d | i
| d d t | i | d
| i
| d
d t f | i | <q„Wq>