Release : 12.x
Component : AUTOMATION ENGINE
Subcomponent: Agent SAP
Agent SAP had been started by a Service Manager that had not set the necessary environment variables (SECUDIR among others)
To fix the problem, please start the SAP Agent manually from a shell where the SECUDIR and other related SAP SNC variables are set or from a Service Manager that has these variables set.
In order to find out what are the environment variables of a process on AIX, try the command:
ps eww PID_OF_THE_PROCESS | tr ' ' '\n' | grep = | sort
For example:
root@server:/automic/uc4/agents/SAP_AGENT/bin#export SECUDIR=/tmp
root@server:/automic/uc4/agents/SAP_AGENT/bin#java -jar ucxjr3x.jar &
[1] 13107356
root@server:/automic/uc4/agents/SAP_AGENT/bin#ps eww 13107356 | tr ' ' '\n' | grep = | sort
SECULIB=/tmp
You can set the SECUDIR and its environment variables by following these steps:
1. Created SECUDIR in my users home dir. eg. /home/uc4/sec
2. Set the ENV variable of SECUDIR=/home/uc4/sec
3. Placed my libsapcrypto.so in the SECUDIR directory.
4. Used sapgenpse utility to create the SAPSNCS.pse with the root signed ca cert.
5. Initialized the .pse with user uc4 (user who starts the agent). ./sapgenpse seclogin -p SAPSNCS.pse
Return:
running seclogin with USER="uc4"
Added SSO-credentials for PSE "/home/uc4/sec/SAPSNCS.pse"
6. Enable SNC in connection object and add the library for the cryto:
/home/uc4/sec/libsapcrypto.so
7. lastly partner name in connection was provided by SAP team as their application give that output.
Check SAP notes: