{# The device list (Hani #1 2026-10-19; R14B.2 2026-10-25): status, current version, updates, SNMP and logs per device. #} {% set dvw = devices_view %}

{{ dvw.type_label or 'Devices' }}{% if dvw.state %} · {{ dvw.states[dvw.state] }}{% endif %} {{ dvw.ecosystem.name }}

{{ dvw.rows|length }} of {{ dvw.total }}
{% set eq = 'ecosystem=' ~ dvw.ecosystem.id %} {% if bulk_error %}{% endif %}{{ fresh_tag("inventory:group-run-safe") }}{{ fresh_tag("inventory:off-loop") }} {% for run in bulk_runs or [] %}{% if loop.first %} {% set badge = {'done': 'success', 'failed': 'danger', 'skipped': 'neutral', 'stopped': 'warning', 'running': 'warning', 'waiting': 'neutral'} %} {% if run.state == 'running' %}

{{ run.label }} · {{ run.done }} of {{ run.devices|length }} device{{ '' if run.devices|length == 1 else 's' }} · started {{ run.started_at[11:16] }} UTC by {{ run.who or 'admin' }}{% if run.reason %} · {{ run.reason }}{% endif %}

{% else %}{# Hani #1 2026-11-10: a finished run is one line; each device's result is in its own log #}
{{ run.label }} finished · {{ run.counts.done }} done{% if run.counts.failed %} · {{ run.counts.failed }} failed{% endif %}{% if run.counts.skipped %} · {{ run.counts.skipped }} skipped{% endif %}{% if run.counts.stopped %} · {{ run.counts.stopped }} stopped{% endif %} · {{ run.started_at[11:16] }}–{{ (run.finished_at or '')[11:16] }} UTC by {{ run.who or 'admin' }} {{ fresh_tag("inventory:run-summary") }}

Each device's result is in its log (the device's Details › Connection log), under {{ run.who or 'the user' }}'s name. This summary hides by itself an hour after the run ended.

    {% for i in run.devices if i.state != 'done' %}
  • {{ i.state }} {{ i.name }}{% if i.detail %} {{ i.detail }}{% endif %}
  • {% else %}
  • Every device done.
  • {% endfor %}
{% endif %}{% endif %}{% endfor %} {% if dvw.rows %} {# R14B.3 (Hani #1 2026-10-25): select one, several or all shown; one action for the selection, or per device. #}
{% set ns = namespace(errors=0) %}{% for r in dvw.rows %}{% if (r.get('failing') or {}).get('total') %}{% set ns.errors = ns.errors + 1 %}{% endif %}{% endfor %}{% if ns.errors %}{% endif %} Sort: {% for key, label in [('order', 'Order'), ('name', 'Name')] %}{{ label }}{% endfor %} {{ fresh_tag("device:order") }} {{ fresh_tag("lists:filter-bar") }}{{ fresh_tag("inventory:status-groups") }}
{% from "_vm_menu.html" import vm_attrs %}{% set DL_VMS = vm_links() %}{# R90.8 part 4: a VM's own actions in its Actions menu #} {% set tone = {'ok': 'success', 'attention': 'warning', 'critical': 'danger', 'none': 'neutral', 'unknown': 'neutral'} %}
{% for d in dvw.rows %}{% set tools = '/inventory/assets/' ~ d.id ~ '?tab=tools&tool=' %}{% if d.order and dvw.sort == 'order' %}{% endif %}{{ d.name }}{% endfor %}
SelectDeviceOrderTypeRoleStatusVersionUpdatesSNMPLogsWhereActions
{% if d.order %}{{ d.order.position }}{% if d.order.parent_name %} under {{ d.order.parent_name }}{% endif %}{% else %}—{% endif %}{{ d.type_label }}{{ d.role or '—' }} {{ d.state_label }}{% if d.reason %} {{ d.reason }}{% endif %}{% set fail = (d.get('failing') or {}).get('total', 0) %}{% if fail %} {{ fail }} collection error{{ '' if fail == 1 else 's' }}{% endif %} {{ d.version or '—' }} {% if d.update_status %}{{ d.update_status.label }}{% else %}—{% endif %} {% if d.snmp %}{{ d.snmp.label }}{% else %}—{% endif %} {% if d.logs %}{{ d.logs.label }}{% else %}—{% endif %} {{ [d.site, d.city]|select|join(', ') or '—' }} {% set vm = DL_VMS.get(d.id) %}

Action

{% if bulk_nexxkey %}
{% if bulk_nexxkey.unlocked %}

The accounts below are needed only for selected devices NEXXKEY keeps no account for.

{% else %}

NEXXKEY keeps accounts for {{ bulk_nexxkey.devices|length }} device(s). Unlock NEXXKEY to use them here.

{% endif %}
{% endif %}
{% else %}

No devices here.

{% endif %}