---
title: Set Inventory Connection
slug: citsmart-8-en/set-inventory-connection
description: Learn how to easily register properties for CITSmart Inventory connection with this comprehensive document. Get detailed instructions on configuration requirements, accessing necessary fields, and configuring the OCS Inventory connection. Discover pre-req
docTags: 
createdAt: 2022-01-19T22:43:12.000Z
---

This functionality is intended for registering all properties about the <font color="#3b9f0f">**CITSmart** </font>**Inventory connection**, according to the IP and port where the Jboss of the&#x20;<font color="#3b9f0f">**CITSmart** </font>**Inventory** is installed.

## Before getting started

- [x] The functionality configuration requires an application server Inventory,  &#x20;functional and communicable with ITSM.

## Procedure

1. Access the functionality through the main menu `Processes > Event Management  > Connections > Inventory Connections`;
2. In **Connection Data**, complete the fields;
3. Select the type of *Inventory* connection, in the field "**Ignore machines   &#x20;already inventoried**" (in the case of inventoried machines, it is possible to   &#x20;define how many days this machine will be without new inventory, and   &#x20;therefore its status will be set to Ignored until the total of days   &#x20;parameterized) two boxes will open that refer to Period and Period format,   &#x20;select the option that best fits and save the settings;
4. If the connection type chosen is the *OCS Inventory*, the configuration   &#x20;field of the OCS Inventory will be displayed to be informed of the XML   &#x20;repository, as shown below. In addition, there are some very
   relevant **prerequisites** that should be observed:
   - After installing OCS Inventory, it does not default to any type of     &#x20;integration with another system, so in the Inventory files menu you need to     &#x20;assign GENERATE\_OCS\_FILES = ON, OCS\_FILES\_FORMAT = XML and specify the path     &#x20;where the XML files will be stored in OCS\_FILES\_PATH
   - The location specified for generating XML files is very strategic:
     - If the OCS server is the same as Inventory Server, this is the least       &#x20;risk because the folder is likely to be readable;
     - If the OCS server is **NOT** the same Inventory server, you must choose       &#x20;one of these two options:
       - the OCS Inventory must be allowed to save to the Inventory server;
       - the Inventory must have permission (share) on the OCS Inventory         &#x20;server.
5. The Inventory application captures the data through the SNMP Agent (161) port and/or the Capture Agent (port 7103 developed by CITSmart Corporation, in .Net). Initially, Inventory performs a "ping" command to verify that the machine is active. If you can perform the command, try to access the SNMP   &#x20;port of the configuration item. If access to the port is not successful,   &#x20;Inventory tries to access through the capture agent by clicking the "**Test   &#x20;Connection**" button;
6. Click on "**Save and Apply Settings**".

