def METHOD_NAME(filename):
    response = {'status': 'failed'}
    buffer = ovpn_cmd(filename, 'state')
    if buffer is None:
        return response
    for line in buffer.split('\n'):
        tmp = line.split(',')
        if len(tmp) > 2 and tmp[0].isdigit():
            response['timestamp'] = int(tmp[0])
            response['status'] = tmp[1].lower()
            response['virtual_address'] = tmp[3] if len(tmp) > 3 else ""
            response['real_address'] = tmp[4] if len(tmp) > 4 else ""
    return response