How to enabled EEM client side JAVA SDK logging.

book

Article ID: 50061

calendar_today

Updated On:

Products

DIRECTORY EMBEDDED ENTITLEMENTS MGR CA IT Asset Manager CA Software Asset Manager (CA SAM) ASSET PORTFOLIO MGMT- SERVER CA Service Management - Service Desk Manager CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) CA Workload Automation Agent CA Process Automation Base

Issue/Introduction

Description:

This document shows the required steps to be performed to enable SDK logging for EEM 8.4 SR02 till EEM 8.4 SP4.

This document also shows the steps for Java, CPP and C# SDK logging.

Solution:

For enabling EEM SDK logging, make sure that EEM SDK is installed on the machine on which the logging is to be performed.

For Windows platform:

Here are the steps to enable EEM java SDK logging:-

  1. Copy/extract eiam.config and eiam.log4j.config in a directory of the embedding application server from the config.zip file. Assuming that the files are copyed/extracted the c:\casupport directory

  2. Set EIAMCONFIG to absolute path to eiam.config file.

    Eg: set EIAMCONFIG=location where the above two .config files are located:\\eiam.config (Two \\ are required)

    set EIAMCONFIG=c:\casupport\\eiam.config

  3. Verify if the EIAMCONFIG is set correctly by checking the same by opening a new command prompt. In the new command prompt execute - echo %EIAMCONFIG%.

  4. Edit eiam.config and put absolute path of eiam.log4j.config file.

    Eg: <LoggerConfiguration file="c:\casupport\eiam.log4j.config"/>

  5. Change log level from "error" to "trace" in eiam.log4j.config file

    Eg: <root> <priority value="trace" />

  6. Restart application which is using EEM Java SDK.

  7. Check if the eiam.javasdk.log is being generated.

  8. Once the eiam.javasdk.log is being generated, the java SDK is enabled properly.

  9. Replicate the problem and save the eiam.javasdk.log file, this file should be send across for further investigation.

For Linux and UNIX platforms

  1. Copy/extract eiam.config and eiam.log4j.config in a directory of the embedding application server from the config.zip file. Assuming that the files are extracted copied over in the /home/casupport directory.

  2. Set and Export EIAMCONFIG to absolute path to eiam.config file.

    Eg: export EIAMCONFIG=location where the above two .config files are located:/eiam.config

    # export EIAMCONFIG=/home/casupport/eiam.config

  3. Verify if the EIAMCONFIG variable is set and exported properly by running, echo $EIAMCONFIG from a terminal window

  4. Edit eiam.config and put absolute path of eiam.log4j.config file.

    Eg: <LoggerConfiguration file="/home/eiam.log4j.config"/>

  5. Change log level from "error" to "trace" in eiam.log4j.config file

    Eg: <root> <priority value="trace" />

  6. Restart application which is using EEM Java SDK.

  7. Check if the eiam.javasdk.log is being generated.

  8. Once the eiam.javasdk.log is being generated, the java SDK is enabled properly.

  9. Replicate the problem and save the eiam.javasdk.log file, this file should be send across for further investigation.

Environment

Release: ETRIA199000-8.3-Embedded Entitlements Manager
Component:

Attachments

1558535180350TEC558800.zip get_app