Hi,
My operating system is windowsserver 2008R2 Enterprise , now I want to stop and restart the tm1-server via a batch-file. TM1 server is running as a service. Do you have a hint how I can start/stop the server automatically?
I written inside batch script like this
start the service
netsvc /start \\T11 "TM1 Server-sample"
stop the service
netsvc /stop \\T11 "TM1 Server-sample"
Thanks,
Chowdary
start&stop TM1 service Automatically via batch file
-
- Posts: 7
- Joined: Thu Aug 02, 2012 12:31 pm
- OLAP Product: cognos TM1
- Version: 9.5.1
- Excel Version: 2010
- Martin Ryan
- Site Admin
- Posts: 2003
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: start&stop TM1 service Automatically via batch file
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
Jodi Ryan Family Lawyer
-
- Posts: 7
- Joined: Thu Aug 02, 2012 12:31 pm
- OLAP Product: cognos TM1
- Version: 9.5.1
- Excel Version: 2010
Re: start&stop TM1 service Automatically via batch file
Hi,Martin Ryan wrote:Try this: http://www.tm1forum.com/viewtopic.php?p=11051
I have tried these ways
1.
NET STOP "TM1 Server / CUF2" /Y
NET STOP "TM1 Server / CUF2" /Y
Net stop&Net start commands are not working in windows server 2008 R2 Enterprise
2.
netsvc /start \\L-WTKL062 "TM1 Server-cuf2"
netsvc /start \\L-WTKL062 "TM1 Server-cuf2"
Netsvc/start & Netsvc stop commands are not working in windows server 2008 R2 Enterprise
-
- MVP
- Posts: 3704
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: start&stop TM1 service Automatically via batch file
These commands are only going to be "not working" if eithersvchowdary83 wrote:Net stop&Net start commands are not working in windows server 2008 R2 Enterprise ...
Netsvc/start & Netsvc stop commands are not working in windows server 2008 R2 Enterprise
1/ you are passing the wrong service name
2/ the account running the command doesn't have privileges
Based on the names in your code I suspect it is the first possibility.
Note that the display name in the control panel services snap-in is NOT the name that you need to use to programatically interact with the service. If you click on the service and select properties you should need the actual name of the service. In your example it is probably simply "cuf2".svchowdary83 wrote:NET STOP "TM1 Server / CUF2" /Y