ON THIS PAGE
Configuring Automatic Monitoring of CTP Platforms (CTPView)
You can configure certain monitoring operations to be automatically performed on the CTP platforms in the network. You manage these operations in the CTPView Automatic Functions window. This window displays a summary table of the currently configured automatic settings for the connected CTP platform. Table 18 describes the information provided in the table. From this window you can add and remove automatic operations for the CTP platform, and configure the monitoring details.
Table 18: Current CTPView Automatic Settings
Field | Description |
Action | One of the following monitoring operations:
|
Minute | Minute of the hour when the operation is scheduled to take place. |
Hour | Hour of the day when the operation is scheduled to take place. |
Day | Date when the operation is scheduled to take place. |
Month | Month when the operation is scheduled to take place. |
Day of Week | Day of the week when the operation is scheduled to take place. |
Accessing the CTPView Automatic Functions Window (CTPView)
To configure automatic functions:
- In the side pane, select Server > Administration.
The Administrative Functions pane is displayed.
- Click Automatic Functions.
The CTPView Automatic Functions window is displayed.
Adding an Automatic Monitoring Operation (CTPView)
To add an automatic monitoring operation:
- In the CTPView Automatic Functions window, select an action.
- Select when you want the operation to take place.
The numbers you select represent a specific time, not an interval of time. For example, the default setting of [0,1,ANY,ANY,ANY] means that action occurs at the 0 minute (on the hour) of the first hour (1 AM) every day (any day of any month, landing on any day of the week). A setting of [30,16,8,ANY,ANY] causes the action to occur at 4:30 PM on the 8th of every month.
- Click Add New Entry; the operation
appears in the summary table.
If you decide not to add the entry, click Reset.
To have the same function performed at different times, add a new entry for that operation for each time.
Removing an Automatic Monitoring Operation (CTPView)
To remove an automatic monitoring operation:
- In the summary table in the CTPView Automatic Functions window, click the Remove checkbox for each action you want to remove.
- Click Remove Selected Lines; the operation disappears from the summary table.
Backing Up MySQL Database and Restoring in PostgreSQL (CTPView Server CLI)
Starting from CTPView 7.3R6 release, CTPView server uses PostgreSQL database and does not support MySQL database. You can backup the current MySQL database data and restore it in the PostgreSQL database while migrating from CTPView 7.3R5 or earlier release to CTPView 7.3R6 or later release.
To backup the current MySQL database data and restore it in the PostgreSQL database:
- Log in to the CTPView Server of release 7.3R5 or earlier.
- Copy the backup_mysql_db.tcsh script which is located at /data/archive/gui/GUI_7.3R6 to the /tmp directory.
- Go to the /tmp directory and
run the script.
You need to provide the password of MySQL Apache user account as an argument to run this script. If no password argument is provided, the script automatically takes the default password “CTPView-2-2”.
[juniper_sa@ctpview /tmp 40]$ sudo ./backup_mysql_db.tcsh "CTPView-1-1" >>>>>> MySQL Backup Complete. <<<<<< Backup file is present at the following path /var/www/html/acorn/backup_files/backup_mysql.sql
The created backup file is stored at /var/www/html/acorn/backup_files/backup_mysql.sql.
- Copy the created backup file to the /tmp directory of CTPView server release 7.3R6 or later.
- Log in to the CTPView server of release 7.3R6 or later and access the CTPView Configuration Menu.
- Select PostgreSQL Functions, and then select Restore Backup in PostgreSQL.
- Select Restore MySQL Backup. An error message will be displayed if the backup file is not available
in the /tmp directory.
************************************************************ CTPView version 7.3R6_RC2 190725 Server: ctpview Date: Fri Aug 9 19:25:19 2019 Release: CentOS release 5.11 (Final) Kernel: 2.6.18-419.el5 User root logged in from 10.212.174.83 as root +++++ ALL ACTIONS ARE LOGGED +++++ ************************************************************ Restore Function Menu Please choose a menu item from the following list: 0) Return to previous menu 1) Restore PostgreSQL Backup 2) Restore MySQL Backup Please input your choice [0]: 2 backup_mysql.sql is present You will now be asked for the password of the PostgreSQL Apache account: Password for user ctpview_psql: UPDATE 1 SET SET UPDATE 1 SET SET UPDATE 1 SET SET UPDATE 1 . . . Restoration successful. Hit return to continue...
After successful restoration, you can log in to the CTPView GUI and verify the database entries under the CTPView Admin Centre.
Backing Up and Restoring PostgreSQL Database (CTPView)
To backup and restore the current PostgreSQL database data:
Starting from CTPView 7.3R6 release, CTPView server uses PostgreSQL database and does not support MySQL database.
- Log in to the CTPView GUI.
- In the CTPView Automatic Functions window, select the action Backup Current PostgreSQL Database.
- Select the date and time when you want the operation to
take place.
The numbers you select represent a specific time, not an interval of time. For example, the default setting of [0,1,ANY,ANY,ANY] means that action occurs at the 0 minute (on the hour) of the first hour (1 AM) every day (any day of any month, landing on any day of the week). A setting of [30,16,8,ANY,ANY] causes the action to occur at 4:30 PM on the 8th of every month.
- Click Add New Entry; the backup
operation appears in the summary table. After the backup operation
is complete, verify that the backup file is created in /var/www/html/acorn/backup_files.
In the following example, pgsql_0 is the created backup file.
[juniper_sa@ctpview backup_files 45]$ pwd /var/www/html/acorn/backup_files [juniper_sa@ctpview backup_files 46]$ ls index.html pgsql_0
- Log in to the CTPView server and access the CTPView Configuration Menu.
- Select PostgreSQL Functions, and then select Restore Backup in PostgreSQL.
- Select Restore PostgreSQL Backup. This lists the available PostgreSQL backup files.
- Select the PostgreSQL backup file you want to restore.
************************************************************ CTPView version 7.3R6_RC2 190725 Server: ctpview Date: Fri Aug 9 19:15:42 2019 Release: CentOS release 5.11 (Final) Kernel: 2.6.18-419.el5 User root logged in from 10.212.174.83 as root +++++ ALL ACTIONS ARE LOGGED +++++ ************************************************************ Restore Function Menu Please choose a menu item from the following list: 0) Return to previous menu 1) Restore PostgreSQL Backup 2) Restore MySQL Backup Please input your choice [0]: 1 Following are the available PostgreSQL backup directories: pgsql_0 Please choose one of the backup directory from the above list to restore the PostgreSQL DB: pgsql_0 pgsql_0 is present Restoration successful Hit return to continue...
After successful restoration, you can log in to the CTPView GUI and verify the database entries under the CTPView Admin Centre.