Configuring ServiceNow for Export
IT Asset Management
(Cloud)
Now that you have a MID server installed, two further configuration points for
ServiceNow remain:
- Identifying the MID server as the one to use for the exports to IT Asset Management
- Scheduling the exports from ServiceNow.
Continue the following while still logged into ServiceNow with administrator privileges.
To configure ServiceNow for export:
- In ServiceNow, go to Flexera Integration > Integration Properties.
- In the list of Integration Properties, scroll down to the MID server name field (in the ServiceNow → FNMS section), and enter the full names of the MID servers. If you have multiple MID servers, enter their names here in a comma-separated list (no spaces).
-
Optionally, in the Export file path field, for each MID server,
enter an alternative file path location to store the XML file (instead of the default MID
server location). When using multiple MID servers, enter the paths for the MID servers as
a comma-separated list (no spaces) in the same order they appear in the MID
server name field.
Because the FlexNet Beacon reads this file using the business adapter, FlexNet Beacon needs access to this file location.Note: The MID servers must have the following attributes: Status of Up, Validated is True, and Unresolved Issues is 0.
- Scroll down (if necessary), and click Save.
-
In ServiceNow, go to Flexera Integration > Export Configuration > Scheduled Jobs.
The list of standard jobs to export data from ServiceNow is displayed, including:
- Export Assets from ServiceNow
- Export Contracts from ServiceNow.
Each of these jobs needs to be configured for your environment.
-
Add a Run as column to this page and enter the
integration user ID in the column for both jobs. To do so:
- Click the Personalized List (gear) icon in the upper left corner at the top of list of scheduled jobs.
- On the Personalize List Columns dialog, select Run as from the Available columns and move it to the Selected columns.
- On the Scheduled Script Executions page, change the Run as user (that is blank by default) to the integration user ID (see Creating a ServiceNow Integration User).
-
Click the first export task to schedule (such as Export Assets
from ServiceNow).
The Scheduled Script Execution properties are displayed.Note: The MID server collects the exported XML data in chunks, such that the XML file is not well formed until the last chunk has been received. Be sure to schedule sufficient time for the exports to complete before the scheduled import from the MID server into IT Asset Management.
-
Change the value in the Run field to
your desired schedule.
These data exports may be large, based on the size of your ServiceNow repository. A common practice would be to choose Weekly exports.Tip: ServiceNow by default limits its exports from the database to 10,000 records (for a general discussion, see https://community.servicenow.com/community/blogs/blog/2014/08/01/increasing-the-export-limit, but note that this page discusses limits for exports from the ServiceNow user interface grids, which are not relevant to the database exports to IT Asset Management). You can modify the maximum number of records exported from ServiceNow by having your ServiceNow administrator add the property
glide.db.max_view_records
and setting a new limit. For instructions on adding the property, see http://wiki.servicenow.com/index.php?title=Adding_a_Property#gsc.tab=0. -
Use the additional fields that appear to complete configuring your scheduled
job.
For example, for Weekly exports, set the Day, and Time of day, when the export should occur. An off-peak time is preferable.
-
Click Update to save your
changes.
Repeat the scheduling for the Export Contracts from ServiceNow task.
-
With both exports now scheduled, run a test of each by clicking
Execute Now on the associated Scheduled
Script Execution properties page.
(This same button can be used to run the export if you chose the Run On Demand setting for the schedule.) Use the test to assess the time taken to complete the export and finish a well-formed XML file on the MID server, as a check on your scheduling plans. The test also allows you to troubleshoot any problems.
-
Monitor overall progress in ServiceNow by going to Flexera Integration > Export History > Export Runs.
The State column on this view shows the progress of export, and the Stage column displays File Completion when the XML file is done.
-
On the MID server, check for well-formed (complete) XML files.
The file names are of the form x_fls_flexera_fnms_ExportType.xml, where the placeholder ExportType is either Asset or Contract.
IT Asset Management (Cloud)
Current