- Backing up a CAST AIP schema
- Backing up all CAST AIP schemas in one go
- Restoring a backed up CAST AIP schema
- Restoring all backed up CAST AIP schemas in one go
- Resetting Operator and Guest passwords
- Managing user-defined parameters in the CAST Storage Service
- Optimizing CAST AIP schemas - CSSOptimize
- Move CAST AIP schemas from one instance to another
Note the following compatibility with PostgreSQL for the tools provided in AIP Core (in otherwords, actions may fail if you try to use older releases of the tools with the latest CAST Storage Service/PostgreSQL releases):
- 8.3.55: supports CSS3, CSS4 and PostgreSQL 9.6.x - 14.x
- 8.3.27 - 8.3.54: supports CSS3, CSS4 and PostgreSQL 9.6.x - 13.x
- 8.3.26 or lower: supports only CSS3 and PostgreSQL 9.6.x
Backing up a CAST AIP schema
- When using CSSBackup, you must only use CSSRestore to restore your schemas.
- Schema backups created with CSSBackup/CSSBackupAll included in 8.3.27 (and any higher 8.3 service pack) should only be restored with CSSRestore/CSSRestoreAll included in 8.3.27 (and any higher 8.3 service pack).
CAST provides a simple command line based method for backing up any CAST AIP schema in your CAST Storage Service/PostgreSQL instance to file. This backup file can then be used to restore the CAST AIP schema to the same CAST Storage Service/PostgreSQL instance or to another CAST Storage Service/PostgreSQL instance. As such it is a fully functioning backup, i.e. you do not need to create the target CAST AIP schema when subsequently running a restore process (see below).
To backup a CAST AIP schema, locate the file CSSBackup.exe. CAST recommends running the backup process from a batch file (make sure that all commands are placed on one single line and remember to surround any paths (i.e. to the .exe, dump file or log file) with quote marks if the path contains spaces). A typical command line to backup one CAST AIP schema would be as follows:
CSSBackup.exe
-schema <schema_name>
-password <Operator_password>
-file <path_and_name_of_backup_file.cssdmp>
-log <path_and_name_of_log_file.log>
Required parameters
-schema | Name of CAST schema to backup. |
-password | CAST Storage Service/PostgreSQL instance "operator" password. |
-file | Path and name of backup dump file, using the .cssdmp extension. Backup will fail if this file already exists. |
-log | Path and name of output log file - does not need to exist already (logging functions in append mode). The resulting file is text based. In AIP Core ≥ 8.3.50, an additional text based log file is created in the same folder as specified by the -log option. This log file will be named as follows and contains the PostgreSQL tools log messages: <name-of-file-defined-by-"log"-option>.log_<schema-name>_<schema-type>_YYYMMDD8-HHMMSS.txt If you are using older AIP Core releases that do not provide the additional log file, you can increase logging verbosity by using the parameter set CASTLOGMODE=DEBUG at the start of your command line, e.g.: set CASTLOGMODE=DEBUG |
Additional optional parameters
-host | Name/IP address of machine hosting the CAST Storage Service/PostgreSQL instance (default: localhost). Only required if the CAST Storage Service/PostgreSQL instance is on a remote machine. |
-port | CAST Storage Service/PostgreSQL instance port (default: 2280 - CSS2):
|
-username | CAST Storage Service/PostgreSQL instance username (default: Operator). |
-database | Use this option if you need to connect to a CAST Storage Service/PostgreSQL instance that uses a custom database (i.e. not the default "postgres"). If the option is omitted, the default database name will be used ("postgres"). |
-logtime | Requires AIP Core ≥ 8.3.50. Use this option to toggle the use of timestamps in all log files. By default this option is active. To disable it, use -logtime- |
-verbose | Requires AIP Core ≥ 8.3.50.
Use this option to toggle verbose log messages, specifically log
messages generated by the PostgreSQL (pg_dump/pg_restore). By
default this option is disabled. To activate it, use -verbose. When enabled, verbose log messages are written to the <schema-name>_<schema-type>.log_<schema-name>_<schema-type>_YYYMMDD8-HHMMSS.txt file located in the same folder as specified by the -log option. |
-exedir | Used when you want to run CSSBackup.exe from outside the AIP Core installation folder: allows you to specify the path to the AIP Core installation folder |
-compress | (boolean: Y or N) Determines whether the resulting backup dump file is compressed or not (default: Y). Setting -compress N is not recommended as the resulting file will be significantly bigger. |
-psqlexedir | Requires AIP Core ≥ 8.3.10. Allows the definition of an alternative location (for example, outside the AIP COre installation folder) for the PostgreSQL binaries used for this tool:
For example - this path must not end with a back slash ( \ ): -psqlexedir C:\some_folder\pg_binaries Note that this option should not be needed in the majority of situations. |
-h | Displays a list of available commands. |
Result
The result of a successful backup process is the creation of the .cssdmp file specified in the parameter -file. This file can then be used in the restore process (see below).
Supported data types
Ordinarily, the CSSBackup tool will backup a standard CAST AIP schema and all its data. However, if you have customized the schema (by adding new tables or adding new columns to existing tables), you may find that the customizations are not included in the backup result. This can occur when your customizations use data types that are not supported by the CSSBackup process. CAST supports only the following datatypes:
- integer
- double precision
- numeric
- varchar
- char
- timestamp
- text
- bytea
If an unsupported data type is encountered during the backup process, the table containing the unsupported data type will be excluded from the backup. A list of excluded tables is displayed in the log file, which you should check on completion of the backup process.
Backing up all CAST AIP schemas in one go
- When using CSSBackupAll, you must only use CSSRestoreAll to restore your schemas.
- Schema backups created with CSSBackup/CSSBackupAll included in 8.3.27 (and any higher 8.3 service pack) should only be restored with CSSRestore/CSSRestoreAll included in 8.3.27 (and any higher 8.3 service pack).
In addition to the functions provided by the CSSBackup.exe tool, CAST provides a simple command line based method for backing up ALL CAST AIP schemas in your CAST Storage Service/PostgreSQL instance in one go. This backup can then be used to restore ALL the CAST AIP schemas to the same CAST Storage Service/PostgreSQL instance or to another CAST Storage Service/PostgreSQL instance. As such it is a fully functioning backup, i.e. you do not need to create the target CAST AIP schemas when subsequently running a restore process (see below). Starting AIP Core 8.3.50, this tool can also be used (via the -schemas option) to backup specific named schemas (instead of all of them).
To use the tool, locate the file CSSBackupAll.exe. CAST recommends running the backup process from a batch file (make sure that all commands are placed on one single line and remember to surround any paths (i.e. to the .exe, dump file or log file) with quote marks if the path contains spaces). A typical command line to backup all CAST schemas would be as follows:
CSSBackupAll.exe
-password <Operator_password>
-dumpdir <path_to_the_dump_folder>
-log <path_and_name_of_log_file.log>
Required parameters
-password | CAST Storage Service/PostgreSQL instance "operator" password. |
-dumpdir | Path to the folder that will store the result of the backup action. This folder must already exist. All schemas will be backed up using the .backup file extension. |
-log | Path and name of output log file - does not need to exist already (logging functions in append mode). The resulting file is text based. In AIP Core ≥ 8.3.50, additional text based log files are created in the same folder as specified by the -log option (one per schema). These log files will be named as follows and contain the PostgreSQL tools log messages: <name-of-file-defined-by-"log"-option>.log_<schema-name>_<schema-type>_YYYMMDD8-HHMMSS.txt If you are using older AIP Core releases that do not provide the additional log file, you can increase logging verbosity by using the parameter set CASTLOGMODE=DEBUG at the start of your command line, e.g.: set CASTLOGMODE=DEBUG |
Additional optional parameters
-host | Name/IP address of machine hosting the CAST Storage Service/PostgreSQL instance (default: localhost). Only required if the CAST Storage Service/PostgreSQL instance is on a remote machine. |
-port | CAST Storage Service/PostgreSQL instance port (default: 2280 - CSS2):
|
-username | CAST Storage Service/PostgreSQL instance username (default: Operator). |
-database | Use this option if you need to connect to a CAST Storage Service/PostgreSQL instance that uses a custom database (i.e. not the default "postgres"). If the option is omitted, the default database name will be used ("postgres"). |
-logtime | Requires AIP Core ≥ 8.3.50. Use this option to toggle the use of timestamps in all log files. By default this option is active. To disable it, use -logtime- |
-verbose | Requires AIP Core ≥ 8.3.50.
Use this option to toggle verbose log messages, specifically log
messages generated by the PostgreSQL (pg_dump/pg_restore). By
default this option is disabled. To activate it, use -verbose. When enabled, verbose log messages are written to the <schema-name>_<schema-type>.log_<schema-name>_<schema-type>_YYYMMDD8-HHMMSS.txt file located in the same folder as specified by the -log option. |
-exedir | Used when you want to run CSSBackupAll.exe from outside the AIP Core installation folder: allows you to specify the path to the AIP Core installation folder |
-compress | (boolean: Y or N) Determines whether the resulting backup dump files are compressed or not (default: Y). Setting -compress N is not recommended as the resulting file will be significantly bigger. |
-psqlexedir | Requires AIP Core ≥ 8.3.10. Allows the definition of an alternative location (for example, outside the AIP Core installation folder) for the PostgreSQL binaries used for this tool:
For example - this path must not end with a back slash ( \ ): -psqlexedir C:\some_folder\pg_binaries Note that this option should not be needed in the majority of situations. |
-parallel | Requires AIP Core ≥ 8.3.50. Use this option to define multiple CPU threads to increase job performance. By default this option is not active therefore one single thread is used. Using the option -parallel on its own will use three threads. To use additional threads, define the number you require, for example -parallel 5 to use five threads. Note
that the tool does not impose any limits on thread numbers, however I
high thread number could use up all resources while the job is being
actioned. |
-schemas | Requires AIP Core ≥ 8.3.50. Use this option to define the schemas you wish to backup, rather than backing up ALL schemas on the instance. Schemas to backup must be provided in a comma separated list, for example: -schemas general_measure,app1_local,app1_central,app2_local,app22_mngt,app3_central |
-h | Displays a list of available commands. |
Result
The result of a successful backup process is the creation of the multiple .backup files in the folder specified in the -dumpdir parameter. The contents of this folder can then be used in the "restore all" process (see below).
Restoring a backed up CAST AIP schema
The CSSRestore release number (i.e. the AIP Core release) must be the same or higher than the CSSBackup release (i.e. the AIP Core release) used to backup the schemas.
CAST provides a simple command line based method for restoring any CAST AIP schema to your CAST Storage Service that has been backed up using the CSSBackup.exe tool documented above.
To restore a CAST schema, locate the file CSSRestore.exe. CAST recommends running the restore process from a batch file (make sure that all commands are placed on one single line and remember to surround any paths (i.e. to the .exe, dump file or log file) with quote marks if the path contains spaces). A typical command line to restore one CAST AIP schema would be as follows:
CSSRestore.exe
-schema <schema_name>
-password <Operator_password>
-file <path_and_name_of_backup_file.cssdmp>
-log <path_and_name_of_log_file.log>
Required parameters
-schema | Name of CAST AIP schema to restore. The schema is created if it does not already exist. If the schema exists already, the restore will fail. |
-password | CAST Storage Service/PostgreSQL instance "operator" password. |
-file | Path and name of backup dump file, using the .cssdmp extension. |
-log | Path and name of output log file - does not need to exist already (logging functions in append mode). The resulting file is text based. In AIP Core ≥ 8.3.50, an additional text based log file is created in the same folder as specified by the -log option. This log file will be named as follows and contains the PostgreSQL tools log messages: <name-of-file-defined-by-"log"-option>.log_<schema-name>_<schema-type>_YYYMMDD8-HHMMSS.txt If you are using older AIP Core releases that do not provide the additional log file, you can increase logging verbosity by using the parameter set CASTLOGMODE=DEBUG at the start of your command line, e.g.: set CASTLOGMODE=DEBUG |
Additional optional parameters
-host | Name/IP address of machine hosting the CAST Storage Service/PostgreSQL instance (default: localhost). Only required if the CAST Storage Service/PostgreSQL instance is on a remote machine. |
-port | CAST Storage Service/PostgreSQL instance port (default: 2280 - CSS2):
|
-username | CAST Storage Service/PostgreSQL instance username (default: Operator). |
-database | Use this option if you need to connect to a CAST Storage Service/PostgreSQL instance that uses a custom database (i.e. not the default "postgres") - default: postgres. |
-logtime | Requires AIP Core ≥ 8.3.50. Use this option to toggle the use of timestamps in all log files. By default this option is active. To disable it, use -logtime- |
-verbose | Requires AIP Core ≥ 8.3.50.
Use this option to toggle verbose log messages, specifically log
messages generated by the PostgreSQL (pg_dump/pg_restore). By
default this option is disabled. To activate it, use -verbose. When enabled, verbose log messages are written to the <schema-name>_<schema-type>.log_<schema-name>_<schema-type>_YYYMMDD8-HHMMSS.txt file located in the same folder as specified by the -log option. |
-exedir | Used when you want to run CSSRestore.exe from outside the AIP Core installation folder: allows you to specify the path to the AIP Core installation folder |
-psqlexedir | Requires AIP Core ≥ 8.3.10. Allows the definition of an alternative location (for example, outside the AIP Core installation folder) for the PostgreSQL binaries used for this tool:
For example - this path must not end with a back slash ( \ ): -psqlexedir C:\some_folder\pg_binaries Note that this option should not be needed in the majority of situations. |
-h | Displays a list of available commands. |
Result
The result of a successful restore process is a fully functioning CAST AIP schema that can be used immediately.
It is often useful to optimize the CAST AIP schema you've just restored. See Optimizing CAST schemas.
Restoring all backed up CAST AIP schemas in one go
The CSSRestoreAll release (i.e. the AIP Core release) must be the same or higher than the CSSBackupAll release (i.e. the AIP Core release) used to backup the schemas.
In addition to the functions provided by the CSSRestore.exe tool, CAST provides a simple command line based method for restoring ALL CAST AIP schemas to your CAST Storage Service/PostgreSQL instance that have been backed up using the CSSBackupAll.exe tool documented above.
To restore All CAST AIP schemas, locate the file CSSRestoreAll.exe. CAST recommends running the restore process from a batch file (make sure that all commands are placed on one single line and remember to surround any paths (i.e. to the .exe, dump file or log file) with quote marks if the path contains spaces). A typical command line to restore all CAST AIP schemas would be as follows:
CSSRestoreAll.exe
-password <Operator_password>
-dumpdir <path_to_the_dump_folder>
-log <path_and_name_of_log_file.log>
Required parameters
-password | CAST Storage Service/PostgreSQL instance "operator" password. |
-dumpdir | Path to the folder containing the result of the "CSSBackupAll" action, i.e. the backed up files. |
-log | Path and name of output log file - does not need to exist already (logging functions in append mode). The resulting file is text based. In AIP Core ≥ 8.3.50, additional text based log files are created in the same folder as specified by the -log option (one per schema). These log files will be named as follows and contain the PostgreSQL tools log messages: <name-of-file-defined-by-"log"-option>.log_<schema-name>_<schema-type>_YYYMMDD8-HHMMSS.txt If you are using older AIP Core releases that do not provide the additional log file, you can increase logging verbosity by using the parameter set CASTLOGMODE=DEBUG at the start of your command line, e.g.: set CASTLOGMODE=DEBUG |
Additional optional parameters
-host | Name/IP address of machine hosting the CAST Storage Service/PostgreSQL instance (default: localhost). Only required if the CAST Storage Service/PostgreSQL instance is on a remote machine. |
-port | CAST Storage Service/PostgreSQL instance port (default: 2280 - CSS2):
|
-username | CAST Storage Service/PostgreSQL instance username (default: Operator). |
-database | Use this option if you need to connect to a CAST Storage Service/PostgreSQL instance that uses a custom database (i.e. not the default "postgres"). If the option is omitted, the default database name will be used ("postgres"). |
-logtime | Requires AIP Core ≥ 8.3.50. Use this option to toggle the use of timestamps in all log files. By default this option is active. To disable it, use -logtime- |
-verbose | Requires AIP Core ≥ 8.3.50.
Use this option to toggle verbose log messages, specifically log
messages generated by the PostgreSQL (pg_dump/pg_restore). By
default this option is disabled. To activate it, use -verbose. When enabled, verbose log messages are written to the <schema-name>_<schema-type>.log_<schema-name>_<schema-type>_YYYMMDD8-HHMMSS.txt file located in the same folder as specified by the -log option. |
-exedir | Used when you want to run CSSRestoreAll.exe from outside the AIP Core installation folder: allows you to specify the path to the AIP Core installation folder |
-psqlexedir | Requires AIP Core ≥ 8.3.10. Allows the definition of an alternative location (for example, outside the AIP Core installation folder) for the PostgreSQL binaries used for this tool:
For example - this path must not end with a back slash ( \ ): -psqlexedir C:\some_folder\pg_binaries Note that this option should not be needed in the majority of situations. |
-parallel | Requires AIP Core ≥ 8.3.50. Use this option to define multiple CPU threads to increase job performance. By default this option is not active therefore one single thread is used. Using the option -parallel on its own will use three threads. To use additional threads, define the number you require, for example -parallel 5 to use five threads. Note
that the tool does not impose any limits on thread numbers, however I
high thread number could use up all resources while the job is being
actioned. |
-overwrite | Requires AIP Core ≥ 8.3.50. Use this option to force existing identically named schemas on the target instance to be dropped when the restore action is run. By default this option is not active and therefore if an identically named schema already exists on the target instance then the entire restore action will fail. |
-extension | Requires AIP Core ≥ 8.3.50. Use this option if the folder defined by -dumpdir containing the backed up schemas contains files with multiple different file extensions and you only want to restore files with specific file extensions. By default this option is active with the extension "backup" meaning only files with the extension .backup will be restored. For example you can define -extension schemadump and only files with the .schemadump extension will be restored (anything else is ignored). |
-h | Displays a list of available commands. |
Result
The result of a successful "restore all" process is fully functioning CAST AIP schemas that can be used immediately.
- It is often useful to optimize the CAST schema you've just restored. See Optimizing CAST schemas.
- CSSRestoreAll will fail if the target server contains schemas with the same names as those you are trying to restore.
Resetting Operator and Guest passwords
Although it is possible to change the Operator and Guest user passwords for the CAST Storage Service/PostgreSQL instance using the CAST Management Studio (see the on-line Help for CAST Management Studio), inevitably these passwords may get forgotten, thus they cannot then be changed because the old password is always required to make the change.
If this is the case, the Operator and Guest passwords must be reset to their defaults (CastAIP and WelcomeToAIP respectively) using a specific tool (CSSPasswordReset.exe). To prevent unauthorised password resetting, CAST has implemented a system whereby a special "unlock code" will be provided by CAST Support BEFORE the passwords can be reset - this unlock code is generated using the two pieces of information returned by CSSPasswordReset.exe (namely the CAST license key and a random "Personal Unblocking Key" (PUK)). Once the unlock code is provided by CAST Support, the CAST tool (CSSPasswordReset.exe) can be run again to reset the passwords.
Step 1: retrieve license key and PUK
To retrieve the license key and PUK from your CAST Storage Service/PostgreSQL instance, locate the file CSSResetPassword.exe. CAST recommends running the process from a batch file (make sure that all commands are placed on one single line and remember to surround any paths (i.e. to the .exe) with quote marks if the path contains spaces). A typical command line to retrieve the license key and PUK would be as follows:
CSSResetPassword.exe
-host <CAST_Storage_Service/PostgreSQL instance_host_machine>
Result
When the CSSResetPassword.exe tool is run successfully, it will return the current CAST AIP licence key and the PUK. You should then transfer these two pieces of information to CAST Support, who will then generate an unlock code that you can use in Step 2 below.
Step 2: use the unlock code generated by CAST Support
To use the unlock code generated by CAST Support, locate the file CSSResetPassword.exe. CAST recommends running the process from a batch file (make sure that all commands are placed on one single line and remember to surround any paths (i.e. to the .exe) with quote marks if the path contains spaces). A typical command line to use the unlock code would be as follows:
CSSResetPassword.exe
-host <CAST_Storage_Service/PostgreSQL instance_host_machine>
-unlockcode <Unlock_code>
Result
When the CSSResetPassword.exe tool is run successfully with the unlock code, the Operator and Guest passwords will be reset to their defaults (CastAIP and WelcomeAIP respectively).
Parameters
To use the CSSResetPassword.exe tool, use the following parameters:
Required parameters
-host | Name/IP address of machine hosting the CAST Storage Service/PostgreSQL instance. |
Optional parameters
-port | CAST Storage Service/PostgreSQL instance port. Only required if you have modified the port number during the installation process. |
-unlockcode | CAST Unlock Code generated by CAST Support. |
-h | Displays a list of available commands. |
Managing user-defined parameters in the CAST Storage Service
When installing the CAST Storage Service, it is possible to choose various user-defined parameters, for example the port number or the data path (i.e. where the CAST schema data is stored). If these user-defined parameters require modification during the lifetime of the CAST Storage Service, or if the CAST Storage Service needs to be re-installed (thus resetting any user-defined parameters to their defaults), then it is possible to use a specific CAST tool that can:
- inject the modified parameters into the existing CAST Storage Service
- inject modified parameters from an old CAST Storage Service into a newly installed CAST Storage Service
Storage of user-defined parameters and update tool
CSS.config
Any user-defined parameters for the CAST Storage Service are stored in an XML file called CSS.config. This file is stored at the root of your CAST Storage Service installation location. Typically its format is as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<CastStorageSettings>
<WindowsService name="CastStorageService3" />
<DbData path="C:\Program Files\CAST\CASTStorageService3\db_data" />
<Parameters>
<Parameter name="TcpPort" value="2282" />
</Parameters>
</CastStorageSettings>
CSSConfig.exe
The CAST Storage Service update tool is called CSSConfig.exe and is located in the <CAST_storage_service_install_location>\bin folder.
Modifying user-defined parameters
If you need to modify any of the user-defined parameters during the lifetime of the CAST Storage Service:
- Modify the CSS.config file located at the root of your CAST Storage Service installation location using a simple text editor
- Stop the CAST Storage Service using the Windows Services snap-in:
- Execute the update tool (CSSConfig.exe) from the command line. To do so, CAST recommends the use of a batch file containing the following command (adapt to your own environment) - remember to surround the path to the CSS.config file with quote marks if the path contains spaces:
C:\Program Files\CAST\CASTStorageService<version>\bin\CSSConfig.exe "C:\Program Files\CAST\CASTStorageService<version>\CSS.config"
- Start the CAST Storage Service using the Windows Services snap-in.
- The modifications you made to the CSS.config file will now be taken into account
Remember that if you changed the port number, you may need to update your connection profiles in the CAST applications.
Retaining user-defined parameters
If you have already made some modifications to the user-defined parameters but now need to to re-install the CAST Storage Service, you can retain your user-defined parameters as follows:
- Make sure you backup your existing CAST schemas - see above.
- Make a backup of the CSS.config file and move the copy to a different location on disk
- Uninstall the existing CAST Storage Service using the built-in Windows uninstaller
- Re-install the CAST Storage Service using the CAST setup
- Follow the above instructions (from point 2 onwards) to inject your existing user-defined parameters into the new CAST Storage Service
Optimizing CAST AIP schemas - CSSOptimize
Over time and through continued use, the efficiency of your Application's CAST AIP schemas may well start to degrade ("gaps" in table data, inefficient indexes etc.) - this degradation can significantly impact the performance of CAST AIP, with the most visible impact seen in the performance of the CAST Dashboards. To counter this, CAST provides a tool (known as CssOptimize) that can be run to optimize the schemas stored in your CAST Storage Service/PostgreSQL instance - i.e. to clean up defects that have appeared over time.
This tool is run automatically with the default analyze action in the following situations:
- immediately on completion of a snapshot (for the Dashboard schema)
- immediately on completion of a data upload to the Measure schema
When using AIP Console, it is possible to change/disable the behavior of the automated use of the tool - see:
The optimize actions can also be run manually via the AIP Console GUI:
- Administration Center - Settings - Measurement (for the Measurement schema)
- Administration Center - Applications (for the Application schemas)
To manually optimize a CAST AIP schema, locate the file CSSOptimize.exe in the CSSAdmin folder at the root of your AIP Core installation. CAST recommends running the optimize process from a batch file (make sure that all commands are placed on one single line). A typical command line to optimize one CAST schema would be as follows:
CSSOptimize.exe
-schema <schema_to_optimize>
-password <Operator_password>
-log <path_to_log_file>
Required parameters
-schema | Name of CAST AIP schema to optimize (not case sensitive). |
-password | CAST Storage Service/PostgreSQL instance username password. |
-log | Path and name of output log file - does not need to exist already (logging functions in append mode). The resulting file is text based. |
Additional optional parameters
-host | Name/IP address of machine hosting the CAST Storage Service/PostgreSQL instance. (default: localhost). |
-port | CAST Storage Service/PostgreSQL instance port (default: 2280 - CSS2):
|
-database | Use this option if you need to connect to a CAST Storage Service/PostgreSQL instance that uses a custom database (i.e. not the default "postgres"). If the option is omitted, the default database name will be used ("postgres"). |
-username | Name of the CAST Storage Service/PostgreSQL instance user - for example, operator, or a custom user. (default: operator). Available in CAST AIP ≥ 8.3.13. |
-user | CAST Storage Service/PostgreSQL instance username (default: Operator). This option is deprecated in CAST AIP ≥ 8.3.13 and should not be used. Use -username instead. |
-operation | Choose the PostgreSQL operation to perform:
|
-h | Displays a list of available commands. |
Examples
Minimum required parameters using default Operator user and default port to perform -operation analyze on CSS2:
CSSOptimize.exe -schema LOCAL -password CastAIP -log log.txt
Minimum required parameters using default Operator user to perform -operation analyze on CSS3:
CSSOptimize.exe -schema LOCAL -port 2282 -password CastAIP -log log.txt
Minimum required parameters using default Operator user to perform -operation vacuum_analyze on CSS3:
CSSOptimize.exe -schema LOCAL -port 2282 -password CastAIP -operation vacuum_analyze -log log.txt
Minimum required parameters using custom user to perform -operation vacuum_analyze on CSS3:
CSSOptimize.exe -schema LOCAL -port 2282 -username my_custom_user -password my_custom_password -operation vacuum_analyze -log log.txt