Client Automation - How to use CIC in Online Export mode for a Domain Manager without Internet connection ?
search cancel

Client Automation - How to use CIC in Online Export mode for a Domain Manager without Internet connection ?

book

Article ID: 213296

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

If Domain Manager has no internet Connection, it is possible to use a computer with internet connection to export/import "Software Content" datas (CIC) and PM Patches.
 
For this CIC in Online Export mode should be installed. How to do this ?

Environment

Client Automation - 14.0 (all service packs), 14.5

Resolution

Installation of CIC (ONLINE EXPORT mode) and Patch Manager Offline Mode

1- On computer with Internet Access, install CIC in ONLINE EXPORT mode.

 

2- First time service "CA Content Import Client" is started, it process the big baseline file and will download the latest data from contentupdate.ca.com

 

This could take some hours

In C:\Program Files (x86)\CA\SC\CIC\logs\CIC.log there are lines like :

2021-04-21 21:20:18,006 [CCMain] INFO  [com.ca.sccc.CCMain] - Extracting from C:\Program Files (x86)\CA\SC\CIC\baseline\content-20190911025202.baseline into staging directory C:\Program Files (x86)\CA\SC\CIC\staging
....
2021-04-21 21:58:08,571 [CCMain] INFO  [com.ca.sccc.CCMain] - Deleting baseline directory
2021-04-21 21:58:08,571 [CCMain] INFO  [com.ca.sccc.CCMain] - Baseline processing completed OK

In example above, it took about 38 minutes to process baseline file.

Then it connects to Content Server to download latest data published after baseline.

2021-04-21 21:58:08,993 [pool-1-thread-1] INFO  [com.ca.sccc.CCAcmeClient] - Connecting to Content Server from:  <ServerName>  Applications: DSM UPM  Application Ids: B1B13849-08D1-4DA6-91EA-2D278E5F00CC 682DCD15-5C94-4321-842D-E3944D3CA000 

 

Next it executes the "Staging Content for Online Export" function :

2021-04-21 22:04:30,994 [CCMain] INFO  [com.ca.sccc.CCMain] - Starting CIC Online Export 
2021-04-21 22:04:31,025 [CCMain] INFO  [com.ca.sccc.CCMain] - Staging Content for Online Export
...
2021-04-21 22:53:36,756 [CCMain] INFO  [com.ca.sccc.CCMain] - Generating Offline Export Staging Result file.
...
2021-04-21 22:53:36,756 [CCMain] INFO  [com.ca.sccc.CCMain] - Compressing the Offline Export Staging Files to OfflineExport-20210421232336.baseline.
2021-04-21 22:53:36,756 [CCMain] INFO  [com.ca.sccc.CCMain] - Writing Offline Baseline File info for domain 'local' (Connection 'jdbc:h2') **

 

In example above, it tooks about 49 minutes to create the "Offline Export Staging" File.

Overall process could take about 1h35 after CIC installation.

 

At the end we should have :

 

- A big file OfflineExport-<datetime>.baseline under C:\Program Files (x86)\CA\SC\CIC\OfflineBaseline

 

 

- A big file content.h2.db (more than 1.6 GB) under C:\Program Files (x86)\CA\SC\CIC\bin.

This is the database H2 for CIC Online export.

 

 

 

Next execution of CIC content download should be much more faster (only few minutes) and generates smaller OfflineExport baseline file.

Example :

 

 

3- On Patch Manager (without Internet access), open DSM Web Console and go under Patch Management - Administration

Then click on Operating Modes and choose "Patch Manager does not have access to the Internet".

Put a path for "Patch Import Location" and click Save button.

 

 

 

Export/Import of CIC OfflineExport baseline files and PM Patches

1- In CIC Online machine, start CIC Manager

 

Go in tab Patches.

Search the patch to download.

Select it and choose download in the listbox.

Then click on Go button.

 

The patch goes in status Accepted, next in status Downloading and finally in status Downloaded.

The downloaded files are stored under c:\windows\temp\<uuid>

 

In C:\Program Files (x86)\CA\SC\CIC\logs\CICManager.log lines like these are written :

2021-04-22 21:39:20,286 [AcceptedPatchTask] INFO  [com.ca.unicenter.upm.decision.AcceptedPatchTask] - Accepted Patch Processing Starts
2021-04-22 21:39:21,489 [AcceptedPatchTask] INFO  [com.ca.unicenter.upm.decision.AcceptedPatchTask] - Patch Google Chrome 90.0.4430.85 x86 {7bc12f0a-3898-4029-8646-500aa193290b} status changed from STATUS_ACCEPTED to STATUS_DOWNLOADING
2021-04-22 21:39:21,489 [AcceptedPatchTask] INFO  [com.ca.unicenter.upm.decision.AcceptedPatchTask] - Accepted Patch Processing Complete
...
2021-04-22 21:39:43,840 [Dloader-6] INFO  [com.ca.unicenter.upm.dlm.DLoader] - Dloader-6 thread going to download patch : Gchrome.vbs
2021-04-22 21:39:47,770 [Dloader-6] INFO  [com.ca.unicenter.upm.dlm.DLoader] - Patch: Gchrome.vbs {e3fe9db3-9069-48d8-b2a5-649a7d5a0e20} Beginning  download
2021-04-22 21:39:47,770 [Dloader-6] INFO  [com.ca.unicenter.upm.dlm.DLoader] - Patch: Gchrome.vbs {e3fe9db3-9069-48d8-b2a5-649a7d5a0e20} Download completed successfully
2021-04-22 21:39:47,943 [Dloader-6] INFO  [com.ca.unicenter.upm.dlm.DLExtraction] - Attempting file extraction to :C:\WINDOWS\TEMP\e3fe9db3-9069-48d8-b2a5-649a7d5a0e20
2021-04-22 21:39:47,943 [Dloader-6] INFO  [com.ca.unicenter.upm.dlm.DLoader] - Dloader-6 thread going to download patch : chrome_90.0.4430.85_x86.exe
2021-04-22 21:39:47,943 [Dloader-6] INFO  [com.ca.unicenter.upm.dlm.DLExtraction] - Attempting file extraction to :C:\WINDOWS\TEMP\e3fe9db3-9069-48d8-b2a5-649a7d5a0e20
2021-04-22 21:39:47,943 [Dloader-6] INFO  [com.ca.unicenter.upm.dlm.DLoader] - Dloader-6 thread going to download patch : chrome_90.0.4430.85_x86.exe
2021-04-22 21:39:52,294 [Dloader-6] INFO  [com.ca.unicenter.upm.dlm.DLoader] - Patch: chrome_90.0.4430.85_x86.exe {71c48eab-f556-40f9-bfe2-5ea46447941a} Beginning  download
2021-04-22 21:40:04,326 [Dloader-6] INFO  [com.ca.unicenter.upm.dlm.DLoader] - Patch: chrome_90.0.4430.85_x86.exe {71c48eab-f556-40f9-bfe2-5ea46447941a} Download completed successfully
2021-04-22 21:40:13,348 [Dloader-6] INFO  [com.ca.unicenter.upm.dlm.DLExtraction] - Attempting file extraction to :C:\WINDOWS\TEMP\71c48eab-f556-40f9-bfe2-5ea46447941a
...
2021-04-22 21:41:23,711 [DownloadedPatchTask] INFO  [com.ca.unicenter.upm.decision.DownloadedPatchTask] - Patch Downloads Processing Starts
2021-04-22 21:41:24,664 [DownloadedPatchTask] INFO  [com.ca.unicenter.upm.decision.DownloadedPatchTask] - Patch with pending Download Google Chrome 90.0.4430.85 x86 {7bc12f0a-3898-4029-8646-500aa193290b} found, begin processing
2021-04-22 21:41:24,696 [DownloadedPatchTask] INFO  [com.ca.unicenter.upm.decision.DownloadedPatchTask] - Patch Google Chrome 90.0.4430.85 x86 {7bc12f0a-3898-4029-8646-500aa193290b} / PatchFile e3fe9db3-9069-48d8-b2a5-649a7d5a0e20 download is completed
2021-04-22 21:41:24,696 [DownloadedPatchTask] INFO  [com.ca.unicenter.upm.decision.DownloadedPatchTask] - Patch Google Chrome 90.0.4430.85 x86 {7bc12f0a-3898-4029-8646-500aa193290b} / PatchFile 71c48eab-f556-40f9-bfe2-5ea46447941a download is completed
2021-04-22 21:41:24,696 [DownloadedPatchTask] INFO  [com.ca.unicenter.upm.decision.DownloadedPatchTask] - Patch Google Chrome 90.0.4430.85 x86 {7bc12f0a-3898-4029-8646-500aa193290b} status changed from STATUS_DOWNLOADING to STATUS_DOWNLOADED
2021-04-22 21:41:24,696 [DownloadedPatchTask] INFO  [com.ca.unicenter.upm.decision.DownloadedPatchTask] - Patches with pending Downloads Processing Complete

 

2- Select the patch and choose "Queue to export" in listbox. And click Go button.

The status of patch is set to "Available for Export"

 

 

 

3- Click on Export tab. The patches in status "Available for Export" appear in the list.

Select the patches which should be exported and click on Export button.

On top following message appears "Export is currently under progress.."

 

Wait some minutes and click again on Export tab. The message should be :

The Export operation completed successfully.

 

And status of patch is Exported.

 

Under export Location (ex: C:\Program Files (x86)\CA\SC\CIC\Exp) we should see :

- A file CIC_Offline_Export.xml which is a XML file describing the exported CIC baselines and patches.

- A directory Baseline containing all OfflineExport-*.baseline files

- Some directories like YYYYMMDDHHMMSS containing exported files for exported patches.

 

In CICManager.log lines like this appear :

2021-04-22 22:56:13,475 [http-nio-8080-exec-1] INFO  [com.ca.sccc.cicmanager.ExportManager] - Export Manager Initialization started
2021-04-22 22:56:13,477 [http-nio-8080-exec-1] INFO  [com.ca.sccc.cicmanager.ExportManager] - Export Manager Initialized successfully
2021-04-22 22:56:13,505 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Export Location specified in the MDB - C:\Program Files (x86)\CA\SC\CIC\Exp\
2021-04-22 22:56:13,530 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Offline Baseline Location specified in the MDB - C:\Program Files (x86)\CA\SC\CIC\OfflineBaseline
2021-04-22 22:56:13,647 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - 3 baselines detected on source location. Beginning to process baselines copy to export location.
2021-04-22 22:56:13,647 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Exporting Baseline file - 'OfflineExport-20210421232336.baseline'
2021-04-22 22:56:41,714 [Dloader-10] INFO  [com.ca.unicenter.upm.dlm.DLoader] - Zero downloads scheduled.  Sleeping for 5 minutes.
2021-04-22 22:56:42,058 [Dloader-0] INFO  [com.ca.unicenter.upm.dlm.DLoader] - Zero downloads scheduled.  Sleeping for 5 minutes.
2021-04-22 22:57:11,594 [Dloader-1] INFO  [com.ca.unicenter.upm.dlm.DLoader] - Zero downloads scheduled.  Sleeping for 5 minutes.
2021-04-22 22:57:14,426 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Baseline file - 'OfflineExport-20210421232336.baseline' export SUCCESSFUL
2021-04-22 22:57:14,426 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Exporting Baseline file - 'OfflineExport-20210422000801.baseline'
2021-04-22 22:57:14,442 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Baseline file - 'OfflineExport-20210422000801.baseline' export SUCCESSFUL
2021-04-22 22:57:14,442 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Exporting Baseline file - 'OfflineExport-20210422211603.baseline'
2021-04-22 22:57:14,459 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Baseline file - 'OfflineExport-20210422211603.baseline' export SUCCESSFUL
2021-04-22 22:57:14,459 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Baseline Export completed successfully.
2021-04-22 22:57:14,459 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Beginning to Export Patch(es). Export Location: C:\Program Files (x86)\CA\SC\CIC\Exp\Patches
2021-04-22 22:57:14,473 [ExportPatchTask] INFO  [com.ca.unicenter.upm.decision.PatchUtil] - Processing Patch Export
2021-04-22 22:57:14,504 [ExportPatchTask] INFO  [com.ca.unicenter.upm.decision.PatchUtil] - Patch Google Chrome 90.0.4430.85 x86 {7bc12f0a-3898-4029-8646-500aa193290b updated for export
2021-04-22 22:57:14,504 [ExportPatchTask] INFO  [com.ca.unicenter.upm.decision.PatchUtil] - Patch Google Chrome 90.0.4430.85 x86 {7bc12f0a-3898-4029-8646-500aa193290b status changed from Unknown to STATUS_EXPORTING
2021-04-22 22:57:14,892 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Patch -'Google Chrome 90.0.4430.85 x86' exported successfully
2021-04-22 22:57:16,092 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Patch -'Google Chrome 90.0.4430.85 x86' exported successfully
2021-04-22 22:57:16,092 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Patch(es) Export completed successfully.
2021-04-22 22:57:16,092 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Generating CIC_Offline_Export xml file as part of Export final action.
2021-04-22 22:57:16,545 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Export XML succesfully generated. Export successfully COMPLETE.
2021-04-22 22:57:16,545 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportPatchTask] - Export Patch(es) Processing Complete
2021-04-22 22:57:16,545 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportManager] - Export completed. Shutting down Export Patch Task

 

 

- Copy all files and directories under  C:\Program Files (x86)\CA\SC\CIC\Exp to the Patch Manager machine without internet access in a temp directory. (ex: c:\temp\exp)

- In DSM WebConsole go under Patch Management - Patches. 
Click on Offline Patches tab.
Put the full path for file CIC_Offline_Export.xml (ex: C:\TEMP\Exp\CIC_Offline_Export.xml). And click Accept button

 

 

 

Select the Patch to Import and click Import button.
Baseline files are copied under C:\Program Files (x86)\CA\SC\CIC\Baseline and will be processed at the next execution of job Content download

 

In C:\Program Files (x86)\CA\DSM\PatchManagement\PMImport, the patch files are copied :

 

Once patches imported, accept it in Patches tab.