Page 1 of 1

How to pass Unix hostname to ctm variable

Posted: 25 Jul 2014 6:02
by Kenton
Hello

How do I pass the current hostname to a Control-M variable?

I have the hostname defined in nodes/node_groups so that it is transparent when we promote to SIT, UAT and PRD and so it's only hardcoded within configuration manager.

Thanks for your help.

Kenton

Posted: 25 Jul 2014 3:56
by gglau
%%NODEID is the system variable holding the hostname where job is submitted. Note that this is valid only after job has been submitted.

If you need hostname for job script, shell command "hostname" or shell variable $HOSTNAME or %COMPUTERNAME% are always available.

Re: How to pass Unix hostname to ctm variable

Posted: 28 Jul 2014 8:24
by Kenton
Thanks