2 Installing and Configuring the Connector

This chapter provides the following information for setting up and configuring the ServiceNow Connector and related tasks:

Prerequisites

The ServiceNow Connector communicates through ServiceNow's Table REST API. Before using the ServiceNow Connector, ensure that you meet the following prerequisites:

  • ServiceNow User exists with the “ITIL” role applied.

  • Add the "Root Certificate Authority - Entrust.net Certification Authority (2048)" certificate as described in Enabling SSL for HTTPS.

  • My Oracle Support Preferred Credentials are set. To set the credentials, perform the following steps:

    1. From the Enterprise Manager console Setup menu, select My Oracle Support, then Set Credentials.

    2. Enter the user name and password information, then click Apply.

    3. From the Enterprise Manager console Setup menu, select Extensibility, then Self Update.

    4. From the Self Update page, look for the ServiceNow REST Ticketing connector in the table list. If it does not appear, go to the next step.

    5. Click Check Updates to schedule a job to collect the metadata for the connector, as shown in the image below.

      See Also:

      Refer to the Setting Up Self Update section in the Oracle Enterprise Manager Cloud Control Administrator's Guide for more details.

      Note:

      You can also set up Self Update in offline mode. See the Applying an Update in Offline Mode section in the Oracle Enterprise Manager Cloud Control Administrator's Guide for details.

      Image shows Self Update page of Enterprise Manager.

Installing the Connector

This section provides the procedure required to download and install (apply) the connector. The ServiceNow connector is not included out-of-the-box, so you need to download it from the Oracle Enterprise Manager store. All connectors in the Enterprise Manager store are available on the Self Update page for downloading.

To install the connector:

  1. From the Enterprise Manager console Setup menu, select Setup, then select Extensibility, then select Self Update.

  2. Click on the Management Connector link in the Type column.

    The ServiceNow connectors appear in the list with a status of Available.

  3. Click on the appropriate ServiceNow connector to select it, and then click Download.

    The Schedule Download window appears, where you can determine when the download should be performed.

  4. Click Select to download immediately.

    If you want to schedule the download for a later time, specify the date and time when the download should occur, and click Select. You will need to return and finish the remainder of this procedure after the scheduled download date and time.

  5. If necessary, refresh the screen until the status of the connector changes to Downloaded.

  6. Click on the ServiceNow REST Ticketing connector to select it, then click Apply.

    After you respond to the prompt to confirm the operation, a page appears that indicates the request has been submitted.

  7. Refresh the screen until the status of the connector changes from Apply Scheduled to Applied.

Creating a Connector Instance

To use the ServiceNow connector, you need to create one or more instances of this connector type. A connector instance refers to the configured instance of the connector with specific details, such as connector name, User name, Password and so forth of the ServiceNow instance. Multiple connector instances for the same connector type are supported, which provides the flexibility to configure multiple ServiceNow instances with Enterprise Manager.

For example, since Enterprise Manager is monitoring production targets and test targets, you can then create two instances of the connector and configure Enterprise Manager so that incidents from production targets create tickets in one connector instance, and incidents from test targets create tickets in the second connector instance.

To create a connector instance:

  1. From the Enterprise Manager console, click Setup.

  2. Select Extensibility in the pane.

  3. Select Management Connectors in the left pane.

  4. Select a connector type from the Create Connector drop-down list and click the Go button.

  5. Enter the connector name and description on the next screen and click OK.

    The connector instance appears as unconfigured on the Management Connectors page, shown in the image below.

    Figure 2-1 Management Connectors Page


    ServiceNow Management Connectors Page

Configuring the Connector

Perform the following steps for basic configuration:

  1. As Super Administrator, from the Enterprise Manager console, click Setup.

  2. Click Extensibility, then Management Connectors.

    The Management Connectors page appears that lists all created connector instances.

    Note:

    The status column with a green tick mark indicates that the connector is already configured.

  3. Click the Configure button for the ServiceNow. The General tab of the Configure Management Connector page appears.

  4. Provide the required settings. See "Providing General Settings" for details.

  5. Click OK.

    The Management Connectors page reappears. The row for the ServiceNow Connector should have a check mark in the Status column, as shown in the figure below.


    The image shows the management Connectors page in Enterprise Manager with the confimation that the test succeded.

  6. Optional: Register any customized templates using the emctl command from the ORACLE_HOME/bin directory, where ORACLE_HOME is the Oracle home directory of OMS.

    You can view all ticket templates by clicking the Ticket Templates tab.

Enabling or Disabling the Connector

You can enable or disable a connector instance without needing to reconfigure or remove the connector from the system.

You can enable or disable a connector from the Management Connector page by selecting the connector and clicking either the Enable or Disable button. After a connector is disabled, you will see a red cross icon under the Status column. By default, the connector instance is enabled as soon as it is configured.

Note:

Only enabled connectors are available for ticketing operations.

Providing General Settings

The following sections explain how to provide various configuration details for the General tab of the Configure Management Connector page, shown in the image below.


Shows example input on General tab

Connection Settings

The ServiceNow Connector communicates with the Service Desk through their Web services. Mandatory fields are indicated with an asterisk ( * ).

  • WebService End Points — End points to createTicket, updateTicket, and getTicketwebservices exposed by ServiceNow. Each of these have a variable called ‘subdomain’ that needs to be updated with your ServiceNow subdomain.
  • Username— The username to the account you are using to connect to ServiceNow. This is the account tickets will be created under in ServiceNow.
  • Password— The password to the account you are using to connect to ServiceNow.
  • Incident Number— An existing Ticket ID to test the connection to the ServiceNow system. The ticket does not need to be open.

Web Console Settings

Web Console settings are required if you want the connector to provide links to ServiceNow tickets created by Enterprise Manager in the context of an incident.

To enable this functionality, provide the following Web console settings.

  • Enable web console — Check this box to enable launching of the ServiceNow incident page within context from Enterprise Manager.

  • ServiceNow Subdomain — The subdomain of your ServiceNow account.

Grace Period

You can enable and disable the grace period and configure its value. By default, the grace period is disabled. See Grace Period for details. This setting applies to all incidents the ServiceNow Connector processes. The grace period interval accepts the number of hours as any integer value. For example, 1 or 2.

Retry

You can enable and disable the Retry option and configure its interval value. By default, the Retry is disabled. See Retry for details. This setting applies to all incidents in the ServiceNow Connector processes. The retry period interval accepts the number of hours as any integer value. For example, - 1 or 2.

Working with Ticket Templates

When a connector instance is created in Enterprise Manager, all associated templates are available for ticket create/update operations. There are three default ServiceNow templates:

  • serviceNowIncidentCreateAndUpdate.xsl
  • serviceNowCreateUpdateAndClose.xsl
  • serviceNowCreateUpdateAndResolve.xsl

Tip:

See Template Process for detailed information about these templates.

The following sections provide information about adding, viewing, removing, and replacing ticket templates.

Adding Ticket Templates

You need to add ticket templates before they are recognized in Enterprise Manager. The connector provides out-of-box templates that are automatically registered when the connector instance is created. If you want to edit these, you can do so directly in Enterprise Manager. However, if you need to use a new template (other than one out-of-box), you need to register the new template using the emctl command. You can then edit the template in Enterprise Manager. See Editing Templates for more information.

To add and register a template:

  1. Ensure that you have execute privilege on emctl and the ability to read the ticket template.

  2. For each template, run the following emctl register_template connector command:

    $ORACLE_HOME/bin/emctl register_template connector
    [-t <template.xml>]
    [-repos_pwd <repos password>]
    [-cname <connectorName>]
    [-iname <internalName>]
    [-tname <templateName>]
    [-ttype <templateType>]
    [-d <description>]
    

    Where:

    -t           Template(full path)
    -repos_pwd   Enterprise Manager Root (SYSMAN) Password
    -cname       Connector Name
    -iname       Template Internal Name
    -tname       Template Name Displayed
    -ttype       Template Type
                 <templateType> 1 - inbound transformation
                 <templateType> 2 - outbound transformation
                 <templateType> 3 - XML outbound transformation
    -d           Description

Example 2-1 Template Registration

The following command adds a new outbound template (newTemplate.xsl) for a connector instance with the name ServiceNow Connector Instance:
emctl register_template connector
-t <template.xml>
-repos_pwd <repos password>
-cname "ServiceNow Connector Instance"
-iname "newTemplate"
-tname "newTemplateOutbound"
-ttype 2
-d "Demo template"

Viewing Template Code

To view template code, do the following:

  1. Select the connector instance and go to the Configure Management Connector page.

  2. Select the Template tab, as shown in the image below.


    Tenplate Tab

  3. Click a template name or click View to view the XSLT code for the template.

The ticket templates are in XSLT format. A basic knowledge of XSLT is required to understand the code.

Removing a Template

To remove a template, do the following:

  1. Select the connector instance and go to the Configure Management Connector page.

  2. Select the Template tab.

  3. Select the template and click Delete.

  4. Click Yes to confirm the delete operation.

Note:

If the template you delete has an incident rule associated with it, ticketing will not function for this particular incident rule after the deletion.

Editing Templates

To edit an existing ticket template, do the following:

  1. Select the connector instance and go to the Configure Management Connector page.

  2. Select the Template tab.

  3. Select the template and click Edit.

  4. Edit the Description and Template Contents fields as needed, then click Save.

The ticket template is automatically registered. Saving the registered template updates it in the repository.

Restoring Templates

After you edit or customize a template, you can restore it to its previous default contents if needed by performing the following steps.

Note:

You can restore out-of-box templates that you have may edited or customized to their default values.

  1. Select the connector instance and go to the Configure Management Connector page.

  2. Select the Template tab.

  3. Select the template and click Restore.

  4. Click Yes in the confirmation page that appears in order to restore.

Deleting the Connector

You can delete a connector from the Management Connector page by selecting the connector and clicking the Delete button. After a connector is deleted, all associated incident rules are no longer configured for ticketing operations.

Additionally, if the connector deleted is the only connector instance of that connector type, the corresponding connector type is also deleted.

Note:

The above rule is not applicable to the out-of-box connector type.