Configuring Patch Management for IT Operations in ServiceNow

After you install the Tanium Patch Management for IT Operations application, you must configure ServiceNow to communicate with Tanium:

  1. Add endpoints to your ServiceNow instance.
  2. Collect information for Tanium SDK system properties.
  3. Configure Tanium SDK.
  4. Configure limiting groups
  5. Synchronize Tanium patch definitions and statuses.

The UI for your ServiceNow instance provides a Guided Setup for configuring the Tanium Software Development Kit (SDK) application and for synchronizing Tanium data with the instance. In the Guided Setup, a navigation pane shows your progress through the setup as a percentage and shows a circle for each section. A check mark in the circle indicates you completed the section. Hover over a circle to see the section name. Click a circle to go to the section.

Figure 1. Navigation pane
Navigation pane

Add endpoints to your ServiceNow instance

Use the ServiceNow Service Graph Connector for Tanium (best practice) or use Tanium Asset destination for ServiceNow to add endpoints as configuration items (CIs) to your ServiceNow instance. The endpoints that you add must match the endpoints in your Tanium environment. The endpoints must be present in the instance before you can perform any patching operations.

Collect information for Tanium SDK system properties

Perform the following tasks before you configure system properties for Tanium SDK.

Determine the URLs for API Endpoints

Find the fully qualified domain name (FQDN) or IP address of your Tanium Server (on-premises environment) or of Tanium Cloud to determine the URLs for the following API endpoints:

  • Tanium API endpoint

    The API endpoint URL is the URL of the Tanium Server or Tanium Cloud but with /api/v2 appended to the end. For example, if the Tanium Server IP address is 10.0.1.255, the endpoint URL is https://10.0.1.255/api/v2. For Tanium Cloud, you must also append ‑api to the end of the subdomain. For example, if the FQDN is cloud‑example.cloud.tanium.com, the endpoint URL is https://cloud‑example‑api.cloud.tanium.com/api/v2.

  • Tanium module API endpoint

    The API endpoint URL is the URL of the Tanium Server or Tanium Cloud but with /plugin/products appended to the end. For example, if the Tanium Server IP address is 10.0.1.255, the endpoint URL is https://10.0.1.255/plugin/products. For Tanium Cloud, you must also append -api to the end of the subdomain. For example, if the FQDN is cloud‑example.cloud.tanium.com, the endpoint URL is https://cloud‑example‑api.cloud.tanium.com/plugin/products.

Determine the API token value

Access the file where you store the API token for the Patch Management for IT Operations integration. For more information, see Creating API tokens in ServiceNow.

Determine the MID server name

Record the name (not the ServiceNow sys_id) of the management, instrumentation, and discovery (MID) server if your ServiceNow instance uses such a server for connecting to your Tanium environment. For more information about MID servers, see Infrastructure.

  1. Sign in to your ServiceNow instance.
  2. In the Main menu, click All, enter mid servers in the filter Filter field, and click MID Servers.

Determine the action group ID

Perform the steps in View action groups to view the ID of the Default - All Computers action group and then record the ID.

Configure Tanium SDK

Configure Tanium SDK to enable your ServiceNow instance to connect with your Tanium environment. Certain SDK system properties that you configure affect the behavior of Patch Management for IT Operations.

Access the SDK guided setup

  1. Sign in to your ServiceNow instance.
    Note: If you are already signed in to the instance and just finished installing applications (such as Tanium SDK), perform a hard refresh of your current browser tab to show the new applications in the instance UI.
  2. In the Main menu, click Scope Scope, enter sdk in the filter Filter field, and select Tanium SDK.
  3. In the Main menu, click All, enter tanium sdk in the filter Filter field, and click Guided Setup.
  4. Perform the following tasks on the Tanium Integration Core Setup page:
    1. Set system properties
    2. Sync Tanium packages, sensors, and computer groups
    3. Run automated tests

Set system properties

Perform the following steps on the Tanium Integration Core Setup page. To access the page, see Access the SDK guided setup.

  1. Go to the Set System Properties section and click Get Started for a first-time setup or Edit for an existing setup.
  2. Configure the system properties that are required for your integration. The following table lists the properties that Patch Management for IT Operations requires. Click Configure in the header of any system property to open the configuration page.
    Table 1. System properties

    System Property

    Description

    Tanium API Endpoint

    Enter the URL or IP address of the Tanium Server (on-premises environment) or of Tanium Cloud, with the API path prefix /api/v2 appended to the end. For more information, see Determine the URLs for API Endpoints.

    Tanium Module API Endpoint

    Enter the URL or IP address of the Tanium Server (on-premises environment) or of Tanium Cloud, with the API path prefix /plugin/products appended to the end. For more information, see Determine the URLs for API Endpoints.

    Note: When you use this property for an API call, the Tanium module name, API version, and API method name are automatically appended. For example, if the Tanium Server IP address is 10.0.1.255 and the module is Tanium™ Deploy, the value in an API call is https://10.0.1.255/plugin/products/deploy/v1/<api_method>.

    Tanium API Token

    Enter the API token that the integration uses for API requests. For more information, see Creating API tokens in ServiceNow.

    The ServiceNow scheduled job Get new API token - Tanium Integration Core rotates the Tanium SDK token every seven days, but the job is disabled by default. To enable the job:

    1. On the properties configuration page, click the scheduled job link to open the job settings in a new browser tab.

    2. Select Active and click Update.

    Note: Use the Tanium API Token property for authenticating instead of the Tanium Username/Password properties, which are deprecated.

    Default MID Server

    Enter the name (not the ServiceNow sys_id) of the MID server if your ServiceNow instance uses such a server for connecting to your Tanium environment. For more information, see Infrastructure.

    Identify Endpoint by Fields

    Choose whether Patch Management for IT Operations and the Tanium Patch module uniquely identify Tanium-managed endpoints in your environment using their FQDNs, serial numbers, or both. Your choice depends on whether FQDNs or serial numbers are unique for all the endpoints and have consistent values between your Tanium environment and ServiceNow CMDB. In a Tanium environment, you can see the values by issuing a question with the sensors Computer Name (for FQDNs) and Computer Serial Number. In a ServiceNow CMDB, the corresponding fields are fqdn and serial_number.

    Note: Serial numbers might not be unique for endpoints in an environment where some virtual machines (VMs) are provisioned through cloning without being issued new serial numbers.
    • Serial number or FQDN (default)

      The application attempts to uniquely identify each endpoint using three methods in the following order. If any method successfully identifies an endpoint, the application skips the remaining methods for that endpoint:

      1. Check if any endpoint precisely matches both the serial number and FQDN.

      2. Check for any endpoint with a serial number that is consistent between your Tanium and ServiceNow environments.

      3. Check for any endpoint with an FQDN that is consistent between your Tanium and ServiceNow environments.

    • FQDN or serial number

      The application attempts to uniquely identify each endpoint using three methods in the following order. If any method successfully identifies an endpoint, the application skips the remaining methods for that endpoint:

      1. Check if any endpoint precisely matches both the serial number and FQDN.

      2. Check for any endpoint with an FQDN that is consistent between your Tanium and ServiceNow environments.

      3. Check for any endpoint with a serial number that is consistent between your Tanium and ServiceNow environments.

    • FQDN and serial number

      The application attempts to uniquely identify each endpoint by the combination of its FQDN and serial number. If the combination does not exactly match an endpoint, the endpoint is treated as unmanaged and inaccessible.

      Note: Use this option only if you cannot rely on the uniqueness or consistency of the serial numbers or FQDNs and you must be absolutely certain that you are targeting the correct endpoint for patch operations.
    • Serial number

      The application attempts to uniquely identify each endpoint by serial number alone.

    • FQDN

      The application attempts to uniquely identify each endpoint by FQDN alone.

    "Default - All Computers" Action Group ID

    Enter the ID of the Default - All Computers action group. For the steps to view the ID, see View action groups.

    Log Tanium Actions

    Select this option to maintain a log of Tanium actions that are performed through the default API interfaces of Tanium SDK. ServiceNow maintains logs in the Tanium Action History table (x_taniu_tan_core_tan_action_history).

    Performance Module Enabled

    Select this option if the Tanium™ Performance module is installed in your Tanium environment.

    Disable Max HTTP Timeout

    If you encounter issues when trying to establish direct connections with endpoints, consider disabling the glide.http.outbound.max_timeout.enabled system property by setting it to false. This applies to all HTTP transactions and removes the maximum HTTP timeout limit, which otherwise has a maximum value of 30 seconds. If the property does not exist, you might need to create it.

  3. Click Save and Close the dialog.
  4. Click Mark as Complete for each property that you configured.

Sync Tanium packages, sensors, and computer groups

In your ServiceNow instance, a scheduled script automatically synchronizes packages and sensors from your Tanium environment to the instance. Perform the following steps to run the script immediately for the first time.

  1. On the Tanium Integration Core Setup page, go to the Sync Tanium Packages, Sensors, and Computer Groups section, and click Get Started for a first-time synchronization or Continue for a repeat synchronization.
  2. Synchronize Tanium packages:
    1. In the Sync Tanium Action Packages section, click Configure to open the Sync Tanium Action Packages page.
    2. Select Active and click Update.
    3. Click Configure to reopen the Sync Tanium Action Packages page, and then click Execute Now.
    4. Return to the Tanium Integration Core Setup page and click Mark as Complete in the Sync Tanium Action Packages section.
  3. Synchronize Tanium sensors:
    1. In the Sync Tanium Sensors section, click Configure to open the Sync Tanium Sensors page.
    2. Select Active and click Update.
    3. Click Configure to reopen the Sync Tanium Sensors page, and then click Execute Now.
    4. Return to the Tanium Integration Core Setup page and click Mark as Complete in the Sync Tanium Sensors section.
  4. Synchronize Tanium Deploy packages to access all software packages that were created in Tanium Deploy or imported from the Tanium Deploy Predefined Package Gallery:
    1. In the Sync Tanium Deploy Packages section, click Configure to open the Sync Tanium Deploy Packages page.
    2. Select Active and click Update.
    3. Click Configure to reopen the Sync Tanium Deploy Packages page, and then click Execute Now.
    4. Go to the following URL to verify that the packages were imported: https://<serviceNow_instance_url>/x_taniu_tan_core_deploy_spkg_list.
    5. Return to the Tanium Integration Core Setup page and click Mark as Complete in the Sync Tanium Deploy Packages section.
  5. Synchronize Tanium Deploy software bundles:
    1. In the Sync Tanium Deploy Software Bundles section, click Configure to open the Sync Tanium Deploy Software Bundles page.
    2. Select Active and click Update.
    3. Click Configure to reopen the Sync Tanium Deploy Software Bundles page, and then click Execute Now.
    4. Return to the Tanium Integration Core Setup page and click Mark as Complete in the Sync Tanium Deploy Software Bundles section.
  6. Synchronize Tanium computer groups:
    1. In the Sync Tanium Computer Groups section, click Configure to open the Sync Tanium Computer Groups page.
    2. Select Active and click Update.
    3. Click Configure to reopen the Sync Tanium Computer Groups page, and then click Execute Now.
    4. Return to the Tanium Integration Core Setup page and click Mark as Complete in the Sync Tanium Computer Groups section.

Run automated tests

Perform the following steps to validate that you configured Tanium SDK successfully and that your ServiceNow instance can communicate with your Tanium environment. The tests use the ServiceNow Automated Test Framework (ATF) to test authentication, test integration with the Tanium Gateway shared service, and verify that the required system properties are configured. The tests detect issues such as an invalid or inaccessible Tanium Server URI, non-working credentials, a misconfigured MID server, RBAC permissions issues in the Tanium or ServiceNow environment, and access control list (ACL) permissions in the ServiceNow environment.

  1. On the Tanium Integration Core Setup page, go to the Run Automated Tests section.
    Note: To access the page, see Access the SDK guided setup.
  2. Click Get Started for a first-time test or Edit for a subsequent test, click Configure, and click Execute Now.
  3. Click Close if the Run Test Suite dialog shows no errors. Otherwise, click Go to Result to troubleshoot the errors.

    The Test Suite Result page shows a one-click fix option for issues that the ServiceNow instance can resolve automatically. Consult your ServiceNow administrator to resolve issues that the instance cannot resolve automatically.

Synchronize Tanium patch definitions and statuses

When you first configure Patch Management for IT Operations, you can manually import (synchronize) patch definitions and statuses from the Tanium Patch module into the instance to ensure patch processes can start immediately. After the initial setup, you can manually synchronize at any time if you do not want to wait for the next scheduled jobs, which are:

  • Sync Tanium Patch Definitions: Synchronizes all patch definitions from the Tanium environment into ServiceNow every five hours to return details for platform, severity, classification, release date, Windows confidence scores, and more.

  • Sync Tanium Patch Lists: Synchronizes all patch lists from the Tanium environment into ServiceNow every day to return details for OS Type, ID, Active Deployments, Rules, and more.

  • Sync Tanium Patch Statuses: Synchronizes the installation status of patches against individual configuration items every three hours. For example, endpoint win-server-1 for patch Windows Malicious Software Removal Tool x64 - v5.133 (KB890830) with an install status of Not Installed. Specifically, this synchronization updates that status of existing Tanium Patch Status records that have changed and deletes Tanium Patch Status records that are no longer returned from Tanium.

Perform the following steps to run the initial synchronization.

  1. In the Main menu, click Scope Scope, click the current scope, enter patch management in the filter Filter field, and select Tanium Patch Management.
  2. In the Main menu, click All, enter patch management in the filter Filter field, and click Guided Setup.
  3. On the Tanium Patch Management Setup page, verify that the Configure Tanium Integration Core tasks are 100% complete. If necessary, finish any incomplete tasks as described in Configure Tanium SDK.
  4. Go to the Tanium Patch Initial Sync section and click Get Started for a first-time synchronization or Edit for a repeat synchronization.
  5. On the Tanium Patch Initial Sync page, synchronize Tanium patch definitions:
    1. In the Sync Tanium Patch Definitions section, click Configure to open the Sync Tanium Patch Definitions page.
    2. Select Active and click Update.
    3. Click Configure to reopen the Sync Tanium Patch Definitions page, and then click Execute Now.
    4. On the Tanium Patch Initial Sync page, click the Patch Definition table link. The Tanium Patch Definitions page opens in a new tab.
    5. Verify that the Tanium Patch Definitions page has entries in the grid. The presence of entries indicates the synchronization is working. The page count field shows the number of entries, such as 1 to 20 of 20,000. Select List Controls List Controls  > Refresh List to update the display. Wait for the number to stop changing before continuing.
    6. Return to the Tanium Patch Initial Sync page and click Mark as Complete in the Sync Tanium Patch Definitions section.
  6. On the Tanium Patch Initial Sync page, synchronize Tanium patch lists:
    1. In the Sync Tanium Patch Lists section, click Configure to open the Sync Tanium Patch Lists page.
    2. Select Active and click Update.
    3. Click Configure to reopen the Sync Tanium Patch Lists page, and then click Execute Now.
    4. On the Tanium Patch Initial Sync page, click the Patch List table link. The Tanium Patch Lists page opens in a new tab.
    5. Verify that the Tanium Patch Lists page has entries in the grid. The presence of entries indicates the synchronization is working. Select List Controls List Controls  > Refresh List to update the display, and wait for the number to stop changing before continuing.
    6. Return to the Tanium Patch Initial Sync page and click Mark as Complete in the Sync Tanium Patch Lists section.
  7. On the Tanium Patch Initial Sync page, synchronize Tanium patch statuses:
    1. In the Sync Tanium Patch Statuses section, click Configure to open the Sync Tanium Patch Statuses page.
    2. Select Active and click Update.
    3. Click Configure to reopen the Sync Tanium Patch Statuses page, and then click Execute Now.
    4. On the Tanium Patch Initial Sync page, click Mark as Complete in the Sync Tanium Patch Statuses section.

After the initial patch synchronization finishes, configuration is complete for the Patch Management for IT Operations application.

Configure limiting groups

Limiting groups are computer groups that filter the subset of endpoints that are targeted in a deployment. For more information about how limiting groups work, see Manually deploy a software package or bundle.

For patch deployments, configuring limiting groups is optional. When a limiting group is not defined, the default group is All Computers.

For software deployments, configuring limiting groups is required.

  1. In the Main menu, click Scope Scope, click the current scope, enter patch management in the filter Filter field, and select Tanium Patch Management.
  2. In the Main menu, click All, enter patch management in the filter Filter field, and click Guided Setup.
  3. On the Tanium Patch Management Setup page, verify that the Configure Tanium Integration Core tasks are 100% complete. If necessary, finish any incomplete tasks as described in Configure Tanium SDK.
  4. Go to the Set System Properties section and click Get Started to populate the Target Limiting Group IDs.
  5. To configure limiting groups for patch deployments, in the Populate Target Limiting Group IDs section, click Configure.
  6. In the Value field, enter a comma-separated list of computer group IDs from Tanium. For example: 123, 456, 789.
    Tip: To see the computer group ID in Tanium, you might need to configure the computer group table to display the ID column. For more information, see Controlling endpoint management rights through computer groups.computer-group-id
  7. To configure limiting groups for software deployments, in the Populate Deploy Target Limiting Group IDs section, click Configure.
  8. In the Value field, enter a comma-separated list of computer group IDs from Tanium. For example: 123, 456, 789.

(Optional) Import deployment templates

For patch deployments, if you intend to force endpoints to restart after a successful patch deployment, you can optionally add an end-user notification to inform users that a restart is required. To define the notification contents to display to the users, you must define the post-deployment notification settings in Tanium Patch deployment templates and then import the templates to ServiceNow. For more information about creating deployment templates and notification settings in Tanium, see Create a deployment template.

For software package deployments, you can apply a deployment template to use predefined software deployment settings in your Tanium Patch Request.

Complete the following steps to enable the Deployment Template Import feature in ServiceNow and then import the templates into ServiceNow.

  1. In the Main menu, click All, enter Tanium patch management in the filter Filter field, and click Administration > Setting (Integration Core > Patch).
  2. To import Tanium Patch deployment templates complete the following steps:
    1. In the Enable Patch Deployment Template Import section, enable the Yes checkbox and then click Save.
    2. Go to the following URL, which opens the Deployment Template Import record: https://<serviceNow_instance_url>/scheduled_import_set.do?sys_id=56a2b6f40fb0be50ab240ff800d1b214

      Alternatively, you can also go the Main menu, click All, enter scheduled import in the filter Filter field, and click System Import Sets > Administration > Scheduled Imports. Then, seach for and click Deployment Template Import.

    3. Click Execute Now.
    4. Go to the following URL to verify that the templates were imported: https://<serviceNow_instance_url>/x_taniu_tan_core_patch_deployment_template_import_list. As part of the import, Tanium End User Notification records are created in ServiceNow, which contain the notification contents.
    5. Now you can select a template from the Restart Client Notification setting when you create a patch request.
  3. To import Tanium Deploy deployment templates, complete the following steps:
    1. In the Enable Deploy Deployment Template Import section, enable the Yes checkbox and then click Save.
    2. Go to the following URL, which opens the Deployment Template Import record: https://<serviceNow_instance_url>/scheduled_import_set.do?sys_id=30f516049bf547f2915fa1f4c3d239ec

      Alternatively, you can also go the Main menu, click All, enter scheduled import in the filter Filter field, and click System Import Sets > Administration > Scheduled Imports. Then, seach for and click Deploy Deployment Template Import.

    3. Click Execute Now.
    4. Go to the following URL to verify that the templates were imported: https://<serviceNow_instance_url>/x_taniu_tan_core_deployment_template_list.do.
    5. Now you can use these templates when you create a software package deployment.