Task List
|
Task # |
Task |
Performed by |
|---|---|---|
|
1 |
Review the SQL Server that hosts the Lansweeper SQL DB |
SQL DBA |
|
2 |
Understand the CI Sync RecVer Database |
SQL DBA
|
|
3
|
Create a Source System Connection using the CI Sync Agent Config Utility with a SQL RecVer DB |
Infrastructure SME
|
|
3
|
Or, Create a Source System Connection using the CI Sync Agent Config Utility with a MongoDB RecVer DB (if supported) |
Infrastructure SME
|
|
4 |
Use the CI Sync SaaS application User Interface to check the CI Sync Agent status and set any remaining connection parameters |
CI Sync Admin |
|
5 |
Perform Updates in ServiceNow (if required) |
ServiceNow Admin |
|
6 |
(Optional) Topics to be aware of if you plan to synchronize Software Licence Keys from Lansweeper to ServiceNow |
Lansweeper Admin
|
|
7 |
Do Not Synchronize Installed Software from two different source systems |
CI Sync Admin |
Task 1: Review the SQL Server that hosts the Lansweeper SQL DB
You need to review the SQL Server Version and SQL Server Edition to ensure it is supported by (and optimal) for CI Sync. Check the following:
-
CI Sync does not support the LocalDB version of SQL (i.e. the free SQL which is sometimes used as the default during the installation of certain products (e.g. Lansweeper). If your Lansweeper is using the LocalDB version of SQL you will need to upgrade to SQL Express Edition or preferably SQL Standard Edition (see next point).
-
Syncfish highly recommend using Microsoft SQL Standard Edition (or SQL Enterprise Edition though that edition is typically overkill/not required). SQL Standard (or above) supports SQL Maintenance Plans and other housekeeping jobs.
-
Check you are using SQL Server Version 2016 or later.
-
Validate the database compatibility level of the Lansweeperdb is set to SQL Server 2016 (130) or later.
Task 2: Understand the CI Sync RecVer Database
This “task” is solely about understanding the purpose of the CI Sync RecVer database and making decisions on where to host it and how the CI Sync Agent will authenticate to it.
You may also need to make a decision on which database technology to use for the RecVer Database. The CI Sync Agent supports both MS SQL and MongoDB for the RecVer database (however there are some restirctions on which database technology you can use depending on the source system itself).
Understanding the above topics and making the relevant decisions before you create the source system connection (via the CI Sync Agent Config Utility) will make it quicker/easier to execute the remaining tasks in this guide.
Task 3 (SQL): Create a Source System Connection using the CI Sync Agent Config Utility with a SQL RecVer DB
As explained in the preceding “task” there are two options to facilitate the creation of the RecVer database and assigning permissions to it for the CI Sync (Agent). The table below elaborates the two options.
|
Option |
Description |
Details |
|
MS SQL Setup Option 1 |
Automatically using the CI Sync Agent Config Utility |
|
|
MS SQL Setup Option 2 |
Manually via a SQL Database Administrator (DBA) |
|
Expand the instructions below for either Option 1 or Option 2.
Option 1: Use the Config Utility to automatically create the RecVer database
Expand the instructions below to let the CI Sync Config Utility automatically create the CI Sync RecVer database (and set the required permissions to both the RecVer and Lansweeper SQL DBs).
Option 2: Use your SQL Database Administrator (DBA) to manually create the RecVer database in advance
Expand the instructions below if your SQL DBA will manually setup the RecVer database (and set the required permissions to both the RecVer and Lansweeper SQL DBs).
Task 3 (Mongo): Or, Create a Source System Connection using the CI Sync Agent Config Utility with a MongoDB RecVer DB (if supported)
This task is not applicable because CI Sync does not support a Mongodb RecVer DB for the source system covered by this guide.
Task 4: Finalise Settings in the CI Sync SaaS UI
-
Login to your CI Sync SaaS instance at https://YourCo.syncfish.app
-
In the CI Sync UI, navigate to Settings > Connections.
-
Find the new source system connection you just added in the list of Source Connections (the screen shot above is a sample only).
-
Find your specific Source System Connection in the list and click the Update hyperlink (on the right hand side of the screen).
-
The connection Settings Form is presented. Update as follows:
-
Enter an Alias (optional) - the alias is only used in the CI Sync SaaS UI to show a friendly name in various UI forms.
-
Set the Environment/s the new source connection can be used for.
-
In most cases a Source System Connection is used for both Test and Production sync jobs (as distinct from the Destination Connections which can only be either Test or Production).
-
The Environment value is used to filter the connections dropdown list when you are creating a sync job.
-
-
-
While you are on this page you can/should check whether there are any connection specific settings you may want to adjust either now or at some point in the future. Connection specific settings (or just Connection Settings) allow you to override the default data sync rules for your CI Sync instance.
-
Read the following details to understand more about CI Sync Connection Settings:
-
Scroll further down to the Additional Settings section on the page to see any available Connection Settings. Below is an example of the sorts of settings you might notice.
-
The settings are specific to each source connection so the screen shot is an example only.
-
Syncfish recommend you read the following documentation before overriding any of the default settings:
-
Read the CI SyncDefault Configuration Guides. The pages in that tree provide comprehensive information about the default behaviour of the CI Sync data sync rules, the options available for overriding those rules and typical reasons why you might want to do this.
-
Read Understanding the use of CI Sync Connection Settings. This page explains how the Connection Settings should be used, how to modify settings via the CI Sync UI and how to test any setting changes in non-production prior to production.
-
-
Finally, if you are ready to modify any of the Connection Settings, visit Connection Setting Guides and locate the specific Source System page/s in that tree. The individual pages in that tree provide detailed information about each setting.
-
-
After making any changes on this page, scroll to the bottom of the page, Check the consent checkbox and Click the Save connection button.
You have now completed all tasks to add your new Source Connection in the CI Sync Agent.
Please do one of the following:
-
Either add any additional source connections (using the relevant pages under Add Source Systems to On-Prem Agent)
-
Or if you haven’t do so already, then follow the instructions inS6 - Configure your ServiceNow for CI Sync.
Task 5: Perform Updates in ServiceNow (if required)
In this section your ServiceNow SME will assess various updates to ServiceNow to support this CI Sync connector:
-
Task 5a: Assess if the CMDB CI Class Models plug-in is required
-
Task 5b: Assess if additional permissions are required
-
Task 5c: (Optional though recommended) Assess your ServiceNow CI forms and update to include additional Related Lists
Guidance Note
Syncfish recommend the person setting up the source system described in this guide discusses this particular task with their ServiceNow system administrator.
A ServiceNow administrator will need to perform these steps.
Syncfish recommend following these instructions in your non-production ServiceNow environment for testing synchronization jobs.
Only once exhaustive testing in non-production is complete, repeat this process in your ServiceNow production environment.
Task 5a: Assess if the CMDB CI Class Models plug-in is required
Context
A number of record sets (asset types/resource types) available to sync using the Lansweeper On-Prem Connector rely upon CMDB CI Classes that are only available via the CMDB CI Class Models plug-in.
You therefore need to install the CMDB CI Class Models plug-in to your ServiceNow instance.
If you already have the plug-in you may want to upgrade it to the latest version (as ServiceNow occasionally updates the plug-in to include extra CI Classes/tables).
|
Source System |
Specific Record Sets that require the CMDB CI Class Models plug-in |
|
Lansweeper |
|
|
Lansweeper OT |
|
Instructions
Follow these steps to add this plug-in (and similar steps to locate it and upgrade it if required):
-
Assess the use/inclusion of this plug-in within your ServiceNow (ensure you are comfortable installing this plug-in).
-
Search for Plugins via the ServiceNow navigation menu.
-
Locate the CMDB CI Class Models plug-in.
-
Click Add -> Install and follow the instructions provided.
Task 5b: Assess if additional permissions are required
Use Case - If you are planning to use CI Sync to create Application Service Mapping relationships in ServiceNow
Context
CI Sync needs additional permissions to create/update Application Service relationships in ServiceNow.
The ServiceNow out-of-the-box role described in the instructions below provides the required permissions and therefore this role needs to be applied to your CI Sync Integration User if you intended to use CI Sync’s Application Service Mapping feature.
Please contact Syncfish if a custom role is preferred over this out-of-the-box role.
Instructions
-
Navigate to the cisync user account (e.g. “cisync.integration” or the name you used earlier in this page).
-
Select the Roles tab and click the Edit… button
-
Filter/Select the roles below and click the Save button
-
app_service_admin
-
-
Click Save. Then use the “Roles” tab to check the above role has been applied.
Task 5c: (Optional though recommended) Assess your ServiceNow CI forms and update to include additional Related Lists
Context
CI Sync populates various child tables (related lists) associated with parent CIs. The following table shows the Related Lists (per CI Class) populated by the CI Sync Lansweeper On-Prem Connector.
|
CI Class |
Related List
|
Related List Name as it appears in the ServiceNow UI when adding it to a CI Form |
|
Apple Macs |
Memory Modules |
Memory Module->Configuration Item |
|
Network Adapters |
Network Adapter->Configuration Item |
|
|
Windows PC |
Memory Modules |
Memory Module->Configuration Item |
|
Network Adapters |
Network Adapter->Configuration Item |
|
|
Physical Disks |
Storage Device-> Computer |
|
|
File Systems |
File System-> Computer |
|
|
Mapped Network Drives |
File System->Computer |
|
|
Software Installations |
Software Installed |
|
|
Patches |
Patch->Configuration Item |
|
|
Windows Services |
Windows Service->Configuration Item |
|
|
Registry Entries |
Tracked Configuration File->Related CI |
|
|
Licence Entitlements |
Licence Entitlement→Allocated to |
|
|
Android |
Software (via Airwatch) |
Software Installed |
|
iPad |
Software (via Airwatch) |
Software Installed |
|
iPhone |
Software (via Airwatch) |
Software Installed |
|
Windows Server |
Memory Modules |
Memory Module->Configuration Item |
|
Network Adapters |
Network Adapter->Configuration Item |
|
|
IP Addresses |
CI IPs |
|
|
Physical Disks |
Storage Device-> Computer |
|
|
File Systems |
File System-> Computer |
|
|
Mapped Network Drives |
File System->Computer |
|
|
Software Installations |
Software Installed |
|
|
Patches |
Patch->Configuration Item |
|
|
Windows Services |
Windows Service->Configuration Item |
|
|
Registry Entries |
Tracked Configuration File->Related CI |
|
|
Licence Entitlements |
Licence Entitlement→Allocated to |
|
|
Linux Server |
Memory Modules |
Memory Module->Configuration Item |
|
Network Adapters |
Network Adapter->Configuration Item |
|
|
IP Addresses |
CI IPs |
|
|
Physical Disks |
Storage Device-> Computer |
|
|
File Systems |
File System-> Computer |
|
|
Software Installations |
Software Installed |
|
|
VMWare ESXI Server |
Network Adapters |
Network Adapter->Configuration Item |
|
IP Addresses |
CI IPs |
|
|
Associated Datastores |
VMware vCenter Datastore->vCenter Reference |
|
|
VMs |
VMs |
|
|
VMWare vCenter |
Clusters |
VMware vCenter Cluster->vCenter Reference |
|
Datacentres |
VMware vCenter Datacenter->vCenter Reference |
|
|
Datastores |
VMware vCenter Datastore->vCenter Reference |
|
|
vCenter Network |
VMware vCenter Network->vCenter Reference |
|
|
Virtual Machine Instances |
VMware Virtual Machine Instance->vCenter Reference |
|
|
Hyper-V Server |
Hyper-V Instances |
Hyper-V Virtual Machine Instance->Server |
|
Hyper-V Networks |
Hyper-V Virtual Network->Server |
|
|
IP Switch |
Switch Ports |
Switch Port -> CMDB CI |
|
Wireless LAN Controller
|
Switch Ports |
Switch Port -> CMDB CI |
|
The following two related lists are only applicable if the CI Sync Default Rule has been override to Synchronize Software Product Models as Master Data in ServiceNow. For more details See Lansweeper On-Prem Rule: Rule 12 – Synchronization of Software Product Models as Master Data in ServiceNow for Lansweeper On-Prem) |
||
|
Software Model |
Model ID |
Software → Model ID |
|
Software Package |
Model ID |
Model ID |
|
The following two related lists are only required if the customer will be synchronizing Software Licence Keys from Lansweeper. |
||
|
Windows PC |
Licence Entitlements |
Licence Entitlement→Allocated to |
|
Windows Server |
Licence Entitlements |
Licence Entitlement→Allocated to |
Instructions
Below are the steps to modify a ServiceNow CI form to expose a new Related List.
-
Login to your ServiceNow instance with Admin permissions.
-
Navigate to any CI in the relevant CI Class (i.e. one/all of those listed in the table in the Context section above). For example, navigate to a Windows Server CI).
-
Right-click in the heading area of the form, then click Configure and then Related Lists from the sub-menus.
-
Identify the Related List you want to expose on the CI form using the table in the Context section above.
-
Find the Related List in the left hand column which lists all Available Related Lists.
-
Click the Related List and then click add (the selection arrow) to move the item to the Selected column and then click Save.
-
Repeat for each additional CI Class listed in the table in the Context section above.
Task 6: (Optional) Topics to be aware of if you plan to synchronize Software Licence Keys from Lansweeper to ServiceNow
General Overview
Lansweeper includes a feature to discover Software Licence Keys. You can read about this capability here: https://community.lansweeper.com/t5/managing-licenses/view-and-scan-software-license-keys-on-windows-computers/ta-p/64351
CI Sync includes an option to synchronize the Lansweeper discovered Software Licence Keys into ServiceNow. Customers can include Software Licence Keys as part of a Sync Job by selecting the “Licence Keys” selection on Step 2 of creating a CI Sync job (see below).
Customers may wish to use the results of this Lansweeper and CI Sync data in their ServiceNow for a number of targetted Software Asset Management (including audit or compliance) and/or Software Reclaimation initatives.
This Task (section of the guide) explains key topics to customers planning on using the above feature of Lansweeper and CI Sync. This section includes the following topics:
-
Topic 1: The ServiceNow tables used by CI Sync.
-
Topic 2: The ServiceNow permissions (role) required.
-
Topic 3: Suggested ServiceNow UI updates to show the Licence Key data.
Some of the above topics are also explained in the CI Sync Setup Steps performed when a customer does their very first setup of CI Sync.
Therefore, some of the ServiceNow configuration details provided below may already be in place by the time a customer is using this “Add Lansweeper On-Prem Connect” page.
Topic 1: The ServiceNow tables used by CI Sync
The following ServiceNow tables are used by CI Sync when “Licence Keys” are included in the scope of a CI Sync job.
|
ServiceNow Table |
Purpose of records |
|
cmdb_software_product_model |
This is “Software Model” table. The table stores a unique record for the values derived from the Product field in the Lansweeper tblSerialNumber table. Each record represents the unique software model. These records do not contain the actual Licence Keys (see alm_licence below). |
|
alm_licence |
This is the “Software License” table. The table stores a unique record for the values derived from the combined Model/Asset/Product fields found in the Lansweeper tblSerialNumber table. Each record logical represents the Product License of each Product. These records contain the actual License Key value Lansweeper retrieved from the windows computer. The records in this table do not contain a relationship to the individual windows computer (see alm_entitlements below). |
|
alm_entitlements |
This is the “Device Entitlement” table. This table stores a unique record for each Model/Asset/Product combination found in the Lansweeper tblSerialNumber table. These records also contain a link between the Software License [alm_license] record and the Windows Computer CI in the CMDB. |
Topic 2: The ServiceNow permissions (role) required by CI Sync
By default the CI Sync Integration User account will not have access to the alm_* tables mentioned above.
The following steps explain how to assign a ServiceNow out-of-the-box role to your CI Sync integration user account so it has sufficient permissions to the noted tables.
-
Navigate to the cisync user account (e.g. “cisync.integration” or the name you used during Task 3: Create a User Account (to be used by your CI Sync SaaS instance) withinS6 - Configure your ServiceNow for CI Sync).
-
Select the Roles tab and click the Edit… button
-
Filter/Select the roles below and click the Save button
-
sam
-
-
Click Save. Then use the “Roles” tab to check the above role has been applied.
Topic 3: Suggested ServiceNow UI updates to show the Licence Key data
Syncfish recommend adding the “License Entitlement->Allocated to” related list to the “Computer” [cmdb_ci_computer] and also to the “Windows Server” [cmdb_ci_win_server] Forms in ServiceNow.
Follow these steps to add for a Windows Server (and then repeat for a Windows Computer):
-
Login to your ServiceNow instance with Admin permissions.
-
Navigate to any Windows CI and open the form (e.g. navigate to a Windows Server CI form).
-
Right-click in the heading area of the form, then click Configure and then Related Lists from the sub-menus.
-
Locate the Licence Entitlement->Allocate to Related List in the Available column, then click Add button (i.e. the “>” selection arrow) to move the item to the Selected column and then click Save.
-
The Licence Entitlements Related List will now appear on each “Windows Server” [cmdb_ci_win_server] CI (as shown below).
-
Repeat the above steps using a “Computer” [cmdb_ci_computer] CI form to expose the same Related List on Windows Computer CIs.
Syncfish also recommend making the Licence Key field visible on the Licence Entitlements Related List (i.e. on the Related List added in the steps above).
Follow these steps to make the field visible on a Windows Server (and then repeat for a Windows Computer):
-
Right-mouse click on the header row of the License Entitlement related list and select Configure / List Layout
-
In the Related List fields editor
-
Highligh the Entitlement field group (indicated in green and with a [+] symbole) from the Available fields list (lefthand side)
-
Then click the “Expand selected reference field” button in the middle of the form.
-
-
The expanded fields from the Entitlement field group now appears in the Available fields list (lefthand side again).
-
Select the field License Key field from the Available field list.
-
Click the Add button (“>”) to add the field to the Selected list.
-
-
Finally,
-
Notice the Selected list now includes “Entitlement.LicenceKey”).
-
To avoid confusion, Syncfish recommend removing the Licence Key field from the Selected list (righthand side).
-
Highligh the Licence Key field
-
Click the Remove button (“<“)
-
-
Click the Save button (to save the above changes and exit the page).
-
-
The License Key (i.e. the Entitlement.Licence Key field) will now be visible in the Related List.
Guidance Note
Based on the above UI changes you can now see the Licence Product (e.g. Microsoft Windows 10 Enterprise) and the Licence Key itself in the Licence Entitlements Related List associated with each Windows Server or Windows PC in ServiceNow.
Task 7: Do Not Synchronize Installed Software from two different source systems
Customers should be aware that if you synchronize Installed Software (i.e. the installed software applications for the same IT asset) from two different source systems (e.g. from Intune and Defender, or from Lansweeper and Defender, or InTune and SCCM, etc etc) for the same device you will end up with duplicate software instance records in your CMDB.
The cause of this issue is the naming convention of Installed Software is inconsistent between different source systems, and therefore CI Sync cannot reliably correlate the Installed Software per CI within the CMDB. By way of example:
-
In InTune, “Microsoft Teams” is stored as “MSTeams” (and there is no Manufacturer attribute in InTune).
-
However, in Defender for Endpoint, “Microsoft Teams” is stored as “Teams”.
Important Recommendation from Syncfish
Syncfish do NOT recommend synchronizing Installed Software from two different source systems.
Below are some notes to action this in advice in the CI Sync Web UI:
-
When you are creating a sync job via the CI Sync UI and reach the Selections page, do not select “Software” or “Software Installs” from a given source system if you have already selected Installed Software on another source system sync job.
The screen shot below shows a sample of the Selection page for InTune as the source system for a CI Sync job. If you have selected Software Installs for InTune you should not select Software Installs for a Microsoft Defender for Endpoint sync job (as shown on the subsequent screen shot below)
The screen shot shows the Selection page for Microsoft Defender for Endpoint as the source system for a CI Sync job. You should NOT select Software Installs via Microsoft Defender for Endpoint because you have selected Software Installs via the InTune source system.
The same logic/approach applies to any other source system that offers Installed Software, such as SCCM or Lansweeper. The key message is: do NOT recommend synchronizing Installed Software from two different source systems.