Forum Discussion

GreenArrow_1457's avatar
GreenArrow_1457
Icon for Nimbostratus rankNimbostratus
Apr 26, 2016
Solved

What is the correct syntax for adding multiple monitors to pool for "ALL" as an availability requirement?

I know the syntax to have at least one monitor active is this:

ltm pool vlan100 Fortuna { description "Jabba Pet" members { boba1:18190 { address 172.31.18.17 } boba2:18190 { address 172.31.18.18 }

 }
monitor     min 1 of { vlan100_syn_ack_18190  vlan100_syn_ack_65000 }

This says that at least one of these have to be up to show as POOL active. But what is the syntax that requires "ALL" probes to be up to show pool as up? I know in the GUI I can change "at least" to "all". But am scripting a whole bunch and wanted to get correct terminology.

  • and
    is what you're looking for.

    (tmos) create ltm pool pool_mypool_80 members add { 1.1.1.1:80 } monitor http and tcp_half_open
    (tmos) list ltm pool pool_mypool_80
    
    ltm pool pool_mypool_80 {
        members {
            1.1.1.1:http {
                address 1.1.1.1
                session monitor-enabled
                state checking
            }
        }
        monitor http and tcp_half_open
    }
    

12 Replies

  • and
    is what you're looking for.

    (tmos) create ltm pool pool_mypool_80 members add { 1.1.1.1:80 } monitor http and tcp_half_open
    (tmos) list ltm pool pool_mypool_80
    
    ltm pool pool_mypool_80 {
        members {
            1.1.1.1:http {
                address 1.1.1.1
                session monitor-enabled
                state checking
            }
        }
        monitor http and tcp_half_open
    }
    
    • GreenArrow_1457's avatar
      GreenArrow_1457
      Icon for Nimbostratus rankNimbostratus
      So it would look like this instead: monitor vlan100_syn_ack_18190 and vlan100_syn_ack_65000 } ?
    • Hannes_Rapp's avatar
      Hannes_Rapp
      Icon for Nimbostratus rankNimbostratus
      tmsh create ltm pool vlan100-fortuna description "Jabba Pet" members add { 172.31.18.17:18190 172.31.18.18:18190 } monitor vlan100_syn_ack_18190 and vlan100_syn_ack_65000
    • Hannes_Rapp's avatar
      Hannes_Rapp
      Icon for Nimbostratus rankNimbostratus
      You cannot use a space in pool name (I replaced it with: -). As another problem, you cannot just throw in members without specifying a mandatory key-word ('add' or 'replace-all-with' are possible options). Note that in TMSH, you can use question mark or tab keys to help construct your commands in correct format.
  • and
    is what you're looking for.

    (tmos) create ltm pool pool_mypool_80 members add { 1.1.1.1:80 } monitor http and tcp_half_open
    (tmos) list ltm pool pool_mypool_80
    
    ltm pool pool_mypool_80 {
        members {
            1.1.1.1:http {
                address 1.1.1.1
                session monitor-enabled
                state checking
            }
        }
        monitor http and tcp_half_open
    }
    
    • GreenArrow_1457's avatar
      GreenArrow_1457
      Icon for Nimbostratus rankNimbostratus
      So it would look like this instead: monitor vlan100_syn_ack_18190 and vlan100_syn_ack_65000 } ?
    • Hannes_Rapp_162's avatar
      Hannes_Rapp_162
      Icon for Nacreous rankNacreous
      tmsh create ltm pool vlan100-fortuna description "Jabba Pet" members add { 172.31.18.17:18190 172.31.18.18:18190 } monitor vlan100_syn_ack_18190 and vlan100_syn_ack_65000
    • Hannes_Rapp_162's avatar
      Hannes_Rapp_162
      Icon for Nacreous rankNacreous
      You cannot use a space in pool name (I replaced it with: -). As another problem, you cannot just throw in members without specifying a mandatory key-word ('add' or 'replace-all-with' are possible options). Note that in TMSH, you can use question mark or tab keys to help construct your commands in correct format.