Service Virtualization

Expand all | Collapse all

How to trace the source IP for a request reaching Lisa/DevTest VSE

Jump to Best Answer
  • 1.  How to trace the source IP for a request reaching Lisa/DevTest VSE

    Posted 06-24-2016 06:16 PM

    How do I find out the Source IP / host name that is hitting my Lisa VSE? I enabled the logging level to TRACE but still not able to figure out the IP or the requesting host?

     

    Version i am using is 7.5.1 but even if it is available in 8.x or 9.x i am good.



  • 2.  Re: How to trace the source IP for a request reaching Lisa/DevTest VSE
    Best Answer

    Broadcom Employee
    Posted 06-24-2016 06:21 PM

    Please see if the information in the following thread is of help

     

    capture client details

     

    Quoting from the same thread

     

    After the listen step with the following code you can get the clientIP:ClientPort. The individual values will be stored in fl_ClientIP & fl_ClientPort respectively

     

    import com.itko.lisa.vse.stateful.model.Request;

    import com.itko.lisa.vse.stateful.protocol.DataProtocol;

    import com.itko.util.Parameter;

    import com.itko.util.ParameterList;

    Request request = (Request) testExec.getStateObject("lisa.vse.request");

    String clientip = request.getMetaData().get("lisa.vse.request.client.id");

    String[] ClientUrl = clientip.split(":");

     

    testExec.setStateValue("fl_ClientIP", ClientUrl[0] );

    testExec.setStateValue("fl_ClientPort", ClientUrl[1] );

    return clientip;



  • 3.  Re: How to trace the source IP for a request reaching Lisa/DevTest VSE

    Posted 06-24-2016 06:28 PM

    Thanks Prem_Bairoliya I was looking for "lisa.vse.request.client.id"