Forum Discussion
using tmsh commands in tcl script
I have been messing around with some tcl stuff. I want to change the order of vips in a pool on the GTM. How would I inject this command into the tcl script ?
Here is the cmd I want to use ultimately - tmsh::modify /gtm pool poolname members modify { :https { order 1 }}
Here the test bed script that I put together:
modify script flip.tcl {
proc script::run {} {
tmsh::modify /gtm pool poolmen members modify { :https { order 1 }}
}
Its saves without error but I executed I get this error:
flip.tcl: script failed to complete: can't eval proc: "script::run" members: required brace is missing "{" while executing "tmsh::modify /gtm pool sdx-pq1-pool members modify { 10.15.10.200:https { order 1 }}" (procedure "script::run" line 3) invoked from within "script::run" line:1 script did not successfully complete, status:1
any help will be great! thanks
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