search cancel

408 null null fail to get config file error from A2A script

book

Article ID: 202998

calendar_today

Updated On:

Products

CA Privileged Access Manager (PAM)

Issue/Introduction

We are calling the cspmclient binary from within a script, e.g. "$CSPM_CLIENT_HOME/cspmclient/bin/cspmclient A2Aalias false" but get the following error:

408 null null, fail to get config file: /opt/cloakware/cspmclient/config/cspm_client_config.xml

This is the wrong path, missing the "catech" subdirectory. The CSPM_CLIENT_HOME home variable is set correctly to /opt/cloakware/catech in the script, and the script is mapped correctly in PAM.

Environment

Release : 3.3

Component : PRIVILEGED ACCESS MANAGEMENT

Cause

The CSPM_CLIENT_HOME variable was set in the shell script, but not exported and therefore not passed into the cspmclient binary. If the variable is not set, the A2A client uses default /opt/cloakware on Linux/Unix.

Resolution

Make sure to not only set CSPM_CLIENT_HOME in your shell script, but also export it:

 

CSPM_CLIENT_HOME=/opt/cloakware/catech

export CSPM_CLIENT_HOME