Product:
Planning Analytics 2.0.9.19
Microsoft Windows 2019 Server
Issue:
How start or stop a TM1 instance from command line?
Solution:
There is a bat file in the TM1 installation you can take help from – check the folder : C:\Program Files\ibm\cognos\tm1_64\bin64
startup_tm1s.bat <path to tm1s.cfg file> { <TM1 Server Name> }
Above will start the TM1 if it is installed, otherwise it will install the TM1 instance and start it. Service_tm1s.bat file will both start and stop a TM1 instance.
Write a CMD file that have command of this character to use it;
Here we start TM1 instance FAP, in folder c:\tm1data\FAP\config.
>service_tm1s.bat stop TM1ServerConfigFolder TM1Servername
>service_tm1s.bat start TM1ServerConfigFolder TM1Servername
The downsize is that you need to inform of the path to the TM1 config file.
A bat file with the NET START command is better.
REM Stop the services NET STOP "FAP" /Y REM Start the services again NET START "FAP"
More Information:
https://www.wimgielis.com/tm1_backup_EN.htm
https://exploringtm1.com/how-to-do-a-daily-or-weekly-restart-a-tm1-model/
https://ecapitaladvisors.com/blog/how-to-set-up-turbo-integrator-chores-to-run-advanced-scheduling/