Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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
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