Forum Discussion
GreenArrow_1457
Nimbostratus
Apr 26, 2016What 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.
is what you're looking for.and(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
- Hannes_Rapp
Nimbostratus
is what you're looking for.and(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
Nimbostratus
So it would look like this instead: monitor vlan100_syn_ack_18190 and vlan100_syn_ack_65000 } ? - Hannes_Rapp
Nimbostratus
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
Nimbostratus
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.
- Hannes_Rapp_162
Nacreous
is what you're looking for.and(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
Nimbostratus
So it would look like this instead: monitor vlan100_syn_ack_18190 and vlan100_syn_ack_65000 } ? - Hannes_Rapp_162
Nacreous
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
Nacreous
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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects