Is the 'Host name' on a Virtual Machine captured from Discovery?

mikegrynch
Tera Contributor

It's my understanding that 'Host name' on a virtual server is not captured from Discovery, however, we have several virtual servers that currently has the 'Name' of the server in the 'Host name' field. This seems to be coming from Discovery. How is that getting populated, and if that is getting populated, how can we get it to display the actual host name?

Example:

Name                                     Host name

exampleserver1       exampleserver1           <--how it is currently

exampleserver1       abcd10.erieinsurance.com   <--how we would like it to display

Thanks,

Mike G

1 ACCEPTED SOLUTION

doug_schulze
ServiceNow Employee
ServiceNow Employee

Thats actually happening in the Windows Classify Sensor..



find_real_file.png


What you may choose to do is goto discovery definition > properties and select include domain name in host name and see how that works for you...



find_real_file.png


View solution in original post

5 REPLIES 5

Priya C
Mega Contributor

Hi All @mikegrynch , @doug.schulze 

I am facing one issue in getting the hostname of the VM that we are setting using userdata in cloudformation template. Script is working good and VM name is also set.

But in servicenow nic table I am getting this field empty:

find_real_file.png

Can you please help me on this. 
1.Why that field is empty.
1. Do I need to tag it separately in template or it should come here.
2. but as the parameter is in Userdata(like this $hostname) how can I get that in servicenow 

Thanks and Regards,

Priya