The `hosts` API has multiple fields that appear to...
# fleet
p
The
hosts
API has multiple fields that appear to include the computer's name: • hostname • computer_name • display_name What is the difference between these fields and how are they pulled from Linux?
f
can't comment on Linux, but for macOS there are multiple "host names" and they do not have to be the same which is at least one reason why it exists here. for example, the
system_info
table has 3 different "host names"
computer_name
and
hostname
and
local_hostname
u
The hostname and computer_name are pulled from the system_info. The display_name will be (in order of preference) the computer_name, hostname, hardware_model or hardware_serial.
❤️ 1
💥 1
p
And the
display_name
I assume is what actually shows in the gui for each host?
u
Exactly.
👍 1