Page 1 of 1

Get the Admin Host of TM1 server

Posted: Mon Jul 16, 2012 1:58 am
by bunchukokoy
Hi Guys,

Here again to ask. :D

I just want to know if there's a way I can get using a TI the IP address/admin host of my TM1 server? I know OPTGET but its for VBA.

Does anyone know?

Thanks a lot.

Bunch

Re: Get the Admin Host of TM1 server

Posted: Mon Jul 16, 2012 8:31 am
by Edward Stuart
You could create a TI to create/ run a .bat which could output the IP of the host machine to a text file which could then be picked up by another TI?

Re: Get the Admin Host of TM1 server

Posted: Mon Jul 16, 2012 8:37 am
by bunchukokoy
Yes Sir Edward,

Here's what I found. In my .bat file,

ipconfig > ip.txt

or

ipconfig | find "IP Address" > ip.txt

Thank you Sir. :D

Bunch

Re: Get the Admin Host of TM1 server

Posted: Mon Jul 16, 2012 9:24 am
by Alan Kirk
bunchukokoy wrote:Yes Sir Edward,

Here's what I found. In my .bat file,

ipconfig > ip.txt

or

ipconfig | find "IP Address" > ip.txt

Thank you Sir. :D

Bunch


The only thing that you should be aware of is that it'll only provide the Admin host if the Admin Server is running on the same box as the TM1 server. (Which I grant will usually, but not always, be the case.)

I suppose that another option would be to have the TI read the tm1s.cfg file to find the name of the admin host, though I must confess to being perplexed as to why you want this...

Re: Get the Admin Host of TM1 server

Posted: Wed Apr 26, 2017 2:07 pm
by AmbPin
I find it quite useful to have start-up process/chore copy the contents of the config file into a simple cube. That way the values are available for use in websheets, rules, Ti's...

Re: Get the Admin Host of TM1 server

Posted: Mon Feb 12, 2018 6:44 am
by Drg
I apologize for raising the old topic but no where there is no explanatory description let it be here

Test this script only on Windows server.

p/s/
sctript created dimension
DimName='sys_ServerParameters';
you can append parameters
pParamsList=UPPER(':adminhost:ServerName:');
or append all parameters
pParamsList='';
you do not use in tm1s.cfg
adminhost=localhost

Re: Get the Admin Host of TM1 server

Posted: Mon Feb 12, 2018 11:40 pm
by macsir
I just put the admin host manually into a central control cube where all processes can refer to as it really doesn't change.

Re: Get the Admin Host of TM1 server

Posted: Thu Feb 15, 2018 9:39 am
by Drg
macsir wrote: Mon Feb 12, 2018 11:40 pm I just put the admin host manually into a central control cube where all processes can refer to as it really doesn't change.
I also did this until I transferred a model that starts several hours and left home as a result of which users started the processes on the productive model and the child processes were run on the test.
so I came to the conclusion that it's better to make a process that will do this even when I'm not around.