Under the command type F5_LTM_POOL_STATE for F5 devices, the pool and pool members are in the following format:
---------------------------------------------------------------------------------------
Ltm::Pool: XXX
---------------------------------------------------------------------------------------
Status
Availability : XXX
State : XXX
...
--------------------------------------------------------------
| Ltm::Pool Member: XXX
--------------------------------------------------------------
| Status
| Availability : XXX
| State : XXX
...
--------------------------------------------------------------
| Ltm::Pool Member: XXX
--------------------------------------------------------------
| Status
| Availability : XXX
| State : XXX
I am trying to match the pattern to get the pool name and the members under that pool name. I am a little confused as there are multiple pool members under a single pool. Any help is appreciated!