13 views

Description

Solaris Server's hostname by default is retrieved from DNS. Refer to: https://docs.servicenow.com/bundle/newyork-it-operations-management/page/product/discovery/reference/r_DataCollDiscoSolarisComputers.html
You can then decide if the hostname should include the domain part by setting the property "glide.discovery.hostname.include_domain" to true.
Refer to: https://docs.servicenow.com/bundle/newyork-it-operations-management/page/product/discovery/reference/r_DiscoveryProperties.html

This is working using Probe. If you switch to pattern, Solaris Server pattern is currently ignoring this "glide.discovery.hostname.include_domain" property and the hostname will not have the domain part.

Steps to Reproduce

1. Set the property "glide.discovery.hostname.include_domain" to true in sys_properties table.
2. Run discovery on Solaris server.
3. Observe the created CI's hostname does not contain the domain part.

Workaround

This problem is currently under review. You can contact ServiceNow Technical Support or subscribe to this Known Error article by clicking the Subscribe button at the top right of this form to be notified when more information will become available.

If you can not wait until then, you can do the following:

  1. Open Solaris Server pattern in Pattern Designer mode.
  2. Navigate to Pattern Tab - Pattern Text section.
  3. Add the following piece of code right before Solaris - Identity step (this is reference step to other library):

=========
step {
name = "Get DNS name from cmdb_ci_dns_name table"
if {
condition = eq {
get_attr {"shouldIncludeDomain"}
"true"
}
on_true = set_attr {
"DNSName"
eval {"javascript: var rtrn ='';
var table =${cmdb_ci_dns_name};
var ip=${computer_system.managementIP};
for(var i=0;i< table.size();i++){
var map=table.get(i);
if(map.get('ip_address') == ip){
rtrn =map.get('name');
break;
}
}
rtrn = rtrn;"}
}
on_false = nop {}
}
}
step {
name = "Set Name if should include domain s true"
if {
condition = all {
is_not_empty {get_attr {"DNSName"}}
eq {
get_attr {"shouldIncludeDomain"}
"true"
}
}
on_true = set_attr {
"cmdb_ci_solaris_server[*].name"
get_attr {"DNSName"}
}
on_false = nop {}
}
}
=========


Related Problem: PRB1447189

Seen In

SR - IRM - Audit Management - New York 2019 Q3
SR - IRM - GRC Profiles - Madrid 2019 Q2
SR - IRM - Policy and Compliance - Madrid 2019 Q2
SR - IRM - Risk Management - New York 2019 Q3

Intended Fix Version

Rome

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2020-11-15 09:22:38
Published:2020-11-14