remotelogin/oper_sys/linux/__init__.py
def file_system_space(self, conn=None, block_size='m'):
        """ parses the output for df and uses the block_size (k or m)

        :param conn:
        :param bytes_flag:
        :return:
        """
        out, err = conn.check_output('df -' + block_size)
        fs = dict()
        if out:
            for line in out[1:]:
                line = line.strip()
                if line:
                    s = line.split()
                    fs[(s[0], s[5])] = dict(blocks=s[1], used=s[2], available=s[3], percentage=s[4], mounted=s[5])
        return fs
 parses the output for df and uses the block_size (k or m)

        :param conn:
        :param bytes_flag:
        :return:
        
parses the output for df and uses the block_size (k or m)
parses the output for df and uses the block_size ( k or m )
def file_system_space(self, conn=None, block_size='m'):
        out, err = conn.check_output('df -' + block_size)
        fs = dict()
        if out:
            for line in out[1:]:
                line = line.strip()
                if line:
                    s = line.split()
                    fs[(s[0], s[5])] = dict(blocks=s[1], used=s[2], available=s[3], percentage=s[4], mounted=s[5])
        return fs
def file_system_space ( self , conn = None , block_size = 'm' ) : out , err = conn . check_output ( 'df -' + block_size ) fs = dict ( ) if out : for line in out [ 1 : ] : line = line . strip ( ) if line : s = line . split ( ) fs [ ( s [ 0 ] , s [ 5 ] ) ] = dict ( blocks = s [ 1 ] , used = s [ 2 ] , available = s [ 3 ] , percentage = s [ 4 ] , mounted = s [ 5 ] ) return fs
parses the output for df and uses the block_size (k or m)
parses the output for df and uses the block_size ( k or m )
""" parses the output for df and uses the block_size (k or m)

        :param conn:
        :param bytes_flag:
        :return:
        """
None
self
conn
None
block_size
bytes_flag
None