js-ant refresh-config cabi command to encrypt password fails
search cancel

js-ant refresh-config cabi command to encrypt password fails

book

Article ID: 252806

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM) CA Unified Infrastructure Management On-Premise (Nimsoft / UIM) CA Unified Infrastructure Management SaaS (Nimsoft / UIM)

Issue/Introduction

I am following steps to encrypt the cabi password per Change the JNDI Password for Bundled CABI Server but process fails when executing the js-ant refresh-config command:

Example:

C:\Nimsoft\c\buildomatic> js-ant refresh-config

C:\Nimsoft\c\buildomatic>echo off
'"java.exe"' is not recognized as an internal or external command,
operable program or batch file.

OR

C:\Nimsoft\jre\jre8u212b04\bin>  js-ant refresh-config
"js-ant" is not recognized as an internal or external command,
operable program or batch file

 

Environment

CABI: Any version

Cause

Wrong Path variable or wrong path for execution.

Resolution

Here are the appropriate steps to follow:

1. Validate the Java JRE path instance under the Nimsoft folder

Example: C:\Nimsoft\jre\jre8u212b04\bin

2. Use a Command Prompt window and change directory to:  $NIM_ROOT\c\buildomatic

3. Run the command below to temporarily set the UIM Java JRE path

set PATH=%PATH%;C:\Nimsoft\jre\jre8u212b04\bin

4. Run the command:  js-ant refresh-config

Follow the remaining steps in Changing the JNDI Password for CABI Server

 

If you get the error about "java.exe" it means you did not follow step 3 correctly and you did not set the PATH variable to the right value.

If you get the error about "js-ant" it means you did not follow step 2 correctly and you are not running the command from within the \c\buildomatic folder.