{% extends 'dcim/device.html' %} {% load toolkit_extras %} {% load helpers %} {% load static %} {% block style %} {% endblock %} {% block content %}

Connection Info

Hostname / IP
{% if connection_info.hostname %} {{ connection_info.hostname }} {% else %} Missing {% endif %}
Platform
{% if connection_info.platform %} {{ connection_info.platform }} {% else %} Missing {% endif %}
Connection
{% if device_valid %} Ready {% else %} Not Ready {% endif %}
{% if device_valid %} Device is ready for command execution. {% else %} {{ validation_message }} {% endif %}
{% if rate_limit_status.enabled %}

Rate Limiting

{% include "netbox_toolkit_plugin/htmx/rate_limit_card.html" %}
{% endif %}

Available Commands

{% if commands %}
{% endif %}
{% if commands %}
{% for command in commands %}
{% if command.command_type == 'config' %} {% endif %} {{ command.name }} {% if command.variables.exists %} {% endif %}
{% endfor %}
{% else %}
{% if object.platform %} {% if not user.is_authenticated %} You must be logged in to see commands. {% else %} No commands available for platform "{{ object.platform }}" with your current permissions. {% endif %} {% else %} No platform assigned to this device. {% endif %} {% if perms.netbox_toolkit_plugin.add_command %} Add a command {% endif %}
{% endif %}

Recent History

Last 3
{% include "netbox_toolkit_plugin/htmx/recent_history.html" with recent_history=object.command_logs.all|dictsortreversed:"execution_time"|slice:":3" %}

Command Output

{% if executed_command %} {% endif %}
{% include "netbox_toolkit_plugin/htmx/command_output.html" %}
{% endblock %} {% block javascript %} {% endblock %}