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:
- Add endpoints to your ServiceNow instance.
- Collect information for Tanium SDK system properties.
- Configure Tanium SDK.
- Configure limiting groups
- 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.
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.
- Sign in to your ServiceNow instance.
- In the Main menu, click All, enter mid servers in the 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
Set system properties
Perform the following steps on the Tanium Integration Core Setup page. To access the page, see Access the SDK guided setup.
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.
- 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.
- Synchronize Tanium packages:
- In the Sync Tanium Action Packages section, click Configure to open the Sync Tanium Action Packages page.
- Select Active and click Update.
- Click Configure to reopen the Sync Tanium Action Packages page, and then click Execute Now.
- Return to the Tanium Integration Core Setup page and click Mark as Complete in the Sync Tanium Action Packages section.
- Synchronize Tanium sensors:
- In the Sync Tanium Sensors section, click Configure to open the Sync Tanium Sensors page.
- Select Active and click Update.
- Click Configure to reopen the Sync Tanium Sensors page, and then click Execute Now.
- Return to the Tanium Integration Core Setup page and click Mark as Complete in the Sync Tanium Sensors section.
- Synchronize Tanium Deploy packages to access all software packages that were created in Tanium Deploy or imported from the Tanium Deploy Predefined Package Gallery:
- In the Sync Tanium Deploy Packages section, click Configure to open the Sync Tanium Deploy Packages page.
- Select Active and click Update.
- Click Configure to reopen the Sync Tanium Deploy Packages page, and then click Execute Now.
- Go to the following URL to verify that the packages were imported: https://<serviceNow_instance_url>/x_taniu_tan_core_deploy_spkg_list.
- Return to the Tanium Integration Core Setup page and click Mark as Complete in the Sync Tanium Deploy Packages section.
- Synchronize Tanium Deploy software bundles:
- In the Sync Tanium Deploy Software Bundles section, click Configure to open the Sync Tanium Deploy Software Bundles page.
- Select Active and click Update.
- Click Configure to reopen the Sync Tanium Deploy Software Bundles page, and then click Execute Now.
- Return to the Tanium Integration Core Setup page and click Mark as Complete in the Sync Tanium Deploy Software Bundles section.
- Synchronize Tanium computer groups:
- In the Sync Tanium Computer Groups section, click Configure to open the Sync Tanium Computer Groups page.
- Select Active and click Update.
- Click Configure to reopen the Sync Tanium Computer Groups page, and then click Execute Now.
- 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.
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.
- In the Main menu, click Scope
, click the current scope, enter patch management in the filter
field, and select Tanium Patch Management.
- In the Main menu, click All, enter patch management in the filter
field, and click Guided Setup.
- 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.
- Go to the Tanium Patch Initial Sync section and click Get Started for a first-time synchronization or Edit for a repeat synchronization.
- On the Tanium Patch Initial Sync page, synchronize Tanium patch definitions:
- In the Sync Tanium Patch Definitions section, click Configure to open the Sync Tanium Patch Definitions page.
- Select Active and click Update.
- Click Configure to reopen the Sync Tanium Patch Definitions page, and then click Execute Now.
- On the Tanium Patch Initial Sync page, click the Patch Definition table link. The Tanium Patch Definitions page opens in a new tab.
- 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
> Refresh List to update the display. Wait for the number to stop changing before continuing.
- Return to the Tanium Patch Initial Sync page and click Mark as Complete in the Sync Tanium Patch Definitions section.
- On the Tanium Patch Initial Sync page, synchronize Tanium patch lists:
- In the Sync Tanium Patch Lists section, click Configure to open the Sync Tanium Patch Lists page.
- Select Active and click Update.
- Click Configure to reopen the Sync Tanium Patch Lists page, and then click Execute Now.
- On the Tanium Patch Initial Sync page, click the Patch List table link. The Tanium Patch Lists page opens in a new tab.
- Verify that the Tanium Patch Lists page has entries in the grid. The presence of entries indicates the synchronization is working. Select List Controls
> Refresh List to update the display, and wait for the number to stop changing before continuing.
- Return to the Tanium Patch Initial Sync page and click Mark as Complete in the Sync Tanium Patch Lists section.
- On the Tanium Patch Initial Sync page, synchronize Tanium patch statuses:
- In the Sync Tanium Patch Statuses section, click Configure to open the Sync Tanium Patch Statuses page.
- Select Active and click Update.
- Click Configure to reopen the Sync Tanium Patch Statuses page, and then click Execute Now.
- 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.
(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.
- In the Main menu, click All, enter Tanium patch management in the filter
field, and click .
- To import Tanium Patch deployment templates complete the following steps:
- To import Tanium Deploy deployment templates, complete the following steps: