Solved
Forum Discussion
Hannes_Rapp
Oct 11, 2016Nimbostratus
- (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_Oct 11, 2016Nimbostratus
Syntax Error: "awk", grep is currently the only filter that is supported
- Hannes_RappOct 11, 2016Nimbostratus
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_Oct 11, 2016Nimbostratus
Great Thanks.
- crodriguezOct 11, 2016Ret. Employee
You can also view monitor instances (at the pool member level) using:
tmsh show /ltm monitor tcp
For example, to show all pool members where the default F5 monitor named "http" is applied:
tmsh show /ltm monitor http http ------------------------- LTM::Monitor /Common/http ------------------------- Destination: 172.16.20.1:80 State time: up for 0hr:5mins:38sec | Last error: N/A @2016.10.11 13:49:09 Destination: 172.16.20.2:80 State time: up for 0hr:5mins:38sec | Last error: N/A @2016.10.11 13:49:09 Destination: 172.16.20.3:80 State time: up for 0hr:5mins:38sec | Last error: N/A @2016.10.11 13:49:09