{% extends "ipdevinfo/base.html" %} {% block content %}
{% if netbox %} {% else %} N/A {% endif %} {% if netboxsubcat %} {% endif %} {% if netbox.category.is_sw or netbox.category.is_edge %} {% with netbox.get_uplinks as uplinks %} {% endwith %} {% endif %} {% with netbox.get_availability as stats %} {% 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 }}
Subcategories {% for subcat in netboxsubcat %} {{ subcat.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 %} From {{ uplinks.0.this }}
To {{ uplinks.0.other }} {% else %} {% endif %} {% else %} N/A {% endif %}
Modules {{ netbox.module_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 }}
Last updated {{ netbox.last_updated|date|default:"N/A" }} {{ netbox.last_updated|time }}
Statistics
{% with netbox.get_rrd_data_sources as dss %} {% if dss|length %} {% for ds in dss %} {% endfor %}
Data source Threshold
{{ ds.description }} {% if ds.threshold %}{{ ds.threshold }}{% else %}not configured{% endif %}
{% else %} N/A {% endif %} {% endwith %}
Actions
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 %}
{% if host_info.addresses %} {% for address in host_info.addresses %} {% endfor %} {% else %} {% endif %}
DNS: {{ host_info.host }}
IP address Reverse name
{{ host_info.addresses|length }} address{{ host_info.addresses|length|pluralize:"es" }} found
{{ address.addr }} {% if address.name %} {{ address.name }} {% endif %} {% if address.error %} ({{ address.error }}) {% endif %}
No addresses found.
{% if netbox %}
{% if alert_info.count %} {% for a in alert_info.alerts %} {% if a.alert.is_open %} {% else %} {% endif %} {% endfor %} {% else %} {% endif %}
Alerts last {{ alert_info.days_back }} day{{ alert_info.days_back|pluralize }}
Event Start End Downtime
{% if alert_info.is_more_alerts %} Showing {{ alert_info.alerts|length }} of {{ alert_info.count }} alerts, see Device History for all {% else %} {{ alert_info.alerts|length }} alert{{ alert_info.alerts|length|pluralize }} found, see Device History for details {% endif %}
{{ a.type }} {{ a.alert.start_time|date|default:"N/A" }} {{ a.alert.start_time|time }}Unresolved{{ a.alert.end_time|date|default:"N/A" }} {{ a.alert.end_time|time }} {% if a.alert.is_stateful %} {% if a.alert.is_open %} {{ a.alert.start_time|timesince }} {% else %} {{ a.alert.start_time|timesince:a.alert.end_time }} {% endif %} {% endif %}
No matching alerts found.
{% endif %}
{% if netbox and netbox.service_set.count %}
{% with netbox.service_set.all as service_list %} {% include "ipdevinfo/service-list-table.html" %} {% endwith %}
Services at {{ netbox.get_short_sysname }}
{% endif %} {% if netbox %} {% if netbox.module_set.count or netbox.interface_set.count %}
{% ifequal port_view.perspective 'swportactive' %}

Activity based on CAM records since {{ port_view.activity_interval_start|date }}. {{ activity_interval_form.interval.label }}: {{ activity_interval_form.interval }} {% if not port_view.activity_complete_data %} Warning: CAM data is only available for {{ port_view.activity_data_interval }} day{{ port_view.activity_data_interval|pluralize }}. {% endif %}

{% endifequal %} {% for module in port_view.modules %} {% include "ipdevinfo/module-port-view.html" %} {% endfor %} {% include "ipdevinfo/port-legend.html" %}
{% endif %} {% endif %} {% endblock %}