Not working my iCall script...

Problem this snippet solves:

Hello~

I created iCall and generate event for working iCall's script. But.... It is not working.

list sys icall script change_iRule2 sys icall script change_iRule2 {

app-service none
definition {
    tmsh::modify ltm virtual v_198.100__443 rules { vip_snatpool }
    tmsh::modify ltm virtual v_198.101__443 rules { vip_snatpool }
}
description none
events none

}

list sys icall handler triggered change_iRule2{

script change_iRule2
subscriptions {
    change_iRule2 {
        event-name change_iRule2
    }
}

}

I gernerated event

  • generate sys icall event change_iRule2

And I checked bellow status......

  • Sys::iCall::Event Triggered Handler: change_iRule2

  • Events matching filters 11

  • Events causing handler to run 11

  • Creation time 01/24/17 16:38:35

  • Current status active

  • Time since last status change 01/24/17 16:38:35

But, Configuration(virtual server's iRule) is not change....

Plz help me. T..T

Code :

sys icall script change_iRule2 {
    app-service none
    definition {
        tmsh::modify ltm virtual v_198.100__443 rules { vip_snatpool }
        tmsh::modify ltm virtual v_198.101__443 rules { vip_snatpool }
    }
    description none
    events none
}

create sys icall handler triggered change_iRule2 script change_iRule2 subscriptions add { change_iRule2 { event-name change_iRule2 } }
Updated Jun 06, 2023
Version 2.0

Was this article helpful?

No CommentsBe the first to comment