How to run CMC as a service


When I was configuring Kerberos Authentication for Workspace I had to use Workspace UI services (CMC) to start the Configuration Management console.

Pre 11 releases this one is similar to the Servlet configurator.

In a windows environment to run something in foreground….(as a console window)…hmmm not used to it right 😉

So I thought why not create a service for it….(even though it is not used everyday)…

Please follow the given below steps to create CMC as a service

You’ve to edit the registry entries for creating the service. So I’ve listed the registry entries below.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREHyperion SolutionsCMC]

[HKEY_LOCAL_MACHINESOFTWAREHyperion SolutionsCMCHyS9CMC]
“Env1″=”%PATH%”
“EnvCount”=dword:00000000
“JavaDll”=”F:\Hyperion\common\JRE\Sun\1.5.0\bin\server\jvm.dll”
“JVMOption1″=”-Dcatalina.base=F:\Hyperion\common\workspacert\9.5.0.0\ui”
“JVMOption2″=”-Dcatalina.home=F:\Hyperion\common\appServers\Tomcat\5.5.17″
“JVMOption3″=”-Djava.endorsed.dirs=F:\Hyperion\common\appServers\Tomcat\5.5.17\common\endorsed”
“JVMOption4″=”-Djava.io.tmpdir=F:\Hyperion\common\workspacert\9.5.0.0\ui\temp”
“JVMOption5″=”-Dhyperion.home=F:\Hyperion”
“JVMOption6″=”-DHYPERION_HOME=F:\Hyperion”
“JVMOption7″=”-Xms64m”
“JVMOption8″=”-Xmx256m”
“JVMOption9″=”-Djava.class.path=F:\Hyperion\common\appServers\Tomcat\5.5.17\bin\bootstrap.jar;F:\Hyperion\common\appServers\Tomcat\5.5.17\common\lib\servlet-api.jar;F:\Hyperion\common\appServers\Tomcat\5.5.17\common\lib\jasper-runtime.jar;F:\Hyperion\common\appServers\Tomcat\5.5.17\common\lib\jsp-api.jar;F:\Hyperion\common\appServers\Tomcat\5.5.17\common\lib\commons-el.jar;F:\Hyperion\common\SAP\lib;F:\Hyperion\common\config\9.5.0.0\lib\hit-config.jar;F:\Hyperion\common\config\9.5.0.0\lib\hit-common.jar;F:\Hyperion\common\config\9.5.0.0\lib\registry-api.jar;F:\Hyperion\common\loggers\Log4j\1.2.14\lib\log4j-1.2.14.jar;F:\Hyperion\common\JakartaCommons\commons-codec-1.3.jar;F:\Hyperion\common\JakartaCommons\commons-lang-2.1.jar;F:\Hyperion\common\JakartaCommons\commons-httpclient-3.0.1.jar;F:\Hyperion\common\JDBC\DataDirect\3.7\lib\hyjdbc.jar;F:\Hyperion\common\CSS\9.5.0.0\lib\ldapbp.jar”
“JVMOption10″=”-Dbuild.compiler.emacs=true”
“JVMOption11″=”-DAGENT_HOME=F:\Hyperion\common\workspacert\9.5.0.0″
“JVMOption12″=”-Djava.rmi.server.codebase=file:F:\Hyperion\common\workspacert\9.5.0.0\lib\wksagent.jar”
“JVMOption13″=”-Djava.security.policy=F:\Hyperion\common\workspacert\9.5.0.0\common\config\server.policy”
“JVMOption14″=”-Djava.rmi.server.ignoreStubClasses=true”
“JVMOption15″=”-Djava.rmi.server.useCodebaseOnly=true”
“JVMOptionCount”=dword:0000000f
“StartupParamCount”=dword:00000000
“SysErrFile”=”F:\Hyperion\logs\services\HyS9CMC-syserr.log”
“SysOutFile”=”F:\Hyperion\logs\services\HyS9CMC-sysout.log”

All you have to do is save the contents to a file with extension .reg (Remember this will change your registry entries….so make sure that you does it correctly, change the directories according to your system)

Now since the registry values are in, we’ve to create a bat file for creating a service.

Now navigate to the deployments folder in %HYPERION_HOME%deploymentsTomcatbin.

Copy one of the existing exe (I copied HyS9aps.exe) and paste it in the same location rename it to HyS9CMC.exe

Copy the below given contents to a notepad as save it as installCMCservice.bat….

echo off
“F:HyperiondeploymentsTomcat5binHyS9CMC.exe” /Automatic /Service /RegKey=CMC /ServiceName=HyS9CMC /Name=Hyperion v11 Configuration Management Console – Web Application /Desc=HyS9CMC – Controls the running of an Applications Server /StartClass=org.apache.catalina.startup.Bootstrap /StartParam=start /StopClass=org.apache.catalina.startup.Bootstrap /StopParam=stop
echo on

To remove the service, create a bat file called removeCMCservice.bat

net stop HyS9CMC
“F:HyperiondeploymentsTomcat5binHyS9aps.exe” /UnregServer /RegKey=CMC /ServiceName=HyS9CMC
F:HyperioncommonJRESun1.5.0binjava.exe -cp F:Hyperioncommonconfig9.5.0.0libhit-common.jar com.hyperion.cis.utils.SingleScriptUtils F:HyperionproductsEssbaseapsbin CMC

Go to Services and start the service……. 🙂

The files that I made use are catalina.bat,startup.bat,setclasspath.bat,startUI.bat. If you want to do it on a different platform….you have to look at these files….

Hope it helps
Advertisements

About Celvin Kattookaran

I’m an EPM Consultant, my primary focus is on Hyperion Planning and Essbase. Some of you from Hyperion Support team might recognize me or have seen my support articles, I was with the WebAnalysis Support Team. I'm an Independent Consultant with “Intekgrate Corporation” based out of Aurora office. I’m from God’s Own Country (Kerala, India), lived in all southern states of India, Istanbul and Johannesburg (and of course United States). I’m core gamer :) and an avid reader. I was awarded Oracle ACE Director for my contributions towards EPM community.

Leave a Reply