def METHOD_NAME(dut, db, suffix="cli"):
    db_cli = st.get_dut_var(dut, "redis_db_cli")
    if db and db not in db_id_map:
        raise ValueError("Unknown DB name {} in ID Map".format(db))
    if db and db not in db_port_map:
        raise ValueError("Unknown DB name {} in Port Map".format(db))
    if db_cli == "2":
        return "sonic-db-{} {}".format(suffix, db or "")
    if db_cli == "1":
        cmd = "redis-{} -p {}".format(suffix, db_port_map[db])
    else:
        cmd = "redis-{}".format(suffix)
    return "{} -n {}".format(cmd, db_id_map[db]) if db else cmd