Importing CI Relations

Prev Next

CI relations record how the configuration items in your CMDB depend on each other, such as which server hosts which application. Import a CSV to create or remove these relations in bulk, for CIs that already exist in the CMDB.

To learn more about the CMDB, see Configuration Management Database (CMDB) Guide.

Available for:

Customers using SysAid Spaces. If you're using SysAid Classic, see Importing CI Relations.

Before you start

The CIs in your Source and Destination columns must already exist in the CMDB, via Importing System Items or Importing CIs from a Delimited File, before you import relations between them. If you're using a custom relationship type, it must exist under CI Relation Types first.

To import a list of CIs:

  1. Go to Settings > Setup & Monitoring > CMDB > Import CI Relations.

  2. Create a CSV file that details the relations you want to apply to the CIs in your system. Alternatively, you can also export the current CI relations by clicking Export CI relations to download the CSV file.

  3. If you are creating the file from scratch, create a sheet with four columns: Source, Relationship type, Destination, and Action.

  4. In the Source column, enter the CI ID of the first CI whose relationship you want to create.

  5. In the Relationship type column, enter the ID of the relationship type you want:

    ID

    Relationship name

    Corresponding relationship

    1

    Consists

    Part of

    2

    Installed on

    Contains SW

    6

    Hosts

    Hosted on

    Relationship type IDs are specific to your account. To see the relationship types available to you and the ID of each one, go to Settings > Setup & Monitoring > CMDB > CI Relation Types.

  6. In the Destination column, enter the CI ID you are connecting the source CI to.

  7. In the Action column, enter the action you want (1= add, 0 = remove, and blank = do not change).
    See the image below for an example.
    A CSV file ready for import into SysAid
     ImportCIRelationsfilesCIRelationshipImport.png

  8. Select the CSV you've created by clicking Choose File.

  9. If your CSV has column headers (like in the picture above) select the Do not import the head line check box.

  10. Select the field delimiter. If you create the CSV in Excel, this is a comma (,) by default.

  11. Click Submit to import your CI relations.

You can verify that your CI relations were correctly imported and/or updated by checking CIs in Asset Manager > CI List.

Automatically sync SysAid with a CSV file

You can set SysAid to automatically sync its CI information with a CSV file. This means that at the intervals you define, SysAid checks the CSV file for changes. If any changes have been made, SysAid imports the file and overrides the existing CI information with the updated information in the CSV file.

Set up the sync by connecting to the CSV file via the RDS. The RDS scans the folder and uploads a copy of the CSV file to the server every 10 minutes. The server processes the updated information based on the selected schedule time.

To automatically sync your CIs with a CSV file via the RDS

  1. Check the Schedule box.

  2. In the Start Time field, select a date and time to begin syncing with the file.

  3. From the Rerun Every drop-down list, select whether the sync should occur every hour, day, or week.

  4. Select the File path option button.

  5. Click Set scheduled import.

  6. On your system, add a copy of the CSV file to the RDS folder under WEB-INF/csvCiFiles.

    Important:

    Do not attempt to permanently store the original CSV file in this location, as the RDS uploads it to the server and removes it from this location.

  7. Access the RDS and open the DiscoveryService.properties file.

  8. Find the "csv.ci.import" parameter and set its value to "true". If the parameter does not exist in the file, add it manually.

  9. Save the file.

  10. Restart the RDS service.

ImportSysAidUsersfilesScheduleSync2.jpg

Next steps