---
title: Setting Inventory Connection
slug: itsm-en/setting-inventory-connection
description: Learn how to register properties related to the CITSmart Inventory connection with this comprehensive document. Discover the step-by-step instructions for accessing the functionality, completing connection data fields, and configuring the OCS Inventory. A
docTags: 
createdAt: 2021-10-27T20:01:43.000Z
---

This functionality is intended to register 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&#x20;**&#x69;s 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 <font color="#3b9f0f">**Connection Data**</font>, complete the fields;
3. Select the type of **Inventory connection**, in the "**Ignore machines   &#x20;already inventoried**" field (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;

![](https://api.archbee.com/api/optimize/pu5VMc-2TW3GQX4ly5Xp7/v858aPo149DtA_OUCcEzA_image.png "Figure 1 - CITSmart Inventory Integration")

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&#x20;relevant **prerequisites** that should be observed:

::Image[]{src="https://api.archbee.com/api/optimize/pu5VMc-2TW3GQX4ly5Xp7/qP3fMurT8gDl5vw0ccvrn_image.png" size="64" width="360" height="131" caption="Figure 2 - CITSmart Inventory Integration - OCS Inventory" position="center" showCaption="true"}

- 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;assig&#x6E;**&#x20;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**)&#x20;port and/or the Capture Agent (port 7103 developed by <font color="#3b9f0f">**CITSmart** </font>**Corporation**,&#x20;in .Net). Initially, Inventory performs a "**ping**" command to verify that the&#x20;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**".

