{% extends "ui/_layout.html" %} {% block title %}{{ m.mac }} - bty-web{% endblock %} {% block content %}

{{ m.mac }}

Discovered
{{ m.discovered_at | fmt_ts if m.discovered_at else "-" }}
Last seen
{{ m.last_seen_at | fmt_ts if m.last_seen_at else "-" }}{% if m.last_seen_ip %} from {{ m.last_seen_ip }}{% endif %}
Last flashed
{{ m.last_flashed_at | fmt_ts if m.last_flashed_at else "-" }}
Created
{{ m.created_at | fmt_ts }}
Updated
{{ m.updated_at | fmt_ts }}

Assignment

local: PXE boots return sanboot (production / stable). flash: PXE boots chain into the live env so the box re-flashes the assigned image every time (per-job CI cadence). flash-once: same as flash for the next PXE boot, then auto-flips to local after the live env signals completion. tui: PXE boots chain into the live env in interactive mode (bty-tui on tty1). The auto-discovery default for unknown MACs is tui -- it's also how the box reports its disk inventory to bty-web (see Target disk below).
{% if m.known_disks %}
Last inventory reported {{ m.known_disks_at }}. The live env's flash service matches the picked SERIAL against current disks; a swapped or renumbered drive refuses to flash rather than risking the wrong target.
{% else %}
No disk inventory yet for this machine. Set boot_policy=tui above and power-cycle the machine; bty-tui will report its disks to bty-web on startup and this dropdown will populate.
{% endif %}
{# Per-MAC event slice. Filtered to ``subject_kind=machine`` + ``subject_id=this MAC`` server-side; the link forwards the same filter to /ui/events for drill-down. #} {% with events=machine_events, title="Recent activity for this machine", link_to_full="/ui/events?subject_kind=machine&subject_id=" + m.mac %} {% include "ui/_events_card.html" %} {% endwith %} {% endblock %}