Forum Discussion
11 Replies
- 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)