{% extends "base.html.twig" %} {% block title %}Device detail{% endblock %} {% form_theme fwForm 'bootstrap_4_layout.html.twig' %} {% block body %}
Device detail

Name: {{ device.name()|default("None") }} {% if(device.snmpName is not null) %}
SNMP Name: {{ device.snmpName()|default("None") }}
{% endif %}
{{ form_start(customModuleDownloadForm, {'attr': {'class': 'form-inline'}}) }}

Device ID: {{ device.devId() }}

{{ form_widget(customModuleDownloadForm.download) }}
{{ form_end(customModuleDownloadForm) }}
{% if(device.devType.id == 1) %}

Hostname: {{ device.hostname()|default("None") }} {% if(device.hostnameDesired) %}(to be updated: {{ device.hostnameDesired }}){% else %}{% endif %}

{{ form_start(hostnameForm, {'attr': {'class': 'form-inline'}}) }}
{{ form_widget(hostnameForm.hostname) }}
{{ form_widget(hostnameForm.save) }}
{{ form_end(hostnameForm) }}
{% endif %}

Status: {{ device.stats.syncStatus.description }}

Type: {{ device.devType.name }}

Data age: {{ device.stats.liveTime.description }}

Missed contacts: {{ device.stats.liveMissCount.description }}

{# Advantech and Teltonika #} {% if(device.devType.id == 2 or device.devType.id == 4 or device.devType.id == 5) %}

Current OS/FW version: {{ device.osVer.version|default("Unknown") }} {% if(device.osVerDesired) %}(desired: {{ device.osVerDesired.version }}){% else %}(NO specific){% endif %}

{% endif %}
{% include 'device/part/form/setFwVersionForm.html.twig' with {'device': device, 'osVersions': osVersions, 'fwForm': fwForm} only %} {% include 'device/part/form/setAgentProfileForm.html.twig' with {'agentProfilesForm': agentProfilesForm} only %} {% include 'device/part/form/setAuthProfileForm.html.twig' with {'authProfilesForm': authProfilesForm} only %} {% include 'device/part/form/setMonitoringGroupForm.html.twig' with {'monitoringGroupsForm': monitoringGroupsForm} only %} {% include 'device/part/form/setCustomLabelForm.html.twig' with {'labelsForm': labelsForm} only %} {% include 'device/part/form/setSystemLabelForm.html.twig' with {'systemLabelsForm': systemLabelsForm} only %} {% include 'device/part/form/setCloneConfigProfileForm.html.twig' with {'device': device, 'isDevicesToCloneFromEmpty': isDevicesToCloneFromEmpty, 'configProfileCloneFromForm': configProfileCloneFromForm, 'configProfileCloneToForm': configProfileCloneToForm} only %}
{% include 'device/part/statistics.html.twig' with {'device': device} only %} {% include 'device/part/notes.html.twig' with {'device': device} only %} {% include 'device/part/packages.html.twig' with {'packages': packages} only %} {% include 'device/part/simCards.html.twig' with {'device': device} only %} {% include 'device/part/customFields.html.twig' with {'device': device} only %}

Network Interfaces

{{ form_start(netDevicesForm, {'attr': {'class': 'form-inline'}}) }}
{% if(device.netDevices|length != 0) %} {% for netDevice in device.netDevices %} {% set inputName = 'cellular_' ~ netDevice.getId() %} {% set inputName = 'linkable_' ~ netDevice.getId() %} {% endfor %} {% else %}

No active network interfaces found.

{% endif %}
# Name MAC IP Address IPv6 Address Collisions Active Cellular Linkable Rx/Tx Packets Rx/Tx Bytes Rx/Tx Errors
{{ loop.index }} {{ netDevice.label }} {{ netDevice.mac }} {% if(netDevice.ipAddr) %}{{ netDevice.ipAddr }}/{{ netDevice.ipMask }}{% else %} --- {% endif %} {% if(netDevice.ip6Addr) %}{{ netDevice.ip6Addr }}/{{ netDevice.ip6Pref }}{% else %} --- {% endif %} {{ netDevice.collisions }} {% if(netDevice.active == '1') %}Yes{% else %}No{% endif %}{{ form_widget(attribute(netDevicesForm, (inputName))) }}{{ form_widget(attribute(netDevicesForm, (inputName))) }} {{ netDevice.rxPackets }} {{ netDevice.rxBytes }} {{ netDevice.rxErrors }}
{{ netDevice.txPackets }} {{ netDevice.txBytes }} {{ netDevice.txErrors }}

{{ form_widget(netDevicesForm.save) }}
{{ form_end(netDevicesForm) }}

History data


{% if(historyData == '[]') %}

No data available yet.

{% else %}
{# #}
{% endif %}
{% endblock body %} {% block javascripts %} {{ parent() }} {% endblock javascripts%}