For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

dragonflymr's avatar
dragonflymr
Icon for Cirrostratus rankCirrostratus
Jan 26, 2016

tmsh script modify pool member status

Hi,

I am trying to modify pool member admin status via tmsh script using such command:

tmsh::modify /ltm pool lamp_opi_pl members modify {lamp12_nd:http {session user-disabled}}

but every time script is executed I've got such errors:

pool-status.tcl: script failed to complete:
can't eval proc: "script::run"
members: required brace is missing "{"
    while executing
"tmsh::modify /ltm pool "lamp_opi_pl" members modify {"lamp12_nd:http" {session user-disabled}}"
    (procedure "script::run" line 35)
    invoked from within
"script::run" line:1
script did not successfully complete, status:1

What is wrong with my command? Is that not possible to change admin status for pool member in script?

Piotr

3 Replies

  • Try escaping the braces:

    tmsh::modify /ltm pool lamp_opi_pl members modify \{lamp12_nd:http \{session user-disabled\}\}