Forum Discussion
juergen_lampar1
Jul 03, 2014Nimbostratus
hi, with Version 10.2.4:
!/bin/bash define pool namepool="local-pool";
define pool member listener portport=80;
arr=($(tmsh list ltm pool $pool |grep "local ip range" | cut -d : -f1 ));
for x in "${arr[@]}" do score=
curl -fNs http://$x/score.php
;
tmsh modify ltm pool $pool members modify { $x:$port { ratio $score } };
done
but can i Trigger the script via external montior?