Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
How to run cmc as a service
1. How to run CMC as a service
Friday, September 24, 2010
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:HyperioncommonJRESun1.5.0binserverjvm.dll"
"JVMOption1"="-
Dcatalina.base=F:Hyperioncommonworkspacert9.5.0.0ui"
"JVMOption2"="-
Dcatalina.home=F:HyperioncommonappServersTomcat5.5.17"
"JVMOption3"="-
Djava.endorsed.dirs=F:HyperioncommonappServersTomcat5.5.17commo
nendorsed"
"JVMOption4"="-
Djava.io.tmpdir=F:Hyperioncommonworkspacert9.5.0.0uitemp"
"JVMOption5"="-Dhyperion.home=F:Hyperion"
"JVMOption6"="-DHYPERION_HOME=F:Hyperion"
"JVMOption7"="-Xms64m"
"JVMOption8"="-Xmx256m"
"JVMOption9"="-
Djava.class.path=F:HyperioncommonappServersTomcat5.5.17binboots
trap.jar;F:HyperioncommonappServersTomcat5.5.17commonlibservl
et-
api.jar;F:HyperioncommonappServersTomcat5.5.17commonlibjasper
-
3. "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