One Star

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.

1 REPLY
Seven Stars

Re: What's my ip ?

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??