{% extends 'base.html' %} {% load incidents_extras inventory_extras %} {% block content %}

{% machine_type_icon machine %} {% machine_platform_icon machine %} {% if machine.computer_name %}{{ machine.computer_name }} / {% endif %}{{ serial_number }}

{% incident_severity machine.max_incident_severity %} {% for tag in machine.tags %} {% inventory_tag tag %} {% endfor %}

{% if show_events_link %} Events {% endif %} {% for link, anchor_text in store_links %} {{ anchor_text }} {% endfor %} {% if perms.incidents.view_incident and perms.incidents.view_machineincident %} Incidents {% endif %} {% if machine.snapshots_with_osx_app_instances %} apps {% endif %} {% if machine.snapshots_with_ios_apps %} apps {% endif %} {% if machine.snapshots_with_android_apps %} apps {% endif %} {% if machine.snapshots_with_program_instances %} programs {% endif %} {% if machine.snapshots_with_deb_packages %} deb packages {% endif %} {% if machine.snapshots_with_profiles %} profiles {% endif %} {% if can_manage_tags or can_archive_machine %}
{% endif %}
{% for source_display, ms, source_subviews in machine_snapshots %}
{% if ms.business_unit %}

Business unit

Name
{{ ms.business_unit.get_name_display }}
Key
{{ ms.business_unit.get_short_key }}

{% for link in ms.business_unit.links.all %} {{ ms.source.name }} - {{ link.anchor_text }} {% endfor %}

{% endif %} {% with ms.system_info as system_info %} {% if system_info.hardware_model or system_info.cpu_type or system_info.cpu_physical_cores or system_info.physical_memory %}

System info

{% if system_info.hardware_model %}
Hardware model
{{ system_info.hardware_model }}
{% endif %} {% if system_info.hardware_serial %}
Hardware serial
{{ system_info.hardware_serial }}
{% endif %} {% if system_info.cpu_brand %}
CPU brand
{{ system_info.cpu_brand }}
{% endif %} {% if system_info.cpu_type %}
CPU type
{{ system_info.cpu_type }}
{% endif %} {% if system_info.cpu_physical_cores %}
CPU physical cores
{{ system_info.cpu_physical_cores }}
{% endif %} {% if system_info.cpu_logical_cores %}
CPU logical cores
{{ system_info.cpu_logical_cores }}
{% endif %} {% if ms.system_info.physical_memory %}
Physical memory
{{ ms.system_info.physical_memory|filesizeformat }}
{% endif %}
{% endif %} {% endwith %} {% if ms.os_version %}

OS

Name
{{ ms.os_version.name }}
OS Version
{{ ms.os_version.get_version_display|default:"-" }}
OS Build
{{ ms.os_version.build|default:"-" }}
{% endif %} {% if ms.ec2_instance_metadata %}

EC2 instance

Instance ID
{{ ms.ec2_instance_metadata.instance_id }}
Instance type
{{ ms.ec2_instance_metadata.instance_type }}
Architecture
{{ ms.ec2_instance_metadata.architecture }}
Region
{{ ms.ec2_instance_metadata.region }}
Availability zone
{{ ms.ec2_instance_metadata.availability_zone }}
Local hostname
{{ ms.ec2_instance_metadata.local_hostname }}
Local IPv4
{{ ms.ec2_instance_metadata.local_ipv4|default:"-" }}
MAC
{{ ms.ec2_instance_metadata.mac }}
Security group{{ ms.ec2_instance_metadata.security_group_list|length|pluralize }}
{{ ms.ec2_instance_metadata.security_group_list|join:", "|default:"-" }}
IAM profile ARN
{{ ms.ec2_instance_metadata.iam_arn|default:"-" }}
AMI ID
{{ ms.ec2_instance_metadata.ami_id }}
Reservation ID
{{ ms.ec2_instance_metadata.reservation_id }}
Account ID
{{ ms.ec2_instance_metadata.account_id }}
SSH public key
{{ ms.ec2_instance_metadata.ssh_public_key|default:"-" }}
{% endif %} {% if ms.ec2_instance_tag_list %}

EC2 instance tag{{ ms.ec2_instance_tag_list|length|pluralize }}

{% for tag in ms.ec2_instance_tag_list %} {% endfor %}
Key Value
{{ tag.key }} {{ tag.value }}
{% endif %} {% with ms.disks.count as disks %} {% if disks %}

{{ disks }} Disk{{ disks|pluralize }}

{% for disk in ms.disks.all %} {% endfor %}
Name Size
{{ disk.name }} {{ disk.size|filesizeformat }}
{% endif %} {% endwith %} {% with ms.network_interfaces.count as nic %} {% if nic %}

{{ nic }} Interface{{ nic|pluralize }}

{% for ni in ms.network_interfaces.all %} {% with ni.get_mac_organization as org %} {% endwith %} {% endfor %}
Name MAC IP Mask Broadcast
{{ ni.interface }} {{ ni.mac|default:"-" }} {% if org %}
{{ org.name }}{% endif %}
{{ ni.address|default:"-" }} {{ ni.mask|default:"-" }} {{ ni.broadcast|default:"-" }}
{% endif %} {% endwith %} {% if perms.inventory.view_link and ms.links.count %}

Links

{% for link in ms.links.all %} {{ ms.source.name }} - {{ link.anchor_text }} {% endfor %}

{% endif %} {% if ms.groups.count %}

Groups

{% if perms.inventory.view_link %} {% endif %} {% for group, links in ms.groups_with_links %} {% if perms.inventory.view_link %} {% endif %} {% endfor %}
NameLinks
{% if perms.inventory.view_machinegroup %} {{ group.name }} {% else %} {{ group.name }} {% endif %} {% for link_url, anchor_text in links %} {{ ms.source.name }} - {{ anchor_text }} {% endfor %}
{% endif %} {% if ms.teamviewer %}

TeamViewer

ID
{{ ms.teamviewer.teamviewer_id }}
Release
{{ ms.teamviewer.release }}
Unattended
{{ ms.teamviewer|yesno }}
{% endif %} {% with ms.puppet_node as puppet_node %} {% if puppet_node %}

Puppet

{% with puppet_node.trusted_facts as trusted_facts %} {% if trusted_facts %}

Trusted facts

Certificate Name
{{ trusted_facts.certname }}
Authenticated
{{ trusted_facts.authenticated }}
{% if trusted_facts.extensions %}
Extensions
{% for key, val in trusted_facts.extensions.items %}

{{ key }} - {{ val }}

{% endfor %}
{% endif %}
{% endif %} {% endwith %} {% with puppet_node.core_facts as core_facts %} {% if core_facts %}

Core facts

aio agent version
{{ core_facts.aio_agent_version }}
augeas version
{{ core_facts.augeas_version }}
client version
{{ core_facts.client_version }}
facter version
{{ core_facts.facter_version }}
ruby
{{ core_facts.ruby_platform }}
{{ core_facts.ruby_sitedir }}
{{ core_facts.ruby_version }}
{% endif %} {% endwith %} {% with puppet_node.extra_facts as extra_facts %} {% if extra_facts %}

Extra facts

{% for key, val in extra_facts.items %}
{{ key }}
{{ val }}
{% endfor %}
{% endif %} {% endwith %} {% endif %} {% endwith %}{% comment %}End if puppet_node {% endcomment %} {% with ms.principal_user as principal_user %} {% if principal_user %}

Principal user

Source
{{ principal_user.source.get_type_display }}
Unique ID
{{ principal_user.unique_id }}
Principal name
{{ principal_user.principal_name }}
{% if principal_user.display_name %}
Display name
{{ principal_user.display_name }}
{% endif %}
{% endif %} {% endwith %} {% with ms.ordered_certificates as certificates %} {% if certificates.count %}

Certificate{{ certificates.count|pluralize }}

{% for certificate in certificates %}
Common Name
{{ certificate.short_repr }}
Dates
{{ certificate.valid_from }} - {{ certificate.valid_until }}
{% if certificate.signed_by %}
Issuer
{{ certificate.signed_by.short_repr|default:"?" }}
{% endif %}
{% endfor %} {% endif %} {% endwith %} {% if ms.extra_facts %}

Extra facts

{{ ms.extra_facts|extra_facts }}
{% endif %} {% for source_subview in source_subviews %} {{ source_subview.render }} {% endfor %}
last change
{% if ms.public_ip_address %}{{ ms.public_ip_address }} - {% endif %} {{ ms.mt_created_at|date:'r'|default:'-' }}
{% if ms.last_commit.last_seen %}
last seen
{{ ms.last_commit.last_seen|date:'r' }}
{% endif %} {% if ms.last_commit.system_uptime %}
system uptime
{{ ms.last_commit.get_system_update_display }}
{% endif %}
{% endfor %}{% comment %}end for loop on machine snapshots{% endcomment %}
{% if perms.compliance_checks.view_machinestatus %}

{{ compliance_check_statuses|length }} Compliance check{{ compliance_check_statuses|length|pluralize }}

{% if compliance_check_statuses %} {% for cc_url, cc_name, status, status_time in compliance_check_statuses %} {% endfor %}
Name Status Time
{% if cc_url %} {{ cc_name }} {% else %} {{ cc_name }} {% endif %} {{ status }} {{ status_time|default:"-" }}
{% endif %} {% endif %} {% if perms.incidents.view_machineincident %} {% with machine.open_incidents as open_incidents %} {% if open_incidents %}

{{ open_incidents|length }} open incident{{ open_incidents|length|pluralize }}

{% for machine_incident in open_incidents %} {% with machine_incident.incident as incident %} {% endwith %} {% endfor %}
Name Status Severity Created at
{% if perms.incidents.view_incident %} {{ incident.name }} {% else %} {{ incident.name }} {% endif %} {{ machine_incident.get_status_display }} {% incident_severity incident.severity %} {{ machine_incident.created_at }}
{% endif %} {% endwith %} {% endif %} {% if fetch_heartbeats %}
Loading heartbeats…
{% endif %}
{% endblock %} {% block extrajs %} {% endblock %}