{% load info %}
{% if netbox %} {% else %} N/A {% endif %} {% if netboxgroups %} {% endif %} {% with netbox.get_uplinks as uplinks %} {% endwith %} {% with netbox.get_availability as stats %} {% endwith %} {% with netbox.get_last_jobs as jobs %} {% if jobs %} {% else %} {% endif %} {% endwith %} {% else %} {% with no_netbox.prefix.vlan as vlan %} {% endwith %} {% with no_netbox.arp as arp %} {% endwith %} {% endif %}
IP Device: {{ netbox.get_short_sysname }}
Full sysname {{ netbox.sysname }}
Type {% if netbox.type %} {{ netbox.type }}
Category {{ netbox.category }}
Device groups {% for netboxgroup in netboxgroups %} {{ netboxgroup.category_id }} {% endfor %}
Function {{ netbox.get_function|default:"N/A" }}
Organization {{ netbox.organization }}
Room {{ netbox.room }}
Serial number {{ netbox.device.serial|default:"N/A" }}
Software {{ netbox.device.software_version|default:"N/A" }}
IP address {{ netbox.ip }}
Prefix {% with netbox.get_filtered_prefix as prefix %} {% if prefix %} {{ prefix }} {% else %} N/A {% endif %} {% endwith %}
Uplink{{ uplinks|pluralize }} {% if uplinks %} {% if uplinks|length_is:1 %} {% if uplinks.0.this %} From {{ uplinks.0.this }}
To {% endif %} {{ uplinks.0.other }} {% else %} {% endif %} {% else %} N/A {% endif %}
Modules {{ netbox.module_set.count }}
Interfaces {{ netbox.interface_set.count }}
Switch ports {{ netbox.get_swports.count }}
Router ports {{ netbox.get_gwports.count }}
Status
Uptime {{ netbox.get_up_display|capfirst }} {% ifequal netbox.up netbox.UP_UP %} for {{ netbox.up_since|timesince }} {% endifequal %}
Availability {% if stats %} {% with stats.availability as a %} {% if a.day %} {{ a.day|floatformat:2 }}% {% else %} (N/A) {% endif %} last day, {% if a.week %} {{ a.week|floatformat:2 }}% {% else %} (N/A) {% endif %} last week, {% if a.month %} {{ a.month|floatformat:2 }}% {% else %} (N/A) {% endif %} last month {% endwith %} {% else %} N/A {% endif %}
Response time {% if stats %} {% with stats.response_time as rt %} {% if rt.day %} {{ rt.day|floatformat:3 }}{{ rt.data_source.units }} {% else %} (N/A) {% endif %} last day, {% if rt.week %} {{ rt.week|floatformat:3 }}{{ rt.data_source.units }} {% else %} (N/A) {% endif %} last week, {% if rt.month %} {{ rt.month|floatformat:3 }}{{ rt.data_source.units }} {% else %} (N/A) {% endif %} last month {% endwith %} {% else %} N/A {% endif %}
First discovered {{ netbox.discovered|date|default:"N/A" }} {{ netbox.discovered|time }}
Jobs
  {% for job in jobs|dictsortreversed:'end_time' %} {% endfor %}
Name End time Duration Status
{{ job.job_name|capfirst }} {{ job.end_time|date:"DATETIME_FORMAT" }} {{ job.duration|stringformat:".2f" }}s {% if job.is_overdue %} Overdue {% else %} {% if job.success %} Success {% else %} Failed {% endif %} {% endif %}
  No jobs have run on this netbox
IP Address: {{ host_info.addresses.0.addr|default:"N/A" }}
Status Not monitored
Prefix {% with no_netbox.prefix as prefix %} {% if prefix %} {{ prefix.net_address }} {% else %} N/A {% endif %} {% endwith %}
VLAN {% if vlan %} {{ vlan }} {% else %} N/A {% endif %}
Usage {{ vlan.usage|default:"N/A" }}
Description {{ vlan.description|default:"N/A" }}
Organization {% if vlan.organization %} {{ vlan.organization|default:"N/A" }} {% else %} N/A {% endif %}
Optional #1 {{ vlan.organization.optional_1|default:"N/A" }}
Optional #2 {{ vlan.organization.optional_2|default:"N/A" }}
Optional #3 {{ vlan.organization.optional_3|default:"N/A" }}
Last active {% ifequal no_netbox.dt_max arp.end_time %} Right now {% else %} {% if arp.end_time %} {{ arp.end_time|date }} {{ arp.end_time|time }} {% else %} Never {% endif %} {% endifequal %}
Last seen with MAC {% if arp.mac %} {{ arp.mac }} {% else %} N/A {% endif %}