Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Get Executing Machine Name

Does anyone have any suggestions on the best way to get the machine name that a job is executing on?
Thanks,
Neil
Labels (2)
4 Replies
Anonymous
Not applicable
Author

Hi Neil,
You can simply use a tSystem component. This component allows you to execute any system command. Just print the computer name with an echo, and use the parameters of the tSystem to catch what this command returns and output it into a column in the component.
Anonymous
Not applicable
Author

In java you can use --> System.getenv("COMPUTERNAME")
rbaldwin
Creator

java.net.InetAddress.getLocalhost().getHostName() or java.net.InetAddress.getLocalhost().getCononicalHostName() will also get you the host name for the machine running the job.
Anonymous
Not applicable
Author

Thanks all. Working now.
Neil