{% extends 'assets/base.html' %} {% load business_tag %} {% load humanize %} {% block content %}
{{ host.eth1 }}

主机基本信息

此主机基本信息.
{% if host.vm %} {% else %} {% endif %}
IP {{ host.eth1 }}
主机名 {{ host.node_name }}
MAC {{ host.mac }}
远控卡IP {{ host.internal_ip}}
所属业务 {% for s in host.business.all %} {% endfor %}
{{ s.service_name }}
服务 {% for s in host.service.all %} {% endfor %}
{{ s.name }} -- {{ s.port }}
环境 {{ host.env}}
主机类型虚拟机物理机
IDC {{ host.idc.name }}
机柜信息 {{ host.cabinet }} {% if host.server_cabinet_id %} - {{ host.server_cabinet_id }} {% endif %}
品牌 {{ host.brand }}
CPU {{ host.cpu }}
内存 {{ host.memory }}
硬盘 {{ host.hard_disk }}
机器状态 {{ host.get_status_display }}
操作系统 {{ host.system }} - {{ host.system_cpuarch }}
资产编号 {{ host.number }}
SN号 {{ host.server_sn }}
快速服务编码 {{ host.Services_Code }}
激活 {{ host.is_active}}
添加日期 {{ host.create_time|date:"Y-m-d" }}
备注 {{ host.editor }}
详细信息

主机详细信息

包含了此主机所有授权的用户.
{% if host.vm %}
父主机信息
{{ host.vm.eth1 }} 详情
{% elif host.uuid|get_vm_info %}
子主机信息
{% for h in host.uuid|get_vm_info %} {% endfor %}
{{ h.eth1 }} 详情
{% else %}

(暂无)

{% endif %}
修改记录
{% if request.user.is_superuser or request.session.fun_auth.edit_host %}     点击修改 {% endif %}

主机修改历史记录

此主机所有修改历史记录.
{% if host_record %} {% for r in host_record %}
{{ r.time|naturaltime }} {{ r.user }} {% for i in r.content|str_to_list %}
{{ i }}
{% endfor %} {{ r.time }}
{% endfor %} {% else %}

(暂无)

{% endif %}
{% endblock %}