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)
11 Replies
- Vijay_E
Cirrus
(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_162
Nacreous
- (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_162
Nacreous
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_Rapp
Nimbostratus
- (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
Nimbostratus
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