Previous Topic: Install the CA SAM Import and Export ServiceNext Topic: Configure the CA APM Event Service for CA SAM


Configure the CA SAM Import and Export Service

The CA SAM Import and Export Service exports discovered hardware data to CA APM. This service receives ownership data exports from CA APM and updates asset information in CA SAM. This service also receives the automatic data synchronization exports (Company, Location, Cost Center, Division, and Contact) from CA APM and updates the information in CA SAM.

Follow these steps:

  1. Log in to the CA SAM server.
  2. Navigate to the following location:
    [ITAM Root Path]\ITAM\SAMImportExportService
    
  3. Open the web.config file in a text editor.
  4. Edit the import folder path by performing the following steps.
    1. Locate the following statement:
      <add key=”ImportFolderPath” value=”[import folder path]”/>
      
    2. Replace [import folder path] with the path of the external folder under the data exchange folder. The data exchange folder is located under the CA SAM install folder.

      Example:

      C:\Program Files (x86)\ca_sam\app\uploads\prod\data_exchange\external
      
  5. Edit the export folder path by performing the following steps.
    1. Locate the following statement:
      <add key=”ExportFolderPath” value=”[export folder path]”/>
      
    2. Replace [export folder path] with the path of the “in” folder under the external folder. The external folder is under the data exchange folder, which is located under the CA SAM install folder.

      Example:

      C:\Program Files (x86)\ca_sam\app\uploads\prod\data_exchange\external\in
      
  6. Save the web.config file.
  7. Navigate to the following location:
    [ITAM Root Path]\ITAM\SAMImportExportService\data_exchange
    
  8. Configure the device export by copying one of the following files to the export folder path:

    Example:

    C:\Program Files (x86)\ca_sam\app\uploads\prod\data_exchange\external\in
    
  9. Create a cron job to use the external folder by performing the following steps.
    1. Log in to CA SAM as the Administrator.
    2. Click Admin, Configuration, Cron jobs.
    3. Click the New record icon (*) in the Cron jobs toolbar.
    4. Specify the following information:
      Function Name

      Select data_exchange_external.

      Description

      Enter the following description: CA Data Coordination Service Tasks.

      Interval (minutes)

      Enter a value for the import and export time interval (for example, 5).

    5. Click Save.

      The dialog closes.

  10. Select the XML file for the cron job.
    1. Select Exchange, Data Exchange, Exchange directory.
    2. Select external in the Exchange Directory field.
    3. Select XML files in the Show field.
    4. Click Browse, then locate and select one of the following XML files:
      • CA_SAM_Device Export_SQL.xml (for a SQL Server database)
      • CA_SAM_Device Export_ORA.xml (for an Oracle database)
    5. Click Upload File.
    6. Click the Start icon for the data_exchange cron job.

      The Start cron job dialog appears.

    7. Click Start cron job.

      The dialog closes.

    The configuration of the CA SAM Import and Export Service is complete.