icall script
1 Topici Call script for shutting down F5 LTM interface
Hi Experts How will I ensure that multiple conditions trigger port shutdown on the F5 VIPRION, running 11.5.1? For example, I am tracking a pool IP member (say 8.8.8.8 on the Internet) and based on that tracking I have to shutdown four ingress ports, say 1/1.1, 1/1.3, 1/1.5, 1/1.9. We have to verify if the above interfaces are up, then only the script should shut them down. IP 8.8.8.8 is reachable via another set of interfaces, say 1/1.6, 1/1.10, 1/1.14. I am not able to combine both these conditions in the i-call statement. Will F5 TAC support such customizations on the LTM product line? Sample given below. However, this does not check port status before shutting them down. sys icall script /Common/vsuf_down { app-service none definition { This script is triggered via alertd and will enable ingress links if next hop IP is UP set cgnat "/Common/CGNAT-Instance" IP pool ping status to 8.8.8.8 set dev_objs [tmsh::get_status /ltm pool $cgnat] foreach dev_obj $dev_objs { set STATUS_1 [tmsh::get_field_value $dev_obj "status.availability-state"] } ---------------------------------------------------- If IP is DOWN, disable ingress trunk ---------------------------------------------------- tmsh::log " $STATUS_1" if {$STATUS_1 == "available"}{ tmsh::log "IP 8.8.8.8 is UP. DISABLING ingress TRUNK" tmsh::modify /net interface 1/1.1 disabled tmsh::modify /net interface 1/1.5 disabled } } description none events none }276Views0likes0Comments