How to pass Unix hostname to ctm variable

All questions about Control-M jobs definitions
Post Reply
User avatar
Kenton
Nouveau
Nouveau
Posts: 15
Joined: 10 Oct 2008 12:00

How to pass Unix hostname to ctm variable

Post by Kenton » 25 Jul 2014 6:02

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

User avatar
gglau
Nouveau
Nouveau
Posts: 317
Joined: 13 Jun 2007 12:00

Post by gglau » 25 Jul 2014 3:56

%%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.

User avatar
Kenton
Nouveau
Nouveau
Posts: 15
Joined: 10 Oct 2008 12:00

Re: How to pass Unix hostname to ctm variable

Post by Kenton » 28 Jul 2014 8:24

Thanks

Post Reply