Forum Discussion
How do you call the last log of ltm left by irule from icall?
I am trying to call the "ltm" log from "icall".
How do you call the last log of ltm left by irule from icall?
sys icall script null { app-service none definition { } description none events none } sys icall script blacklist_ip_generation { app-service none definition { set blacklist_ip set a [lindex [exec tail -1 /var/log/ltm] 9 ] tmsh::modify "ltm data-group internal URL_Access_Black_IP records add { $blacklist_ip }" tmsh::log "$blacklist_ip is blacklist ip registration" } description none events none } sys icall handler triggered blacklist_ip_generation { script blacklist_ip_generation subscriptions { blacklist_ip_generation { event-name blacklist_ip_generation } } }
- Park_Ki_Wan_201Altostratus
sys icall script null { app-service none definition { } description none events none } sys icall script blacklist_ip_generation { app-service none definition { set blacklist_ip set a [lindex [exec tail -1 /var/log/ltm] 9 ] tmsh::modify "ltm data-group internal URL_Access_Black_IP records add { $blacklist_ip }" tmsh::log "$blacklist_ip is blacklist ip registration" } description none events none } sys icall handler triggered blacklist_ip_generation { script blacklist_ip_generation subscriptions { blacklist_ip_generation { event-name blacklist_ip_generation } } }
- Park_Ki_Wan_201Altostratus
set blacklist_ip [exec tail -1 /var/log/ltm]
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com