def METHOD_NAME(session, cmd):
    """
    Executes command on remote ssh server and waits for prompt.
    Returns command output
    """
    session.sendline(cmd)
    session.prompt()
    return session.before.decode().strip()