{% extends "base.html" %} {% block title %}{{ sbc.name }} - Lab Controller{% endblock %} {% block content %} {% if active_claim %}

Active Claim

Held by: {{ active_claim.agent_name }} ({{ active_claim.session_kind }})
Reason: {{ active_claim.reason }}
{% if active_claim.time_remaining %} {% set rem = active_claim.time_remaining.total_seconds()|int %}
Time remaining: {% if rem >= 3600 %}{{ rem // 3600 }}h {{ (rem % 3600) // 60 }}m {% elif rem >= 60 %}{{ rem // 60 }}m {{ rem % 60 }}s {% else %}{{ rem }}s{% endif %}
{% endif %} {% if active_claim.renewal_count %}
Renewed: {{ active_claim.renewal_count }}x
{% endif %} {% for req in active_claim.pending_requests %}
Release requested by {{ req.requested_by }}: {{ req.reason }}
{% endfor %}
{% endif %}

Basic Information

Name{{ sbc.name }}
Project{{ sbc.project or '-' }}
Description{{ sbc.description or '-' }}
SSH User{{ sbc.ssh_user }}
Status{{ sbc.status.value }}

View Status History

Power Control

{% if sbc.power_plug %}
Plug Type{{ sbc.power_plug.plug_type.value }}
Address{{ sbc.power_plug.address }}
Index{{ sbc.power_plug.plug_index }}
State {{ power_state.value.upper() if power_state else 'UNKNOWN' }}
{% else %}

No power plug assigned.

{% endif %}

Serial Ports

{% if sbc.serial_ports %} {% for port in sbc.serial_ports %} {% endfor %}
TypeAliasDeviceTCP PortBaud
{{ port.port_type.value }} {{ port.alias or '-' }} {{ port.device_path }} {{ port.tcp_port or '-' }} {{ port.baud_rate }}
{% if sbc.console_port and sbc.console_port.tcp_port %}

Connect: nc localhost {{ sbc.console_port.tcp_port }} Open Web Console

{% endif %} {% else %}

No serial ports assigned.

{% endif %}

Network Addresses

{% if sbc.network_addresses %} {% for addr in sbc.network_addresses %} {% endfor %}
TypeIP AddressMAC
{{ addr.address_type.value }} {{ addr.ip_address }} {{ addr.mac_address or '-' }}
{% if sbc.primary_ip %}

SSH: ssh {{ sbc.ssh_user }}@{{ sbc.primary_ip }}

{% endif %} {% else %}

No network addresses configured.

{% endif %}
{% endblock %}