OBLYTECH Logo
OBLYTECH Logo

How to Configure OT Discovery Connections and Credentials

To connect ServiceNow to an OT Discovery console, an admin sets the application scope, decides whether a MID Server sits between the two systems, and enters the console URL and an API key generated in the console. Generating the imports and running a connection test then shows whether the connection succeeded.

Confirm the role and application scope first

The connection and import tasks require the admin role, so confirm you hold it before you start. Then switch the application scope to the Service Graph Connector for ServiceNow Operational Technology (OT) Discovery, using the application picker. This switch is the first step of the connection procedure.

Some plugins and store apps need to be in place first. In the Brazil release, the prerequisites are the Industrial Core plugin, the ISA Equipment Model store app at version 1.0.11 or later, the ITOM Discovery License plugin, the ITOM Licensing plugin and the Datastream Action plugin. The ITOM Discovery License plugin must be activated. The Datastream Action plugin installs automatically. Review these during the Discovery Console for OT setup, before the connection step.

The connection task comes after the table permissions step in the Guided Setup. Earlier in that flow you download the console, sensor and collector packages and set table permissions on the scheduled data import and data source tables. In the Zurich and Australia releases, Can Read, Can Create and Can Update must be checked on the Application Access tab of both tables. The import generation step depends on those permissions, so confirm them before you reach it.

Decide whether a MID Server belongs in the path

Configuring a MID Server is optional under the Configure the connection section. The deciding question is whether the OT Discovery console can be reached from the ServiceNow instance. If it can, a MID Server is not needed. If the console cannot be reached from the internet, a MID Server is required.

The reason lies in what a MID Server does. It acts as a secure proxy between the instance and the console. ServiceNow uses it to schedule jobs and make REST calls into the environment to pull data such as assets and installed software. Without a MID Server, ServiceNow cannot start direct communication when the console is unreachable from the instance. Map the network route between the two systems before you choose.

Where a MID Server is needed, install it on the host machine, test the connection, validate the MID Server, and configure it with the MID Server Guided Setup. After that, it can be picked as a choice in the connection record.

Security checks are part of the same decision. The certificate check policies cover TLS/SSL certificate validation, hostname validation, Certificate Revocation List (CRL) validation and OCSP validation in the current release. Older releases such as Zurich list the same checks without CRL. Hostname validation depends on TLS certificate validation, because the hostname is taken from the certificate the server presents. The MID Server security policies sort outbound HTTPS traffic into four groups: ServiceNow endpoint, internet, intranet and overridden. Overridden policies take the highest precedence. Enable or disable these checks to match your network configuration.

Open the OT Discovery connection record

From the Guided Setup, select Configure next to the Configure the OT Discovery Connection & Credentials task. Depending on your ServiceNow version, this opens Workflow Studio or the Workflow Studio Connections list, where outbound connections appear alphabetically. You can also navigate to the OT Discovery Connections record or search for it. Use View Details to view or edit a connection.

The default connection is named OT Discovery, and its name is read-only. Open its connection page and select Configure to reach the Create Connection window. Use Add Connection to create additional connections. Each connection can produce its own data source objects, console objects and schedules, so a second console is a second connection with its own name, URL and key.

Enter the connection details

The Create Connection window asks for five fields.

Field Required What to enter
Connection Name Yes A unique name. The default connection is OT Discovery and is read-only.
Connection URL Yes The URL of the Discovery console, copied from the console and pasted in.
Use MID Server No A checkbox to route the connection through a MID Server.
MID Server No The MID Server to use, selected from the list.
API Key Yes The token generated in the console’s Settings page.

Choose the connection name with the console in mind. When three connections appear in a list, a name tied to a site or region is far easier to read than a generic label. Copy the Connection URL from the console rather than typing it, to avoid a mistyped address. Leave the MID Server checkbox clear if the console is reachable from the instance. If you tick it, select the MID Server you installed, tested and validated earlier.

Generate the API key in the console

The key comes from the OT Discovery console. Open its Settings page, select the API tab, then select the Add icon. In the Generate API Token window, choose the expiration length, and select Generate Token. The token appears in the Active token list. Select the Copy icon beside it, return to the connection record, paste the token into the API Key field and select Save.

The API tab has three sub-tabs. Active Tokens lists the tokens in use. Denied Tokens lists tokens that have been denied, and each can be removed with its Remove Token icon. Endpoints lists the endpoints the Service Graph Connector uses to talk to the console, with each endpoint’s name, method and URI. A copy icon on that tab copies an endpoint. The named endpoints include Sites, Assets, Network Zones, Sensors, Connections, Installed Programs, Images, Sensor Health, License Status and Notifications.

The License Status endpoint is the one to check when the connection test points at the license. It returns the status of the console license and whether that license has expired. Tokens can also be imported or exported from the API tab.

Save the connection and generate imports

Select Save, return to the Configure the connection page, and select Mark as complete to move to the next step, Generate imports and validate the connections. The connection test runs in the Validate the connection section.

In the Brazil release, select Configure next to the Generate imports task. On the Generate imports for the OT Discovery Connection page, set Run As User to System administrator. That is the platform role that will run the schedules. Select Generate. Because the table permissions allow Can Read, Can Create and Can Update, the generation starts creating scheduled jobs in the background. When it finishes, a banner confirms that the import objects were generated for the connection. Each connection produces its own Scheduled Import Set and Data Source.

Run the connection test and read the result

Select Configure in the Validate the connection section. Tick the box next to OT Discovery, then under Related Links select Test Connection. The page refreshes with the results.

A Status Code of 200 means the connection succeeded. An Error Code and Error Message mean it failed, and the connection needs troubleshooting. Hold off on marking the step complete until the test passes.

The test checks two things: whether the Service Graph Connector can reach the instance, and whether the console has a valid license. A connection can pass the first check and fail the second. If the connection passes but the console license has expired, the Suggestion field may show a message asking you to contact your account representative.

After a passing test, select the OT Discovery link to open the Service Graph Connector OT Discovery view. It lists the connection properties, the data sources generated and the seven import schedules created.

Frequently asked questions

Is a MID Server needed for OT Discovery?

It is needed when the console cannot be reached from the internet. If the console is reachable from the ServiceNow instance, a MID Server is not needed. Where it is needed, it acts as the secure proxy that lets ServiceNow schedule jobs and make REST calls to the console.

Can one instance connect to more than one OT Discovery console?

Yes. The table permissions allow multiple connections across multiple consoles, and the setup you can use depends on the deployment choice made for those consoles. Each connection needs its own unique name, console URL and API key.

Where does the API key come from?

It is generated in the OT Discovery console, on the Settings page, under the API tab. Select the Add icon, choose an expiration length, generate the token, and copy it from the Active token list. The API Key field is mandatory.

What does a successful connection test prove?

It proves that the Service Graph Connector can reach the instance and that the console holds a valid license. A status of 200 indicates success. It does not show that the imports will run correctly, so check the seven import schedules afterward.