Forum Discussion

9 Replies

  • It's not possible to directly call anything on the filesystem from an iRule. Can you elaborate on what you're trying to accomplish? Maybe there is a way to do what you're trying to indirectly.

     

     

    Aaron
  • Hi A. Newhagen,

    Here is one example were you can launch a file based on location. This assumes you are running on Windows I.E. with ActiveX is allowed to launch.

    This is untested irule

    
    when RULE_INIT {
    set exec {
     
     
           
            
    
    
    
            
       }
    }
    
    when HTTP_REQUEST {
    switch -glob [HTTP::uri] {
    "/execute" {
    HTTP::respond 200 content $::exec
    }
    }
    }
    

    I hope this helps

    Bhattman

  • Thanks for your reply.

     

     

    Then, is there a way to launch a WebService from an iRule? Thanks again.
  • Thanks for your reply.

     

     

    We are trying to execute a java application that accesses a service to check for credentials. The application needs to be launched from the F5, not from the client.

     

     

    If we can't do this by launching an executable, then the next question was whether we could call Web Service from an iRule?

     

     

    Thanks again.

     

  • Hi A. Newhagen,

     

    It's possible but I don't know anything about WebService. However, if the concept of Webservice is making some calls from calls from the client then I suppose it's possible to have the irule to help it out.

     

     

    Bhattman
  • So you want to hold the the java executable on the F5? As hoolio had said it's not possible but is possible to do it indirectly.

     

     

    thanks,

     

    Bhattman

     

  • If you're trying to have LTM perform authentication of client traffic against a remote auth server, you could potentially use the Access Policy Manager module to do it.

     

     

    You could also make a sideband HTTP request using HTTP::retry in an iRule. See this article from Deb for details:

     

     

    Conditioning iRule Logic on External Information - 01 - HTTP::retry

     

    http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=105

     

     

    Aaron