Forum Discussion

ottleydamian's avatar
Jan 16, 2019

Step by Step Instructions for iCall

I have read several articles about iCall (& iStats) but I'm missing how to actually implement it. With iRules I put the script in the iRules editor and save. If I want to do an iCall that is triggered from within an iRule I'm not understanding where to put the iCall pieces.

 

Is it files that I store in a special folder? Is it multiple files, eg. if I have a handler, script etc...? What I would like is a link or an explanation of how to get started, please.

 

3 Replies

  • there are other less safe and even less supportable methods, but the intended method of integration between iRules and iCall is to use the iStats commands in an iRule.

    For iCall specifically, this article puts all the pieces together well but does not address the need for an iRule integration.

    For that, this article should bring clarity. Note the troubleshooting commands/log status at the bottom that will help while you are developing your solution.

  • Hi,

    So First of you have to create your Icall.

    create sys icall my_icall_name

    Then create your Icall Handler :

    create sys icall handler triggered my_icall_name

    In Your Irule set a specific logs that will be trigged by "/config/user_alert.conf"

    when HTTP_REQUEST {
    if { [HTTP::uri] contains "/exp" } { 
        log local0. "TRIG"
    } 
    }
    

    Then edit /config/user_alert.conf and add the following alert

    alert testing "TRIG" {
        exec command="tmsh generate sys icall event my_icall_name"
    }
    

    Keep me in touch if you need more details.

    regards