Servicenow CMDB
  • 19 Feb 2025
  • 3 Minutes to read
  • Contributors
  • Dark
    Light

Servicenow CMDB

  • Dark
    Light

Article summary

ServiceNow Configuration Management Database (CMDB) is a centralized repository that serves as a comprehensive data warehouse, organizing information about an IT environment. The CMDB clarifies the relationships between hardware, software components, and networks, enhancing configuration management. More information can be found at  ServiceNow CMDB webpage.

Integration Method: API

Tables: Device Inventory Info (5001), Software Inventory Info (5020)

List of events supported by this integration.

Events

Description

CMDB CIs

Retrieves data for all classes in the CMDB CI table.

This integration supports the following versions

ServiceNow Version Tested

ServiceNow version Vancouver

ServiceNow API version

v2.0

Prerequisites

  1. Access to the ServiceNow CMDB Admin Role to create an OAuth API endpoint for external clients.

  2. Access to the DataBee console.

Configuration Overview

  1. Generate API credentials on the ServiceNow console with the required user roles.

    1. Create OAuth client application

    2. Create user

    3. Assign roles to user

  2. Add the ServiceNow data feed integration in the DataBee console with the required API credentials.

DataBee Feed Parameter

ServiceNow Parameter

Client Key

Client ID

Client Secret

Client Secret

Username

User ID

Password

Password

TOKEN URL :<instance>

ServiceNow Instance

API URL :<instance>

ServiceNow Instance

ServiceNow Configuration

The scope is a mechanism to let an application request limited access to a user’s data. ServiceNow platform supports authentication scopes to allow admins to limit access of an OAuth client application to a specific REST API.

Create OAuth client application

  1. Get the servicenow instance from the URL as highlighted below.

  1. Navigate to All

    • In the search bar, enter System OAuth.

    • Navigate to System OAuth > Application Registry.

  1. Click on the New button.

  1. On the Interceptor page, click Create an OAuth API endpoint for external clients.

  1. Fill in the required details in the form:

    • Name: Enter a unique name for OAuth client application.

    • Client ID: Automatically generated by the ServiceNow OAuth server.

    • Client Secret: Enter Client secret for the Oauth application or leave empty for auto generation

         Copy the Client ID and Client Secret for later use.

  1. Click on the Submit button.

Name

Unique Name that identifies the application

Client ID

This will be auto generated by the instance: To be provided to DataBee.

Client Secret

This will be auto generated by the instance Or Can Entered: To be provided to DataBee.

Refresh Token Lifespan

8,640,000 seconds (100 days) & can be increased

Access Token Lifespan

1800 seconds (30 Minutes) & can be increased

Create User

  1. Navigate to All,

    1. In the search bar, enter User Administration.

    2. Navigate to User Administration > Users.

  1. Click on the New button. The Create User form window will appear.

  1. Fill in the required fields to create a user:

    1. User ID: Enter a unique username.

    2. First Name: Enter the user's first name.

    3. Last Name: Enter the user's last name.

    4. Time Zone: Set to GMT/UTC to ensure the API response includes GMT/UTC dates.

    5. Date Format: Set to System (yyyy-MM-dd).

    6. Active: Ensure the checkbox is selected.

    7. Locked Out: Ensure the checkbox is not selected.

The user must be active and not locked out to allow the instance to generate an access token for OAuth.

Copy the User ID and Password for later use.

Click the Submit button.

  1. Search username for the “User ID” created in the previous step and click on it.

  1. Click on the Set Password button.

  1. Click on the Generate button and copy the password for later use.

  1. Click on the Save Password button.

Assign roles to user

  1. Go to Roles tab and click on Edit to assign roles to user.
     

  2. In the search bar:

    1. Enter "ITIL" and click Add.

    2. Click the Save button.

DataBee Configuration

Use the saved client secret and key to configure DataBee. Detailed setup documentation can be found at https://docs.databee.buzz/docs/api-ingest

  1. Login to the DataBee UI, navigate to Data > Data Feeds and click the Add New Data Feed button

  1. Search for Servicenow CMDB and select it.

  1. Click on the API Ingest button.

  1. Enter basic contact information in the contact form and click on the Next button.

  1. In the configuration page, enter the following:

Select the CMDB tables or leave it blank to retrieve all available CMDB tables.

  1. Click on the Submit button.

Troubleshooting Tips

  • Ensure the client key, client secret, instance, username and password are pasted correctly. Since you cannot view the client key and secret after the 1st time, re-create the creds, paste it on a text editor to ensure no spaces or unexpected characters are included and reconfigure the DataBee feed

  • Make sure the required user role is assigned.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence