Forum Discussion
2cushty_206
Nimbostratus
Jul 09, 2010irule trigger external script
Hi,
I'm looking for a way to initiate a script on an external server from within the irule logic. I know this can be done via monitors but I want to do it under the control of an irule? I gu...
I have done what you mention. The result was still the same.can you post your configuration here?
b virtual (http virtual server name) list
b pool (http virtual's pool name) list
b virtual (https virtual server name) list
b pool (https virtual's pool name) list
- Kevin_StewartJul 29, 2015
Employee
Try this:
curl -vsk -u 'admin:admin' -H "Content-Type: application/json" -X POST https://192.168.1.252/mgmt/tm/util/bash -d "{\"command\":\"run\",\"utilCmdArgs\":\"-c 'echo "works"'\"}"
You're somewhat limited with what you can do with Bash, for example you couldn't directly execute a binary file like 'ls', but then you could script it and then call the script:
https://devcentral.f5.com/questions/can-icontrol-rest-delete-a-connection