Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Solaris Server pattern not able to populate hostname including the domain part - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Solaris Server pattern not able to populate hostname including the domain part
KB0864285

Solaris Server pattern not able to populate hostname including the domain part


348 Views Last updated : Dec 1, 2024 public Copy Permalink
KB Summary by Now Assist

Description

Solaris Server's hostname by default is retrieved from DNS. Refer to: https://docs.servicenow.com/csh?topicname=r_DataCollDiscoSolarisComputers.html&version=latest
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/csh?topicname=r_DiscoveryProperties.html&version=latest

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

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.