Forum Discussion

cmcnicholas's avatar
Jan 11, 2024

Pool downtime query

I have four pool members which are marked down and I am interested to know when exactly this happened.

I know in the Common partition I can just issue a show ltm pool members command.

But these pools exist in a different partition (for this query I will call it partitionA)

So I do cd /PartitionA

and issue the same command show ltm pool members

But no info is displayed, it just returns to command line.

What is the correct way to see the pool downtime of all pools in PartitionA ?
Thanks.

  • You can check the LTM logs using the following commands (this will show you when a pool member was marked up or down).

     

    run util bash
    
    cat /var/log/ltm | grep Pool | grep status
    cat /var/log/ltm.1 | grep Pool | grep status
    zcat /var/log/ltm*gz | grep Pool | grep status

     

     If you have a health check monitor applied to the pool, then you can also check its status.

    For example:

     

    show ltm monitor tcp tcp

     

    This will provide output similar to the following:

     

    --------------------------
     LTM::Monitor /Common/tcp
    --------------------------
       Destination:  172.24.32.11:80
       State time:   up for 40hrs:47mins:43sec
       |   Last error:   No successful responses received before deadline. @2024.01.09 22:35:07
    
       Destination:  172.24.32.11:443
       State time:   up for 149hrs:50mins:46sec
       |   Last error:   N/A @2024.01.05 09:32:04

     

     

     

  • The commands you used work in my home lab. Are the pools located in a subfolder of PartitionA (e.g. /PartitionA/subfolder)? That could be the reason why you are not getting any information back.

    Try each of the following commands from the /Common partition to see if you get any results:

    show ltm pool /PartitionA/* members
    show ltm pool /PartitionA/subfolder/* members
    show ltm pool /*/*/* members

     

    • cmcnicholas's avatar
      cmcnicholas
      Icon for Cirrus rankCirrus

      Thank you! I can now see the affected pool members which are down.

      But is there a command which will show when exactly they went down? Maybe such a command does not exist?

  • You can check the LTM logs using the following commands (this will show you when a pool member was marked up or down).

     

    run util bash
    
    cat /var/log/ltm | grep Pool | grep status
    cat /var/log/ltm.1 | grep Pool | grep status
    zcat /var/log/ltm*gz | grep Pool | grep status

     

     If you have a health check monitor applied to the pool, then you can also check its status.

    For example:

     

    show ltm monitor tcp tcp

     

    This will provide output similar to the following:

     

    --------------------------
     LTM::Monitor /Common/tcp
    --------------------------
       Destination:  172.24.32.11:80
       State time:   up for 40hrs:47mins:43sec
       |   Last error:   No successful responses received before deadline. @2024.01.09 22:35:07
    
       Destination:  172.24.32.11:443
       State time:   up for 149hrs:50mins:46sec
       |   Last error:   N/A @2024.01.05 09:32:04

     

     

     

    • cmcnicholas's avatar
      cmcnicholas
      Icon for Cirrus rankCirrus

      Brilliant. Thanks a lot for your help. I got exactly what I needed.

  • I think I found a way to get what I'm looking for.
    So I did bash

    zegrep -i "monitor.*status" /var/log/ltm*

    This gave me a lot of info that I was able to export. I then filtered for the specific pools I am interested in and can see the date and time when the pool went down.

    /domain_tenant/domain_443/domain_443_https_ABC_pool member /Common/IP_ADDRESS_443 monitor status unchecked. [  ]  [ was up for 647hrs:43mins:41sec ]

    /var/log/ltm.7.gz:Jan  4 10:54:11 F5 notice mcpd[11155]: 01070638:5: Pool