TeamcenterKnowledge

Application Administration > Assistant configuration

Managing user passwords using the CPS_manage_password utility

The CPS_manage_password password management utility is used for generating an encoded database user password for the Command Prediction Service database. Changing the database user password for Command Prediction Microservice database requires updating the same in the microservice to be able to connect to the database. Failure to update the password results in database connection failure. This utility encodes the given input string, which can be replaced in the pred.pwd file. The Command Prediction Microservice reads the database user password from the pred.pwd file for connecting to the Command Prediction Service database. Copy CPS_manage_password The following options are available: -h | - -help - Displays help for the utility. -encode - Encodes input string. -input= - Input string. Manage user passwords using the CPS_manage_password utility on Windows Procedure Traverse to the location \commandprediction- and execute the following command: Copy CPS_manage_password -encode -input= Copy the generated string with the above command and update the pred.pwd file to replace the existing string with newly generated string. Restart the Teamcenter Process Manager to enable the microservice to read the updated password from the file. Manage user passwords using the CPS_manage_password utility on Linux Procedure Get the container ID of the running container for the Command Prediction Service. Copy docker container ls Generate a new encoded password string by executing the utility inside the container. Copy docker exec -it /app/CPS_manage_password -encode -input= Retain the generated string for further updates in pred.pwd. Stop the running container. Copy docker stop Get the Command Prediction Service ID. Copy docker service ls Remove the Command Prediction Service. Copy docker service rm Get the secret ID for pred.pwd. Copy docker secret ls Remove the secret ID for pred.pwd. Copy docker secret rm Update the newly generated password string in pred.pwd located at /secrets. Go to the location and execute the following command to update and redeploy the service. Copy docker stack deploy -c commandprediction.yml Ensure that the new docker secret is created.

Source: https://docs.sw.siemens.com/documentation/external/PL20251212545240207/en-US/tc_help/AWAdmin/gdr3897369475591/xhi1737238539321/xid2009132.html · retrieved Fri Jul 31 2026 00:00:00 GMT+0000 (Coordinated Universal Time)