ServiceNow — Configurations for Plugin
ServiceNow plugin attributes for the external_configuration table.
Supported Configurations#
Add configurations to the Percona database (add the configurations in the external_configuration table).
| Attribute | Description |
|---|---|
| itsm.name | Value of the attribute: ServiceNow (case sensitive). |
| itsm.server | URL of the ticketing application. |
| itsm.requiredfields | Mention the output of the below key: service/a1eventhandler/itsm_requiredfields |
| itsm.proxyhost | If you need to connect to any plugin via a proxy server, provide the IP address, Port number, Username, and Password for the respective plugin. |
| itsm.proxyport | |
| itsm.proxyusername | |
| itsm.proxypassword | |
| itsm.username | Username for the ticketing application. |
| itsm.password | Password for the ticketing application. The value should be in encrypted format only. Do not provide plain text. You can use the HEAL encryption tool to encrypt the password. Refer to the document: Encryption Tool.pdf |
| itsm.oauth | If you use OAuth |
| itsm.clientid | Client ID for OAuth protocol. |
| itsm.clientsecret | Client secret for OAuth protocol. |
| itsm.webservicename | Specify the name of the web service you created in the ServiceNow portal. |
| itsm.raisetickets | Based on the value of this attribute, UTP decides whether to raise a ticket or send an event to the ITSM plugin. The default value for this attribute is true. If you set this to 0, then UTP does not raise tickets for HEAL Signals; UTP sends all HEAL Signals as they are to the plugins. In case the value is 1, UTP raises tickets in the ITSM plugin. |
| itsm.ignorerepeatsignal | The default value for this attribute is 0. If you set this to 0, UTP sends all HEAL Signals to the plugins without ignoring repeat Signals. In case the value is 1, UTP ignores repeated Signals. |
| itsm.priority | This is an integer UTP used for the ITSM plugins when configuring multiple plugins. This can have values ranging from 1 to 4. If there’s a single plugin configured, specify the value as 1. |
| itsm.midserver | The MID server URL for raising events. UTP uses this attribute only when you set the value for itsm.raisetickets as false. |
| itsm.web.service.api.endpoint | Provide the endpoint as either “api/now/table/em_event” or “/api/global/em/jsonv2”. |
| itsm.web.service.template.format | The default value for this attribute is true. |
Database Queries for Configuring a Plugin#
Execute the following queries by providing the values for these attributes in the Percona database:
Generating Ticket in ServiceNow
-
Specify the name of the plugin.
UPDATE `appsone`.`external_configurations` SET `value` = 'ServiceNow', `source` = 'ServiceNow' WHERE (`id` = '1'); -
Specify the ServiceNow server URL,
UPDATE `appsone`.`external_configurations` SET `value` = '<URL of ServiceNow>', `source` = 'ServiceNow' WHERE (`id` = '2'); -
Specify the username of the ServiceNow,
UPDATE `appsone`.`external_configurations` SET `value` = '<Username>', `source` = 'ServiceNow' WHERE (`id` = '3'); -
Specify the password of the ServiceNow,
UPDATE `appsone`.`external_configurations` SET `value` = '<password>', `source` = 'ServiceNow' WHERE (`id` = '4'); -
Specify the authentication value of the ServiceNow:
UPDATE `appsone`.`external_configurations` SET `value` = '<auth value>', `source` = 'ServiceNow' WHERE (`id` = '5');Note: By default, the auth value is 0.
-
Specify the client ID of the ServiceNow,
UPDATE `appsone`.`external_configurations` SET `value` = '""', `source` = 'ServiceNow' WHERE (`id` = '6');Note: If ServiceNow has a client ID, provide it here; otherwise update it as "".
-
Specify the client secret ID of the ServiceNow,
UPDATE `appsone`.`external_configurations` SET `value` = '""', `source` = 'ServiceNow' WHERE (`id` = '7');Note: If ServiceNow has a client secret ID, update it here; otherwise update it as "".
-
Specify the value and ID of the ServiceNow,
UPDATE `appsone`.`external_configurations` SET `value` = 'Service Name, Request Name, Host address, KPI name, KPI attribute, Value, Unit, Operation', `source` = 'ServiceNow' WHERE (`id` = '9'); -
Specify the proxy details if they are available; otherwise, leave the field blank.
Specify the proxyhost value of ServiceNow,
UPDATE `appsone`.`external_configurations` SET `value` = '<itsm.proxyhost value>', `source` = 'ServiceNow' WHERE (`id` = '10');Specify the proxyport value of ServiceNow,
UPDATE `appsone`.`external_configurations` SET `value` = '<itsm.proxyport value>', `source` = 'ServiceNow' WHERE (`id` = '11');Specify the proxyusername value of ServiceNow,
UPDATE `appsone`.`external_configurations` SET `value` = '<itsm.proxyusername value>', `source` = 'ServiceNow' WHERE (`id` = '12');Specify the proxypassword value of ServiceNow,
UPDATE `appsone`.`external_configurations` SET `value` = '<itsm.proxypassword>', `source` = 'ServiceNow' WHERE (`id` = '13'); -
Specify the source value of ServiceNow,
At id = 16 (UTP Notification),
UPDATE `appsone`.`external_configurations` SET `source` = 'ServiceNow' WHERE (`id` = '16');At id = 17 (Latest_Events),
UPDATE `appsone`.`external_configurations` SET `source` = 'ServiceNow' WHERE (`id` = '17');At id = 18 (App_Names),
UPDATE `appsone`.`external_configurations` SET `source` = 'ServiceNow' WHERE (`id` = '18');At id = 19 (Suppression interval Value),
UPDATE `appsone`.`external_configurations` SET `source` = 'ServiceNow' WHERE (`id` = '19'); -
Specify the webservicename value of ServiceNow,
UPDATE `appsone`.`external_configurations` SET `value` = '<provide the webservicename>', `source` = 'ServiceNow' WHERE (`id` = '24'); -
Specify the source value of ServiceNow.
At id = 27 (raisetickets Value),
UPDATE `appsone`.`external_configurations` SET `value` = '1', `source` = 'ServiceNow' WHERE (`id` = '27');At id = 28 (ignorerepeatsignal Value),
UPDATE `appsone`.`external_configurations` SET `value` = '1', `source` = 'ServiceNow' WHERE (`id` = '28');At id = 32 (priority Value),
UPDATE `appsone`.`external_configurations` SET `value` = '0', `source` = 'ServiceNow' WHERE (`id` = '32');After executing all the previous queries, execute the below query to update the STATUS AS 1:
UPDATE `appsone`.`external_configurations` SET `status` = '1' WHERE `source` = 'ServiceNow';For Example:

Sending HEAL events to ServiceNow
To send the HEAL events to ServiceNow, retain the other queries of ServiceNow and update only the id 27 as below:
UPDATE `appsone`.`external_configurations` SET `value` = '0' WHERE (`id` = '27');For Example:

Sending HEAL events to MidServer
To send the HEAL events to MidServer, retain the other queries of ServiceNow and update only the id 27 and 29 as below:
UPDATE `appsone`.`external_configurations` SET `value` = '0' WHERE (`id` = '27'); UPDATE `appsone`.`external_configurations` SET `value` = '<mid server details>' WHERE (`id` = '29');For Example:

Next — Return to Setting Up ServiceNow to verify the connection details and web service configuration.