{% extends "ace/base.html" %} {% block title %} Detalhes do host {% endblock %} {% block extra-css %} {% load staticfiles %} {% endblock %} {% block titulo %}
{% if host.hwtype = "server" %}

{{ host.name }}

{% elif host.hwtype = "wifi" %}

{{ host.name }}

{% elif host.hwtype = "ap" %}

{{ host.name }}

{% elif host.hwtype = "fw" %}

{{ host.name }}

{% elif host.hwtype = "printer" %}

{{ host.name }}

{% elif host.hwtype = "router" %}

{{ host.name }}

{% elif host.hwtype = "virt" %}

{{ host.name }}

{% elif host.hwtype = "cftv" %}

{{ host.name }}

{% elif host.hwtype = "cam" %}

{{ host.name }}

{% elif host.hwtype = "voip" %}

{{ host.name }}

{% elif host.hwtype = "media" %}

{{ host.name }}

{% elif host.hwtype = "desktop" %}

{{ host.name }}

{% elif host.hwtype = "storage" %}

{{ host.name }}

{% elif t = "printer" %}

{{ host.name }}

{% else %}

{{ host.name }}

{% endif %}
{% endblock %} {% block conteudo1 %}
{% if host.active == True %}

Ativo: 

{% else %}

Ativo: 

{% endif %} {% if host.vm = False %} {% if host.serial_number %}

Nº de série:  {{ host.serial_number }}

{% endif %} {% if host.supplierhw = False %}

Patrimônio: {{ host.ownerid }}

{% endif %} {% endif %} {% if host.devicemodel %}

Modelo:  {{ host.devicemodel }}

{% endif %} {% if host.manufactorer %}

Fabricante:  {{ host.manufactorer }}

{% endif %} {% if host.osplatform %}

Plataforma:  {{ host.get_osplatform_display }}

{% endif %} {% if host.os %}

Sistema operacional:  {{ host.os }}

{% endif %}
{% if host.url %}

URL: {{ host.url }}

{% endif %} {% if host.mem %}

Memória instalada:  {{ host.mem }}

{% endif %} {% if host.cpu %}

Quantidade de CPU's:  {{ host.cpu }}

{% endif %} {% if host.hwtype %}

Tipo de hardware:  {{ host.get_hwtype_display }}

{% endif %} {% if host.vm != False %}

Máquina virtual: 

{% endif %}
{% if request.user.is_superuser %} {% if host.admuser %}

Usuário administrador: {{ host.admuser}}

{% endif %} {% endif %}
{% if host.comments %}

Obs: {{ host.comments }}

{% endif %} {% if erro %}
Impossível obter informações do host - Verifique as credenciais de acesso.
{% endif %}
{% if t = "printer" %} {% else %} {% endif %} {% if t = "printer" %} {% else %} {% endif %}

{% if swport %}
Portas do switch
{% for porta in swport %} {% if porta.vlans %} {% else %} {% endif %} {% if porta.switch.stack %} {% else %} {% endif %} {% endfor %}
Num Switch VLANs Pilha
{{ porta.num }} {{ porta.switch.name }} {% for v in porta.vlans.all %}

{{ v }}

{% endfor %}
{{ porta.switch.stack }}
{% endif %}
{% if i %}
Endereços IP deste host
{% for ip in i %} {% endfor %}
Endereço Obs
{{ ip.address }} {{ ip.comments |default_if_none:"" }}
{% endif %}
{% if n %}
Pontos de rede
{% for netpoint in n %} {% endfor %}
Num Local
{{ netpoint.num }} {{ netpoint.place }}
{% endif %}

{% if s %}
Serviços deste host
{% for service in s %} {% endfor %}
Nome IP
{{ service.name }} {{ service.ip }}
{% endif %}
{% if u %}
Atualizações aplicadas
{% for update in u %} {% endfor %}
Nome Data de registro Data de aplicação Obs Ações
{{ update.name }} {{ update.register_date }} {{ update.aplication_date }} {{ update.comments }}  
{% endif %}



{% endblock %} {% block extra-js %} {% load staticfiles %} {% endblock %}