Forum Discussion
What is the command in tmsh to find out all the pools that are associated to monitor "tcp"?
What is the command in tmsh to find out all the pools that are associated to monitor "tcp"?
- (tmos)
Go to Bash shellrun util bash
- (bash)
Print out names of all LTM pools associated with the 'tcp' health-check monitortmsh list ltm pool one-line | grep 'monitor tcp ' | awk '{ print $3 }'
- (tmos)
- Vijay_ECirrus
(tmos.ltm)show pool all | grep "Monitor\|Pool:"
(tmos.ltm) list pool | grep "pool\|monitor "
This should give you all the pools and the associated monitor. You can copy the output and utilize sed/awk/egrep to obtain the relevant information. You can also try to execute the tmsh command from bash and try and utilize sed/awk/egrep to obtain the output you desire.
- Hannes_Rapp_162Nacreous
- (tmos)
Go to Bash shellrun util bash
- (bash)
Print out names of all LTM pools associated with the 'tcp' health-check monitortmsh list ltm pool one-line | grep 'monitor tcp ' | awk '{ print $3 }'
- khansafdarali1_Nimbostratus
Syntax Error: "awk", grep is currently the only filter that is supported
- Hannes_Rapp_162Nacreous
You execute that command in Bash shell, not in TMOS. See command 1 to switch to Bash.
If you don't have sufficient rights for Bash shell, you can't use the awk command to filter the output to just pool names.
- khansafdarali1_Nimbostratus
Great Thanks.
- (tmos)
- Hannes_RappNimbostratus
- (tmos)
Go to Bash shellrun util bash
- (bash)
Print out names of all LTM pools associated with the 'tcp' health-check monitortmsh list ltm pool one-line | grep 'monitor tcp ' | awk '{ print $3 }'
- khansafdarali1_Nimbostratus
Syntax Error: "awk", grep is currently the only filter that is supported
- Hannes_RappNimbostratus
You execute that command in Bash shell, not in TMOS. See command 1 to switch to Bash.
If you don't have sufficient rights for Bash shell, you can't use the awk command to filter the output to just pool names.
- khansafdarali1_Nimbostratus
Great Thanks.
- (tmos)
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