What's my ip ?

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.

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

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch