def download_omsagent():
    '''
    Download omsagent this downloaded file would be installed
    :return: True if downloaded successfully
    '''
    print("Trying to download the omsagent.")
    print_notice("wget " + oms_agent_url)
    download_command = subprocess.Popen(["wget", "-O", omsagent_file_name, oms_agent_url], stdout=subprocess.PIPE)
    o, e = download_command.communicate()
    time.sleep(3)
    if e is not None:
        handle_error(e, error_response_str="Error: could not download omsagent.")
        return False
    print_ok("Downloaded omsagent successfully.")
    return True

    Download omsagent this downloaded file would be installed
    :return: True if downloaded successfully
    
DataConnectors/CEF/cef_installer.py