AutoSys Workload Automation

 View Only
  • 1.  safex command issued on a WCC 11.4 Linux server fails

    Posted Dec 11, 2019 08:39 AM
    Hi all,

    I am running WCC 11.4 and EEM 12.6.0.5 on two separate RHEL 7 servers.
    I want to execute safex from the WCC server to extract user records from EEM.
    However when i attempt to run safex from the WCC server command line it fails as follows:

    [autosys@wcc_host ~]$ cd $CA_WCC_INSTALL_LOCATION/safex

    [autosys@wcc_host safex]$ ./safex -?
    Please check atleast one of the following conditions are met.
    *) Set CAPKIHOME environment variable.
    *) Pass valid second parameter to etpki_lib_init function. Ex: if the second parameter is /a/b/c/[lib]cryptocme2.[dll][so ][sl], it is assumed that /a/b/c has all the required CAPKI shared libraries
    Please check atleast one of the following conditions are met.
    *) Set CAPKIHOME environment variable.
    *) Pass valid second parameter to etpki_lib_init function. Ex: if the second parameter is /a/b/c/[lib]cryptocme2.[dll][so ][sl], it is assumed that /a/b/c has all the required CAPKI shared libraries
    Please check atleast one of the following conditions are met.
    *) Set CAPKIHOME environment variable.
    *) Pass valid second parameter to etpki_lib_init function. Ex: if the second parameter is /a/b/c/[lib]cryptocme2.[dll][so ][sl], it is assumed that /a/b/c has all the required CAPKI shared libraries
    ERROR: [0xf67a5740] ispUtil::_initialize : unable to initialise etpki in any mode giving up
    ERROR: [0xf67a5740] ispUtil::itech_lib_init : unable to initialise itech SDK
    SafeConfiguratorImpl::init_itech_lib: unable to initialize itech SDK with default configuration
    ConfiguratorImpl::init_internal: unable to initialize itech sdk with XML []
    ConfiguratorImpl::init_internal: unable to initialize itech sdk with file [(null)]
    terminate called after throwing an instance of 'Safe_0_0_0::ErrorCodeXML__type::ErrorCodeXML__enum'
    Aborted


    My environmental variables are as follows:


    autosys@wcc_host safex]$ env
    XDG_SESSION_ID=3248
    HOSTNAME=wcc_host.idm.pre.gpn.gov.uk
    SHELL=/bin/bash
    TERM=xterm
    HISTSIZE=1000
    QTDIR=/usr/lib64/qt-3.3
    QTINC=/usr/lib64/qt-3.3/include
    QT_GRAPHICSSYSTEM_CHECKED=1
    USER=autosys
    LD_LIBRARY_PATH=/u01/app/oracle/product/lib:usr/lib:/u01/software/instantclient_12_2
    EEMSAFLOC=/tmp
    TNS_ADMIN=/u01/app/oracle/product/network/admin
    MAIL=/var/spool/mail/autosys
    PATH=/u01/app/oracle/product:/u01/app/oracle/product/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin:/home/autosys/.local/bin:/home/autosys/bin:/opt/CA/SharedComponents/bin/:/opt/CA/WorkloadAutomationAE/bpdts/script:
    CA_WCC_INSTALL_LOCATION=/opt/CA/WorkloadCC
    PWD=/opt/CA/WorkloadCC/safex
    LANG=en_GB.UTF-8
    HISTCONTROL=ignoredups
    SHLVL=1
    HOME=/home/autosys
    LOGNAME=autosys
    QTLIB=/usr/lib64/qt-3.3/lib
    LESSOPEN=||/usr/bin/lesspipe.sh %s
    ORACLE_HOME=/u01/app/oracle/product
    CA_WAAE_SDK_LIB=/opt/CA/WorkloadAutomationAE/autosys/lib
    _=/bin/env
    OLDPWD=/home/autosys
    [autosys@wcc_host safex]$

    Can someone advise me suggest what is missing in terms of the env variable/s that I need to set?

    Note: On the WCC server, I have installed only the WCC product and no other CA software component.

    Thanks,
    James.



  • 2.  RE: safex command issued on a WCC 11.4 Linux server fails
    Best Answer

    Posted Dec 12, 2019 08:24 AM

    . /etc/profile.CA

    . /etc/profile

    Then set CAPKIHOME if needed - 

    export CAPKIHOME=/opt/CA/SharedComponents/CAPKI;

    OR...run safex from the EEM server.

    I use safex for import only - if you want to export from EEM - from the application you log into - WCC0004, WorkloadAutomationAE, Global, etc - go to - 

    Config Tab, EEM Server, Export Application - save the xml file locally (might be a zipped file). 

    Move it where you need it if you want to import in EEM.

    cd $CASHCOMP/EmbeddedEntitlementsManager/bin

    Use safex to import.

    If you don't need to import, then you have the exported file with which to do what you need. 




  • 3.  RE: safex command issued on a WCC 11.4 Linux server fails

    Posted Dec 13, 2019 08:08 AM

    Hi John,

    your suggestion to further source the env with . /etc/profile.CA did the trick!
    I am now able to export all WCC users from EEM via a Linux script
    Many thanks.
    James.




  • 4.  RE: safex command issued on a WCC 11.4 Linux server fails

    Posted Dec 13, 2019 09:33 AM

    Fantastic, James! I'm glad it worked out!

    Cheers,

    John Surette