Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Clear all filters
Answers

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

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Try escaping the braces:

tmsh::modify /ltm pool lamp_opi_pl members modify \{lamp12_nd:http \{session user-disabled\}\}
1
Comments on this Answer
Comment made 26-Jan-2016 by Piotr Lewandowski 1162
Hi, Thanks, good idea, I will try it tomorrow. Piotr
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Hi Tim,

Worked as a charm, thanks a lot.

Piotr

0