12-06-2012 05:04 AM
Is there any token which gives me the hostname where the PPM is installed?
Just the server name.
I've found something as [AS.BASE_URL], but this gives me the URL (hostname+port+init_page)
Any help is appreciated
Solved! Go to Solution.
12-07-2012 12:22 AM - edited 12-07-2012 12:23 AM
But, it is node name not the hostname.
I've gone through most of the application tokens, but no good.
Maybe, there is no such a token or I might be missing.
12-07-2012 03:40 AM
You should have an Environment defined for your PPM environment, usually called KINTANA_SERVER. If that's properly configured, you can get use [ENV="KINTANA_SERVER".SERVER_NAME].
12-07-2012 08:05 AM
Another approach would be to ask the server what its name is. Something like this should work:
I am assuming here that you are running nodes on more than one server and the kintana_server environment lists only the primary node.
12-11-2012 08:06 PM - edited 12-11-2012 08:07 PM
I have found the same issue in clustered enviornments.
Perhaps you can try this if you are using a command line:
ksc_itg_run_sql QUERY_STRING="SELECT VALUE FROM knta_app_server_properties WHERE KEY = 'PRIMARY_BASE_URL''"
Use SUBSTR for exact host name
and then use [SQL_OUTPUT] token to fetch the value via token.
Alternatively, you can also try 'localhost' like http://localhost:[AS.HTTP_PORT] in a ksc_local_exec command
12-13-2012 02:08 AM
Since I am going to use it in mails, only token solution is the remedy.
If I use [ENV="SERVERNAME IN ENVONMENT".SERVER_NAME] solves my problem.