SungHoon_Kim

WSS Agent R12.52SP1CR5 missing smreghost.sh

Blog Post created by SungHoon_Kim Employee on Nov 30, 2016

I installed WSS Agent R12.52SP1CR5 for WebSphere on RHEL6.8 and found that the smreghost.sh was missing in the "/opt/CA/Web_Services_Security/wasagent/bin" folder.

 

So, I uninstalled CR5, installed CR4 to get the smreghost.sh and thought it would be good to share how the smreghost.sh looks like so you don't have to do the same.

 

Create smreghost.sh file as below.

smreghost.sh
#!/bin/ksh

#########################################################################################
## Copyright (c) 2006 CA.  All rights reserved.                                        ##
## This software may not be duplicated, disclosed or reproduced in whole or            ##
## in part for any purpose except as authorized by the applicable license agreement,   ##
## without the express written authorization of CA. All authorized reproductions       ##
## must be marked with this language.                                                  ##
##                                                                                     ##
## TO THE EXTENT PERMITTED BY APPLICABLE LAW, CA PROVIDES THIS                         ##
## SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING                            ##
## WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY,                      ##
## FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.  IN NO EVENT                   ##
## WILL CA BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS                   ##
## OR DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS MATERIAL,                       ##
## INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS                                ##
## INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF CA IS EXPRESSLY                       ##
## ADVISED OF SUCH LOSS OR DAMAGE.                                                     ##
#########################################################################################
 
export JAVA_HOME=/opt/IBM/WebSphere/AppServer/java
export SM_SMREGHOST_CLASSPATH=/opt/IBM/WebSphere/AppServer/lib/ext/smagentapi.jar:/opt/IBM/WebSphere/AppServer/lib/ext/thirdparty/cryptojFIPS.jar
export PATH=$JAVA_HOME/bin:$PATH

java -classpath "$SM_SMREGHOST_CLASSPATH" com.ca.siteminder.sdk.agentapi.SmRegHost "$@"
# The caller needs the exit status from SmRegHost
exit $?

Outcomes