Restore and register CCS

This topic describes the step to restoring the CCS settings, registering the previous CCS Manager with the new Application Server, and restoring CCS Manager configurations to newly registered CCS Managers.
Perform the following steps:
  • Restore the backup of the ADAM Database and CCS settings on the new CCS Application Server
  • Restore the backup on the new Application Server that you have created for restoring CCS (OR) Install new CCS Managers, register new CCS Managers to the Application Server, and restore the CCS Manager configuration
Before you restore, make sure to update the
secureConfig.enc
file as shown in the following examples using the ansible-vault edit secureConfig.enc command:
ADAMServer: <ADAMHostName or IP> ADAMPort: <ADAMPort> //Default 3890 apsusername: <ApplicationServerServiceUserName> apspassword: <ApplicationServerServicePassword> EMSPassphrase: <EncryptionManagmentServicePassPhrase> APSPassphrase: <AppServerServicePassPhrase> EMSUserName: <EncryptionManagementServiceAccountUserName> EMSPassword: <EncryptionManagementServicePassword> Enckeys_PassPhrase: <EncryptionKeyPassword> //Minimum 10 char ProductionSQLServerHost: <ProductionDatabaseServerHost> ProductionSQLInstanceName: "" ProductionSQLPortNumber: 1433 ProductionUseSSL: FALSE ProductionWindowsAuth: TRUE ProductionSQLAuth: FALSE ProductionSQLUserName: "" ProductionSQLPassword: "" ProductionDatabaseName: "CSM_DB" ReportingSQLServerHost: <ReportingDatabaseServerHost> ReportingSQLInstanceName: "" ReportingSQLPortNumber: 1433 ReportingUseSSL: FALSE ReportingWindowsAuth: TRUE ReportingSQLAuth: FALSE ReportingSQLUserName: "" ReportingSQLPassword: "" ReportingDatabaseName: "CSM_Reports"
Run the following command on the Ansible host machine:
ansible-playbook CCS_restore.yml -e @secureConfig.enc -e 'ccsinstall_path="C:\\Program Files (x86)\\Symantec\\CCS\\Reporting and Analytics" ccsbackup_path="\\\\Network shared CCSBackup_Folder Path"'
If a backup was taken on CCS 12.5.1, and you want to restore it on 12.6.0, run the following command:
ansible-playbook CCS_Delta_upgrade.yml -e @secureConfig.enc -e 'ccsinstall_path="C:\\Program Files (x86)\\Symantec\\CCS\Reporting and Analytics" ccsupgrade_scripts_path="C:\\Scripts<Script_folder_location>"'
If a backup was taken on CCS 12.5.1, and you want to restore it on 12.6.1, run the following command:
ansible-playbook CCS_Delta_upgrade.yml -e @secureConfig.enc -e 'ccsinstall_path="C:\\Program Files (x86)\\Symantec\\CCS\Reporting and Analytics" ccsupgrade_scripts_path="C:\\Scripts<Scripts_12.6.1>"'
Register the previously available CCS Manager with the newly created Application Server
Note
: Ensure that you run the Ansible playbook on the newly restored Application Server.
To register the previously available CCS Manager machine with the newly created application machine, perform the following steps:
Generate a certificate for the previously available CCS Manager
Make sure to update the
secureConfig.enc
file as shown in the following example using the ansible-vault edit secureConfig.enc command:
dpscertpassword: <CCSMangerCertificatePassword> signature_algorithm: "sha1RSA" keysize: "2048" organization: <OrganizationName>
Run the following command:
ansible-playbook Generate_Cert.yml -e @secureConfig.enc -e 'ccsinstall_path="C:\\Program Files (x86)\\Symantec\\CCS\\Reporting and Analytics" ccsbackup_path="\\\\Network shared CCSBackup_Folder Path" ccsmanager_host="CCSManagerhostname"'
Install the certificate on the previously available CCS Manager
Before you install, make sure to complete the following steps:
  • Open the Ansible inventory host file, uncomment the IP of the previously available CCS Manager, and save the file.
  • Update the
    secureConfig.enc
    file on the Ansible host machine as shown in the following example using the
    ansible-vault edit secureConfig.enc
    command:
    dpscertpassword: <CCSManger-Certificate-Password>
Run the following command on Ansible host to install the certificate that you generated in the previous step, for restoring the previous CCS Manager:
ansible-playbook install_Cert.yml -e @secureConfig.enc -e 'ccsinstall_path="C:\\Program Files (x86)\\Symantec\\CCS\\Reporting and Analytics" ccsbackup_path="\\\\Network shared CCSBackup_Folder Path" ccsmanager_host="CCSManagerhostname"'
Register the CCS Manager on the Application Server using a given role
Before you register, make sure to open the Ansible inventory host file, uncomment the IP of the newly created Application Server, and save the file. Also, you can change the values of the following keys based on your requirement for the CCS manager role and datasource configurations as listed in the following example:
  • ccsmanager_role
    : Data Collection Service, Load Balancer Service, Data Evaluation Service, Reporting Service, External Data Connector Service
  • datasource
    : CSV File, Database using ODBC Connection, Directory Server (LDAP), Exchange Data Collector, VMware Data Collector
  • ccsmanager_site
    : Change the value if you want to use or create any other site other than the Default site
Make sure to update the
secureConfig.enc
file on the Ansible host machine using the
ansible-vault edit secureConfig.enc
command, and then run the following command shown as an example:
ansible-playbook RegisterCCSMgr.yml -e @secureConfig.enc -e 'ccsinstall_path="C:\\Program Files (x86)\\Symantec\\CCS\\Reporting and Analytics" ccsmanager_host="<CCSManagerhostname>" ccsmanager_site="Default Site" ccsmanager_role="Data Collection Service" ccsmanager_port=5600 datasource="CSV File" reportingsyncserver="<reportingCCSManagerhostname>"'
Install new CCS Managers, register new CCS Managers to the Application Server, and restore the CCS Manager configuration
To install one or more new CCS Managers, perform the steps under the
Generate a new certificate for the new CCS Manager
section and
Install a new CCS Manager
section available in the Install CCS components and register CCS Manager topic.
To register one or more new CCS Managers to the new Application Server, perform the steps under the
Register the new CCS Manager with the Application Server using a given role
section available in the Install CCS components and register CCS Manager topic.
To restore CCS Manager configurations from the previously available CCS Managers to one or more new CCS Managers, run the following command on the Ansible host machine:
ansible-playbook CCS_Manager_Config_Restore.yml -e @secureConfig.enc -e 'ccsinstall_path="C:\\Program Files (x86)\\Symantec\\CCS\\Reporting and Analytics" ccsbackup_path="\\\\Network_shared_CCSBackup_Folder_Path\\CCSBackup" ccsmanager_host="CCS Manager hostname from which the backup need to be restore"'