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.
How-To: Modify Service Mapping to support Netscaler Load Balancers configured for Service Groups - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How-To: Modify Service Mapping to support Netscaler Load Balancers configured for Service Groups
KB0782230

How-To: Modify Service Mapping to support Netscaler Load Balancers configured for Service Groups


982 Views Last updated : Apr 8, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

This article details how to modify Patterns/Service Mapping in order to support Top-Down Discovery with Netscalers that utilize Service Groups (multiple IPs per Load Balancer service, instead of a single IP), which is currently unsupported.

NOTE: Dependent on Pattern fixes in PRB1360774

Release

All, as of NYP1

Cause

Currently the Netscaler SSH pattern doesn't properly gather multiple IP addresses for cmdb_ci_lb_pool records to match the configured Service Group IP information on the Netscaler end. As a result, VIPs are not able to be properly correlated to cmdb_ci_lb_service records which reference back to the Netscaler CI record in Service Mapping.

Additionally, Service Mapping does not search on any other tables (only cmdb_ci_lb_service and LB CI records) to match VIPs to Load Balancers.

Resolution

PRB1360774 contains the Pattern fixes to properly gather the IP information in cmdb_ci_lb_pool and cmdb_ci_lb_pool_member records

We can utilize the DiscoveryHostUtils script include to workaround the Service Mapping component and search on these additional tables and return the proper Load Balancer CI record. Modify the "findHostByIp" function in "DiscoveryHostUtils" as follows:

findHostByIp : function(ip){

// Check for IP matches manually on cmdb_ci_lb_pool, and cmdb_ci_lb_pool_members to support Service Groups configuration
var grLbP = new GlideRecord("cmdb_ci_lb_pool");
grLbP.addQuery("ip_address","=",ip);
grLbP.query();

while (grLbP.next()) {
if (grLbP.load_balancer.operational_status == "1")
return grLbP.load_balancer;
}

var grLbPM = new GlideRecord("cmdb_ci_lb_pool_member");
grLbPM.addQuery("ip_address","=",ip);
grLbPM.query();

while (grLbPM.next()) {
if (grLbPM.load_balancer.operational_status == "1")
return grLbPM.load_balancer;
}


return null;
},


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.