Forum Discussion

Andy_Herrman_22's avatar
Andy_Herrman_22
Icon for Nimbostratus rankNimbostratus
Apr 23, 2010

CLI command to enable/disable pool member

I'm trying to write a shell script to automate some of the configuration needed for a deployment that's coming up. One of the changes I need to be able to make is to disable pool members.

 

 

The `bigpipe pool` command's help shows that I can add/remove members, but I'm not seeing a way to enable/disable them.

 

 

Is there a way to disable the pool members using the `bigpipe` command?

 

 

I'm running BIG-IP version 9.3.0.

 

 

Thanks!

 

6 Replies

  • These should work:

     

     

    b pool POOL_NAME member 1.1.1.1:80 session disable

     

     

    b pool POOL_NAME member 1.1.1.1:80 session enable

     

     

    If you want to change the node address (affecting all pool members on that IP address), you can use the following.

     

     

    You can use 'b node 1.1.1.1 down' to set 1.1.1.1 to forced offline. To set the node to disabled (Only persistent or active connections allowed), you can use 'b node 1.1.1.1 session disable/enable'.

     

     

    Aaron
  • sorry to open this again but i cant seem to find the command to delete a pool member from a pool

     

     

    I tried these:

     

     

    b pool my_pool delete { 10.10.10.10:20 }

     

     

    and

     

     

    b pool my_pool '{

     

    members

     

    delete 10.10.10.10:20

     

    }'

     

  • e.g.

     bigpipe
    
    [root@ve10:Active] config  b pool my_pool list
    pool my_pool {
       members {
          10.10.10.10:20 {}
          10.10.10.11:20 {}
          10.10.10.12:20 {}
       }
    }
    [root@ve10:Active] config  b pool my_pool member 10.10.10.10:20 delete
    [root@ve10:Active] config  b pool my_pool list
    pool my_pool {
       members {
          10.10.10.11:20 {}
          10.10.10.12:20 {}
       }
    }
    
     tmsh
    
    root@ve10(Active)(tmos) list ltm pool my_pool
    ltm pool my_pool {
        members {
            10.10.10.10:ftp-data { }
            10.10.10.11:ftp-data { }
            10.10.10.12:ftp-data { }
        }
    }
    root@ve10(Active)(tmos) modify ltm pool my_pool members delete { 10.10.10.10:20 }
    root@ve10(Active)(tmos) list ltm pool my_pool
    ltm pool my_pool {
        members {
            10.10.10.11:ftp-data { }
            10.10.10.12:ftp-data { }
        }
    }
    
  • Thanks so much Nitass !! So we cant really modify the pool members using the shortcurt with apostrophe. If i add new members it will remove all of the previous pool members so i need to copy existing config and add the new options if i want to keep that config in place. Thanks for your help

     

     

    And i have a silly question too, how do i go back to my posts on devcentral? I have to google search this link again and come back here to read your reply, i dont see an option or link on myaccount here to reach here directly.
  • how do i go back to my posts on devcentral? I have to google search this link again and come back here to read your reply, i dont see an option or link on myaccount here to reach here directly.i understand you can check "Check this box to subscribe to this topic" checkbox on top of this discussion.
  • You can also click on your profile name (or picture) and get to the Member Profile page and from there click My Topics.