Back Up NetOps Portal

Back up
NetOps Portal
before an upgrade. To avoid losing valuable data, back up and archive
NetOps Portal
regularly.
Back up
NetOps Portal
before an upgrade. To avoid losing valuable data, back up and archive
NetOps Portal
regularly.
In this article:
Back Up the
NetOps Portal
Database
Create a backup archive of the current database anytime that you plan to reinstall or upgrade the software. Create a backup archive on a weekly basis.
Follow these steps:
  1. Log in to the
    NetOps Portal
    host as the root user or as the sudo user.
  2. Estimate the size of the backup by issuing the following command:
    du –hs MySql/data
  3. Stop the
    NetOps Portal
    services by issuing the following commands in the order listed:
    • (RHEL 6.x)
      Stop the
      NetOps Portal
      Console service:
      service caperfcenter_console stop
      Stop the device manager:
      service caperfcenter_devicemanager stop
      Stop the event manager:
      service caperfcenter_eventmanager stop
      Stop the SSO service:
      service caperfcenter_sso stop
    • (RHEL 7.x, Oracle Linux (OL), and SUSE Linux Enterprise Server (SLES))
      Stop the
      NetOps Portal
      Console service:
      systemctl stop caperfcenter_console
      Stop the device manager:
      systemctl stop caperfcenter_devicemanager
      Stop the event manager:
      systemctl stop caperfcenter_eventmanager
      Stop the SSO service:
      systemctl stop caperfcenter_sso
  4. Change to a directory where you want to save the database archive by issuing the following command:
    cd /$
    backupDir
    Use any secure location with sufficient space for the backup directory.
  5. Create a MySQL dump of the database by issuing the following command:
    Leave out the optional password syntax from the following command to be prompted for the password.
    /opt/CA/MySql/bin/mysqldump --routines -u root -p
    password
    netqosportal > $backupDir/netqosportal.sql
    During the installation, the following prompt appears:
    Select a Location for the MySQL Data Directory
    . The default location is
    /opt/CA/MySql/data
    .
  6. Create a MySQL dump of Event Manager data by issuing the following commands:
    /opt/CA/MySql/bin/mysqldump -u root -p
    password
    em > $backupDir/em.sql
  7. Compress these backup files to save space by issuing the following commands:
    tar czvf netqosportal.tgz netqosportal.sql
    tar czvf em.tgz em.sql
  8. Remove the uncompressed MySQL dump files by issuing the following commands:
    rm netqosportal.sql
    rm em.sql
  9. Start the
    NetOps Portal
    services on the new system as follows:
    1. Start the SSO service by issuing the following command:
      • (RHEL 6.x)
        service caperfcenter_sso start
      • (RHEL 7.x, Oracle Linux (OL), and SUSE Linux Enterprise Server (SLES))
        systemctl start caperfcenter_sso
    2. Start the event manager by issuing the following command:
      • (RHEL 6.x)
        service caperfcenter_eventmanager start
      • (RHEL 7.x, Oracle Linux (OL), and SUSE Linux Enterprise Server (SLES))
        systemctl start caperfcenter_eventmanager
    3. Wait one minute, then start the device manager by issuing the following commands:
      • (RHEL 6.x)
        Start the event manager:
        service caperfcenter_eventmanager start
        Start the device manager:
        service caperfcenter_devicemanager start
      • (RHEL 7.x, Oracle Linux (OL), and SUSE Linux Enterprise Server (SLES))
        Start the event manager:
        systemctl start caperfcenter_eventmanager
        Start the device manager:
        systemctl start caperfcenter_devicemanager
    4. Wait one minute, then start the
      NetOps Portal
      Console service by issuing the following command:
      • (RHEL 6.x)
        service caperfcenter_console start
      • (RHEL 7.x, Oracle Linux (OL), and SUSE Linux Enterprise Server (SLES))
        systemctl start caperfcenter_console
Back Up Single Sign-On Configuration Files
If you configure single sign-on, backup the configuration settings. Use rsync or another preferred method, such as a script, to back these files up automatically.
Back up the
start.ini
file in the following directories:
  • /installation_directory/CA/PerformanceCenter/sso
  • /installation_directory/CA/PerformanceCenter/PC
Back up the following directories:
  • /installation_directory/CA/PerformanceCenter/sso/webapps/sso/configuration
  • /installation_directory/CA/PerformanceCenter/sso/etc
  • /installation_directory/CA/PerformanceCenter/sso/conf
  • /installation_directory/CA/PerformanceCenter/PC/etc
  • /installation_directory/CA/PerformanceCenter/PC/conf
If you have enabled SSL, back up the
ssl.ini
file in the following directories:
  • /installation_directory/CA/PerformanceCenter/sso/start.d
  • /installation_directory/CA/PerformanceCenter/PC/start.d
Back Up Custom Settings
Custom OpenAPI applications reside on the
NetOps Portal
host. If your deployment includes these applications, back up the
/installation_directory/CA/PerformanceCenter/PC/webapps/pc/apps
application folder.
If you use custom logos for your themes, back up the
customLogo
file in the following directories:
  • /installation_directory/CA/PerformanceCenter/PC/webapps/pc/css/CA-Blue/images
  • /installation_directory/CA/PerformanceCenter/PC/webapps/pc/css/CA-Gray/images
Back Up Reports
NetOps Portal
temporarily saves full PDF reports for download in the
/installation_directory/CA/PerformanceCenter/DM/repository
directory. Back up this directory.
Back Up Script Notification Actions
If you have script notification actions, back up the
/installation_directory/CA/PerformanceCenter/NotificationScripts
directory.