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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

What's my ip ?

Hi there.

 

Just a quick question.

I'm running my jobs on a linux server and would like my job to send me a mail with the hostname and the ip of this server.

How do i manage to get the ip ?

 

Thanks for you'r much welcomed input.

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Set variables in a tSetGlobVar
ip=java.net.InetAddress.getLocalHost()
hostname=java.net.InetAddress.getLocalHost().getHostName()

And use those variables in your email component body.
Isnt it??