Forum Discussion

Brent_Davis_133's avatar
Brent_Davis_133
Icon for Nimbostratus rankNimbostratus
Sep 10, 2013
Solved

TMSH Command

What is the TMSH Command to Delete Pool Members?

 

  • tmsh modify ltm pool poolname members delete { membername:port }

     

    TMSH command reference can be found here:

     

    http://support.f5.com/content/kb/en-us/products/big-ip_ltm/manuals/product/bigip-tmsh-11-1-0/_jcr_content/pdfAttach/download/file.res/tmsh_11-1-0.pdf

     

4 Replies

  • tmsh modify ltm pool poolname members delete { membername:port }

     

    TMSH command reference can be found here:

     

    http://support.f5.com/content/kb/en-us/products/big-ip_ltm/manuals/product/bigip-tmsh-11-1-0/_jcr_content/pdfAttach/download/file.res/tmsh_11-1-0.pdf

     

  • As an alternative to 'delete' I´m using the 'replace-all-with' option:

    [root@bigip171:Active:Standalone] config  tmsh list ltm pool test_pool
    ltm pool test_pool {
        members {
            10.131.131.203:80 {
                address 10.131.131.203
                session monitor-enabled
                state down
            }
            10.131.131.204:80 {
                address 10.131.131.204
                session monitor-enabled
                state down
            }
        }
        monitor http
    }
    [root@bigip171:Active:Standalone] config  tmsh modify ltm pool test_pool members replace-all-with { 10.131.131.201:80 10.131.131.202:80 }
    [root@bigip171:Active:Standalone] config  tmsh list ltm pool test_pool
    ltm pool test_pool {
        members {
            10.131.131.201:80 {
                address 10.131.131.201
                session monitor-enabled
                state checking
            }
            10.131.131.202:80 {
                address 10.131.131.202
                session monitor-enabled
                state checking
            }
        }
        monitor http
    }
    [root@bigip171:Active:Standalone] config  tmsh save sys config
    Saving running configuration...
      /config/bigip.conf
      /config/bigip_base.conf
      /config/bigip_user.conf
    [root@bigip171:Active:Standalone] config  tmsh run cm config-sync to-group device-group-failover