Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
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??