Forum Discussion
remove a node from multiple pools using bash
The output shows all the pools with the associated member.
VFB Yes, I do realize what the output should be but I'm looking for what it is for you to ensure that what you have command wise will work or we can figure out why it doesn't work. Ideally I would like to see two of the lines, one with all pool members active/working and one with some down/disabled pool members.
- VFBNov 29, 2023Cirrus
ltm pool imagine { members { 10.31.194.41:443 { address 10.31.194.41 session user-disabled state down } 10.31.199.4:443 { address 10.31.199.4 session monitor-enabled state up } 10.31.199.5:443 { address 10.31.199.5 session monitor-enabled state up } 10.42.80.118:443 { address 10.42.80.118 session user-disabled state user-down } 10.42.80.119:443 { address 10.42.80.119 session user-disabled state user-down } 10.131.131.5:443 { address 10.131.131.5 session user-disabled state down } } min-active-members 1 monitor tcp_half_open service-down-action reset }
ltm pool operations { members { 10.31.194.41:80 { address 10.31.194.41 session user-disabled state down } 10.31.199.4:80 { address 10.31.199.4 session monitor-enabled state up } 10.31.199.5:80 { address 10.31.199.5 session monitor-enabled state up } 10.42.80.118:80 { address 10.42.80.118 session user-disabled state user-down } 10.42.80.119:80 { address 10.42.80.119 session user-disabled state user-down } 10.131.131.5:80 { address 10.131.131.5 session user-disabled state down } } min-active-members 1 monitor http-standard-monitor service-down-action reset }
ltm pool treasury { members { 10.31.194.41:80 { address 10.31.194.41 session user-disabled state down } 10.31.199.4:80 { address 10.31.199.4 session monitor-enabled state up } 10.31.199.5:80 { address 10.31.199.5 session monitor-enabled state up } 10.42.80.118:80 { address 10.42.80.118 session user-disabled state user-down } 10.42.80.119:80 { address 10.42.80.119 session user-disabled state user-down } 10.131.131.5:80 { address 10.131.131.5 session user-disabled state down } } min-active-members 1 monitor http-standard-monitor service-down-action reset }- PauliusNov 29, 2023MVP
VFB Based on the configuration that you provided the following is the result. Is that what you expect to occur? If this is automatically echoing the commands back into the console this might be some sort of lag that is occurring between the output and input into the console. You might run the command and manually put the commands in yourself.
tmsh modify ltm pool imagine members delete { 10.131.131.5:443 } tmsh modify ltm pool operations members delete { 10.131.131.5:80 } tmsh modify ltm pool treasury members delete { 10.131.131.5:80 }
- VFBDec 01, 2023Cirrus
Thanks for the response, but I'm looking for a scripted solution to delete possibly thousands of entries. I'm looking for help modifying the script I initiall posted.
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