ServiceNow Integration
There are several ways Avantra is able to integrate with ServiceNow IT Service Management. Synchronizations include:
- You can forward Notifications to a ServiceNow instance in order to create incidents in there.
- You can push/insert records directly to the event
[em_event]table in ServiceNow. - You can synchronize servers from the ServiceNow IT Service Management into Avantra.
- You can synchronize information discovered by Avantra into ServiceNow.
All scenarios require authorization of Avantra with ServiceNow.
Installing the Avantra integration from the ServiceNow Store
You only need the Avantra Integration if you want to create incidents in ServiceNow. It is not required in order to synchronize Servers from ServiceNow or use the outbound synchronization.
- Open your preferred browser and proceed to the ServiceNow Store.
- Search for Avantra and click Get.
- Click Continue to confirm the notice.
- You can choose to install the app on all instances or only on the selected instance. Set the flag next to **I accept...** and click Get.
- In your ServiceNow instance, choose System Applications > Applications and switch to the Downloads tab. Choose Avantra from the list and click Install. You must be a ServiceNow administrator to accomplish this task.
Authorizing Avantra with ServiceNow
We recommend using a dedicated (API-) User in your ServiceNow instance for the integration with Avantra, i.e. to create a new user with the flag Web service access only set. You must be a ServiceNow administrator to accomplish this task.
- Choose User Administration > Users and click New.
- Fill in at least a User ID, e.g.
avantra-api-user, a Password, and set the flag Web service access only, if desired. - Click Submit.
- Open the newly created user record and click Edit... on the Role tab at the bottom of the page.
- Depending on what you plan to do, add the following roles:
- To create incidents in ServiceNow, select the role
x_308038_syslink_x.imp_incident_useri.e. typex_into the Collection search box, choose the mentioned role, and click>. We also recommend adding theitilrole to make the purpose of the user clear. - To send events to ServiceNow, use the role
evt_mgmt_integration. - To synchronize servers from ServiceNow to Avantra, add the role
inventory_user. - To use the outbound synchronization add the role
itil.
- To create incidents in ServiceNow, select the role
- Click Save.
Perform the following steps in Avantra WebUI:
- Open Configuration > Integrations and choose New > ServiceNow.
- Fill in a Name and select a Customer.
- Click Create.
- Select the newly created entry and click Open.
- Fill in your ServiceNow Instance Name, and for ServiceNow User and Passwords the values you created above.
- Click Save.
Synchronization of servers
In order to synchronize server from ServiceNow to Avantra, proceed as follows:
- Open Administration > Synchronizations.
- Choose New > Inbound synchronization from the menu, choose ServiceNow for External Service, fill in a Name, and click Create.
- Open the newly created record.
- You may fill in a Description.
- If you want to run the synchronization in the background periodically, you can set the flag Activate background synchronization and fill in an appropriate value for the time period.
Do not set this flag right from the beginning. Walk through this procedure, and after the initial synchronization was successful, set this flag.
- Select the ServiceNow Authentication you created.
- In Table Name fill in the ServiceNow table that contains your server records. This will most likely be
cmdb_ci_serveror one of its sub-tables. It corresponds to the tableName shown in the ServiceNow REST API Explorer. - Fill in a Query to restrict the selection of servers from ServiceNow. You may use the ServiceNow REST API Explorer to build your query.
- Click Apply and use Test Query to verify your selection.
- For System Type select Server. This is the only available selection currently.
- Choose a Default Customer and a Default System Role assigned to newly synchronized objects. These values will be used unless you create an attribute mapping overriding the values.
- In Additional Attribute Mapping, you may define how ServiceNow attributes are mapped to the Avantra fields Customer, System Role, Description, Notes, and IP address.
- You can also select if monitoring shall start immediately after synchronization with field Start Monitoring. Most likely, you will choose No here.
- Set the flag Create New Objects if you want to create a new object in Avantra if a new object is found in ServiceNow.
- Set the flag Update Modified Objects if you want to modify an object in Avantra if the corresponding object was modified in ServiceNow.
- Set the flag Delete Objects if you want to delete an object from Avantra that is no longer selected from ServiceNow. These can be objects that are deleted in ServiceNow, or that are no longer selected due to a modified Table Name or Query. Use this carefully.
- Click Apply and then Sync to start the synchronization.
Outbound synchronization
The outbound synchronization can enhance your ServiceNow CMDB with information discovered by Avantra. In addition to our existing CMDB integration, we now also offer integration with ServiceNow Service Graph Connector starting with Avantra 20.11.6 (see both procedures below). This synchronization will allow you to automatically sync detailed SAP configuration and change data with ServiceNow CMDB.
- This outbound synchronization is based on CI of the
cmdb_ci_sap_sidclass, so make sure this class is installed in ServiceNow. - Install the Service Graph Connector for Avantra from the ServiceNow Store and click Get (you will be prompted to log in with your ServiceNow ID).
- Open the Service Graph Connector Guided Setup in ServiceNow and follow its instructions:
- Create a user in ServiceNow with the
import_adminrole. - Create Cloud Authentication in Avantra.
- Create a user in ServiceNow with the
After the Service Graph Connector is ready, you can configure the synchronization in Avantra.
- Open Administration > Synchronizations.
- Choose New > Outbound synchronization from the menu, choose
ServiceNow Service Graph for External Service, fill in Name, and click Create. - Open the newly created record.
- You may fill in the Description field.
- If you want to periodically run the synchronization in the background, you can set the flag Activate background synchronization and fill in an appropriate value for the time period.
- Select the ServiceNow Authentication you created.
- Under Systems, select which SAP systems you want to synchronize. For example, you can choose systems of only one customer for the given synchronization, and then create another synchronization for another customer and sync it with a different ServiceNow instance. For this purpose, you can either select an existing system selection using Select a Pre-Defined System Selector or create a new one by choosing Define specific 'Ad-Hoc' Custom Selection and click Create. See Defining a System Selector for more information.
- Click Sync to start the synchronization.