Ivanti Discovery
The Ivanti Discovery Integration imports the computers recorded in Ivanti Discovery into xAssets as asset records. It brings hardware, installed software, disks, processors, device entries and network addresses for each computer.
The integration reads the Ivanti Discovery database directly with SQL queries. There is no API call and no credential pack. A collection server runs the queries with Windows authentication, as the account of its xAssets Discovery Service.
Prerequisites
Before you start, check that you have the following:
- Ivanti Discovery with its database on SQL Server. xAssets expects the database name
Discoveryuntil you change it in Step 2. The integration reads the tablesClient,ClientType,AssetStatus,Audit,Hardware,HardwareType,Manufacturer,Processor, the software tables (SoftwarePackage,SoftwareFile,SoftwarePath,SoftwareAud,SRDFile) and theHEAT_Export_...views. Ivanti Endpoint Manager keeps its data in a different database, and this integration cannot read it. - A collection server that can connect to the Ivanti database server. The ODBC Collection Server setting (
ODBCCollectionServer) names it. The shipped value isPRIMARY. - A SQL Server login for the collection server's service account. Find the account on the Log On tab of the xAssets Discovery Service 7 service on that collection server. The login needs read access to the Ivanti database: membership of the
db_datareaderrole is enough. - Network access from the collection server to the SQL Server: TCP port 1433 for a default instance. A named instance also needs the SQL Server Browser service (UDP port 1434), or a fixed port in the server name.
- The xAssets Batch Service must be running (the integration runs as a batch job).
Setup
Step 1: Grant Read Access to the Ivanti Database
A SQL Server administrator on the Ivanti database server runs these statements. Replace the account and database names with your own.
CREATE LOGIN [DOMAIN\xassets-service] FROM WINDOWS;
USE [Discovery];
CREATE USER [DOMAIN\xassets-service] FOR LOGIN [DOMAIN\xassets-service];
ALTER ROLE db_datareader ADD MEMBER [DOMAIN\xassets-service];
If the xAssets Discovery Service 7 runs as Local System or Network Service, it connects to a remote SQL Server as the computer account. Use DOMAIN\COLLECTIONSERVERNAME$ as the login name.
Step 2: Enter the Database Location in xAssets
- Open Admin > Settings.
- Set Ivanti Discovery Integration Server Name (
IvantiServer) to the SQL Server that holds the Ivanti database, for exampleSQLSERVER01\INSTANCE. - Set Ivanti Discovery Integration Database Name (
IvantiDatabase) to the database name. - Check ODBC Collection Server (
ODBCCollectionServer). It must name a collection server that can connect to the SQL Server.
The collection server opens this connection:
server=<IvantiServer>;database=<IvantiDatabase>;integrated security=true
Step 3: Review the Other Settings
These settings are in Admin > Settings. Most are in the Integrations class. The disposal settings are in Disposal and Transfers. The serial number settings are in Discovery. The Settings tab of the integration's Setup dialog lists the ones whose codes start with Ivanti.
| Setting | Code | Shipped Value | Effect |
|---|---|---|---|
| Ivanti Discovery No of Computers per Batch | IvantiBatchSize |
200 |
Computers read in each query. Lower it if the queries time out. A blank value means 250 |
| Ivanti Discovery Batches per Import Run | IvantiBatchesPerRun |
0 |
Batches read in one run. 0 reads every computer that needs updating |
| Ivanti - set number of days of no contact before computer is considered as inactive | IvantiForceInactiveAfterDaysNoContact |
30 |
A computer with no contact for this many days is marked inactive. Inactive computers are not read |
| Ivanti Discovery Integration Collection Server | IvantiCollectionServer |
Blank | The collection server that reads the Ivanti database. Blank uses the ODBC Collection Server setting |
| Ivanti Discovery Integration - minimum hours between updates of a computer | IvantiMinHoursBetweenUpdates |
24 |
A computer updated in xAssets within this many hours is not read again |
| Ivanti Discovery Integration - only import active computers | IvantiOnlyImportActiveComputers |
1 |
Skips computers Ivanti marks as inactive |
| Ivanti Discovery Integration - only import computers with hardware data | IvantiOnlyImportCompleteComputers |
1 |
Skips computers that have no hardware data in Ivanti |
| Ivanti Discovery Integration - add duplicate serial numbers to the append list | IvantiAutoAddDuplicateSerialsToAppendList |
0 |
Set it to 1 to add serial numbers shared by several computers to the Serial Number Append List setting, so each computer becomes its own asset |
| Serial Number Append List (Discovery class) | SerialNumberAppendList |
Blank | A comma-separated list of serial numbers shared by several computers. A computer whose serial number is on the list gets the computer name added to it, for example To be filled by O.E.M./PC042. Each computer then becomes its own asset. xAssets discovery uses the same list |
| Ivanti Discovery Integration can Dispose of Assets no longer found in Ivanti Database | IvantiCanDispose |
0 |
Set it to 1 to dispose of assets as described below. Only the value 1 turns it on |
| Ivanti Discovery Integration Status to Use for Disposed Assets | IvantiDisposal |
8 |
The status ID given to assets the integration disposes of |
| Custodian Authority - Ivanti | CustodianMatch_Ivanti |
AddEdit |
Whether the integration can add and edit custodians. See Custodian Matching and Integration Authority |
With Ivanti Discovery Integration can Dispose of Assets no longer found in Ivanti Database on, the integration disposes of in-service assets in these cases:
- The computer is inactive.
- The computer is no longer in the Ivanti database.
- An asset first imported from Ivanti is no longer in its computer list.
Step 4: Run the Integration
- Click the Settings gear icon (top right) > Integrations.
- Select Ivanti Discovery Integration by clicking its row.
- Click Queue at the top of the screen. Alternatively, click the Start icon in the row to run it at once. No credentials dialog appears.
- Watch the status in the batch job area. The stages are:
Ivanti Discovery Integration is starting
Collecting List of Computers in Ivanti Discovery
N Computer Records Found in Ivanti (M First Seen)
Extracting Batch 1 of 5 with 200 Computers from Ivanti (Total 1000)
Preparing to Load N Computers extracted from Ivanti Discovery
Ivanti Discovery Integration Completed - (N Computers Loaded)
Step 5: Check the Results
- Open the Asset List and filter by Source =
IVANTI. - Open one asset and check the hardware details, the Software tab and the network addresses.
Imported Data
Each run first reads the list of computers and stores it in xAssets. A computer is read in full only when Ivanti has had contact with it since its last import. At least 24 hours must also have passed. By default, only active computers with full hardware details in Ivanti are read. The first run reads every computer, in batches.
For each computer the integration imports:
- Asset details -- computer name (or IP address when Ivanti has no name), serial number, manufacturer, model, operating system, BIOS, memory and processor
- Installed software -- installed packages, and the software files Ivanti found. They go through software recognition like discovered software
- Disks and processors
- Device Manager entries, including display adapters
- MAC addresses and IP addresses
Duplicate serial numbers are cleaned the same way as for xAssets discovery. The Clean Serial Numbers during Discovery Load Now setting (DiscoveryCleanSerialNumbers) controls this.
To import a list of named computers, use the Discover a Named List of Computers in Ivanti transformation.
Troubleshooting
Login failed for user
The collection server's service account has no login on the SQL Server, or no user in the Ivanti database. Check the account on the Log On tab of xAssets Discovery Service 7, then repeat Step 1 for that account.
Invalid object name
The database named in Ivanti Discovery Integration Database Name does not hold the Ivanti Discovery tables. Check the database name, and check that it is the Ivanti Discovery database.
Query timeout
Lower Ivanti Discovery No of Computers per Batch, for example to 100.
No Computers found to extract from Ivanti Discovery
The computers were all imported in the last 24 hours, or Ivanti has had no new contact with them. Inactive computers and computers without full hardware details are skipped too.
Scheduling
Schedule the Ivanti Discovery Integration to run daily. See Schedules.
Related Articles
- Microsoft Configuration Manager (SCCM) -- an integration that reads its source database the same way
- Custodian Matching and Integration Authority -- which integrations can add and edit custodians
- Schedules -- automating integration runs