storepasswords command
The storepasswords command prompts for passwords that are blank in a profile and stores the encrypted passwords in the file. Storing encrypted passwords might not be FIPS 140-2 compliant. You can run the command for a single task or for all tasks in the profile. The command name is not case sensitive.
storepasswords command syntax
The following syntax includes line breaks to format the command for reading. Enter the command and options on a single line, without any line breaks.
configmgr_cl storepasswords [-task task_type | -taskfile task_file_name]
-profile myprofile [-help]storepasswords command parameters
- -task task_type
- The -task task_type parameter
specifies a specific task to encrypt passwords for. You can omit
the -task task_type parameter
if you want to store passwords for all the tasks or if you specify
the -taskfile task_file_name parameter.
The task_name value is not case sensitive. The
following table lists the valid task names, the associated configuration
XML file, and a description of the Content Platform Engine settings affected by
the task.
Table 1. task_type values Option Configuration file Description omitted applicationserver.xml
configurejdbcgcd.xml
configurejdbcos.xml
configurejdbcos.n.xml
configureldap.xml
configureldap.n.xml
deployapplication.xml
Where n is an integer greater than or equal to 2
If you omit the -task task_type parameter and the -taskfile task_file_name parameter, then you are prompted to enter the passwords for each configuration XML file in the profile. Each password is encrypted before it is added to the XML file. configurejdbcgcd configurejdbcgcd.xml
Encrypts the password for the
DatabasePasswordproperty that Content Platform Engine uses to access the GCD database.configurejdbcos configurejdbcos.xml
configurejdbcos.n.xml, where n is an integer greater than or equal to 2
Encrypts the password for the
DatabasePasswordproperty that Content Platform Engine uses to access the object store database.If you have more than one configurejdbcos.n.xml file, run the command for each task file.
configureldap configureldap.xml
configureldap.n.xml, where n is an integer greater than or equal to 2
Encrypts the password for the
LDAPBindPasswordproperty that Content Platform Engine uses to connect to the directory server for authenticating Content Platform Engine users.(WebSphere® Application Server or Oracle WebLogic Server only.) If you have more than one configureldap.n.xml file, run the command for each task file.
- -taskfile task_file_name
- The -taskfile
task_file_name parameter specifies the configuration XML file to use.
If only one task file exists for the task_type, then the -taskfile task_file_name parameter is optional.
If more than one task file for the task_type exists, then you must include the -taskfile task_file_name parameter. You can omit the -task task_type parameter when you specify the -taskfile task_file_name parameter.
- -profile myprofile
- The -profile
myprofile parameter specifies the profile to use. The
myprofile value can be one of the following items:
- The name of the profile, such as ce_was_tiv_db2. The profile must be located in the ce_install_path/tools/configure/profiles directory, where ce_install_path is the location where the Content Platform Engine software is installed.
- The absolute path to the profile directory, such as "C:\Program Files\IBM\FileNet\ContentEngine\tools\configure\profiles\ce_was_tiv_db2" or /opt/IBM/FileNet/ContentEngine/tools/configure/profiles/ce_was_tiv_db2.
- The absolute path to the profile input file, such as "C:\Program Files\IBM\FileNet\ContentEngine\tools\configure\profiles\ce_was_tiv_db2\ce_was_tiv_db2.cfgp" or /opt/IBM/FileNet/ContentEngine/tools/configure/profiles/ce_was_tiv_db2/ce_was_tiv_db2.cfgp.
Remember: If the path includes a directory name with spaces, enclose the entire path in quotation marks. For example, enter "C:\Program Files\IBM\FileNet\ContentEngine\tools\configure\profiles\ce_was_tiv_db2\ce_was_tiv_db2.cfgp".
storepasswords command examples
- Encrypt and save all passwords for a profile.
- The following command encrypts and saves passwords for any blank
entries in the profile named wstdb2jdbc_one.
configmgr_cl storepasswords -profile wstdb2jdbc_one - Encrypt and save the passwords for a specific configurejdbcos task in a profile with several configurejdbcos tasks.
- The following command encrypts and saves passwords for any blank
entries in the configurejdbcos.2.xml file from
the profile named wstdb2jdbc_many.
configmgr_cl storepasswords -taskfile configurejdbcos.2.xml -profile wstdb2jdbc_many - Display the help for the storepasswords command.
- The following command displays the help for the storepasswords command:
configmgr_cl storepasswords -help