Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: execute nslookup from transformation

  1. #1
    Join Date
    Dec 2006
    Posts
    20

    Default execute nslookup from transformation

    Hi,

    in a transformation i have a list with IP addresses and for each one i want to execute a nslookup via the shell. I started to play with a modified javascript value script but as i am not an expert in JavaScript i don't know ho to do the call.

    Has anybody done something comparable and is able to give me a helping hand on this??

    Cheers

    Thorsten

  2. #2
    Join Date
    Nov 1999
    Posts
    9,729

    Default

    Hi Thorsten,

    You can probably simply use Java classes to do this. Perhaps something like this:
    Code:
    var addr = Packages.java.net.InetAddress.getByName("208.201.239.36");
    var hostname = addr.getHostName();
    HTH,
    Matt

  3. #3
    Join Date
    May 2006
    Posts
    4,882

    Default

    Or using the added javascript function "resolveIP()" which needs 2 parameters instead of 1 as shown in the samples.

    Regards,
    Sven

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.