Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Clear all filters
Answers

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.

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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

0
Comments on this Answer
Comment made 1 month ago by ottleydamian 84

Thanks,

Sorry if I’m not getting it. But create it and put it where? There is no interface for iCall, like an iRule, so do I create a text file and save it in a specific directory?

0
Comment made 1 month ago by Jason Rahm

iCall has to be created in tmsh or via the iControl interface.

0
Comment made 1 month ago by ottleydamian 84

Ooh got yeah! I was reading it all wrong. It makes sense now thanks. I was thinking it was a script run in bash or something. Thanks a million!

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Hello,

I didn't found any document for your need, but you can start with theses links : https://devcentral.f5.com/articles/lightboard-lessons-icall-27377 https://devcentral.f5.com/articles/what-is-icall-27404

Examples of iCalls:

https://devcentral.f5.com/codeshare?tag=icall

Regards

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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.

0
Comments on this Answer
Comment made 1 month ago by ottleydamian 84

Since I'm reading several places to get the answer let me summarize what I got and didn't get so you can fill in the blanks.

So an iCall script is just a tmsh script stored in a specific section of the configuration. It's output goes to /var/tmp/scriptd.out. I missed what the the specific section of the config?

I assume the handler script is also stored in the same specific section of the configuration. What is the specific section of the config?

0