Forum Discussion
tatmotiv
Feb 03, 2017Cirrostratus
I've done this via cli script with some variables:
cli script clearconns {
proc script::init {} {
}
proc script::run {} {
tmsh::delete sys connection cs-server-addr [lindex $tmsh::argv 1] cs-server-port [lindex $tmsh::argv 2] ss-server-addr [lindex $tmsh::argv 3] ss-server-port [lindex $tmsh::argv 4]
}
proc script::help {} {
}
proc script::tabc {} {
}
total-signing-status not-all-signed
}
This can be called from external via iControl REST, e.g. like this:
POST -H "Content-Type: application/json" https://mybigip/mgmt/tm/cli/script -d '{"command":"run","utilCmdArgs":"clearconns 10.1.2.3%23 443 10.45.67.89%23 80"}'
Don't forget to include the %nn suffix with the IP addresses when using route domains!
HTH Martin