Configure ServiceNow Scan Target Collector

To configure the ServiceNow Scan Target Collector, you must do the following:

  • Create a connection to your ServiceNow instance.
  • Create a Smart Group with parameters configured to include the assets (host and IP address) to import to ServiceNow. After the Smart Rule is created, the data in the rule is refreshed and exported based on the Smart Rule Action expiration period, which is every hour by default.

BeyondInsight supports only ServiceNow Cloud Solutions.

Create ServiceNow Scan Target Collector

After the connector is tested and saved, each scheduled run retrieves ServiceNow data from the defined table that has an entry in one of the defined fields (valid IP address or DNS defined).

There might be a large number of records to import from ServiceNow. You can change the default value in the RemManagerSvc.ece.config file. For more information, please see Change the Batch Size Limit for Import File.

After the data is retrieved, the data is stored in the BeyondInsight database.

  1. In the BeyondInsight console, go to Configuration > General > Connectors.
  2. In the Connectors pane, click Create New Connector.
  3. Enter a name for the connector.
  1. Select ServiceNow Scan Target Collector from the Connector Type dropdown list.
  2. Click Create Connector.
  3. Select the applicable Organization from the dropdown list.
  4. Leave Active (yes) enabled. Asset data is imported from ServiceNow only when the box is checked.
  5. Enter a ServiceNow Username and Password. The credentials for the ServiceNow system must provide access to the web service and be able to create requests.
  6. Enter the ServiceNow instance URL.
  7. Enter the Source Table. The default value is cmdb_ci_computer.
  8. Enter the information from the ServiceNow table that you want to import to BeyondInsight. The default values are ip_address and fqdn.
  9. Set the scheduling options to synchronize ServiceNow with the BeyondInsight database. Time period options change depending on the Frequency.
  10. Enter the Start date and time for synchronization to begin.
  11. Click Test Connector to ensure the connection to the ServiceNow instance is working.
  12. Enable Run immediately After Save if desired.
  13. Click Create Connector.

Create a Smart Group

Once the data is in the BeyondInsight database, you can create a smart group based on the ServiceNow assets. When creating the smart group, ensure you select ServiceNow Assets in the Selection Criteria, as shown:

When the Smart Group processes, the DNS name is always used when it exists. The IP address is used to determine assets in the Smart Group when that option is enabled.

Screen capture of Smart Group ServiceNow Assets Filter

Change the Batch Size Limit for Import File

Depending on the environment, there may be a large number of records to import. You can set the importBatchLimit value in the RemManagerSvc.exe.config file, located in the BeyondInsight installation directory. The default limit set in the file is 5000. You cannot enter a value greater than 10000.

<!-- ServiceNow Imports -->
<Process name="servicenowimportshandler" assembly="" order="17" active="true" accessType="internal">
<Handlers>
<Handler name="ServiceNowImportsHandler" handlerType="1" runFrequency="3"frequencyType="m" referenceTime="1:00" namespace="" order="0" active="true" importBatchLimit="5000"></Handler>
</Handlers>
</Process>