Forum Discussion

Matt_Pitts_6390's avatar
Matt_Pitts_6390
Icon for Nimbostratus rankNimbostratus
Apr 18, 2017

Get how long a pool member has been down from API

I see in the log messages that the LTM is keeping track of how long a pool member is down because when I see pool member up messages it tells you how long it was down. I'm looking for a way to probe that counter from the API so that I can generate a list of pool members that have been down longer than X length of time. I don't see anything in the iControl response (GET https:///mgmt/tm/ltm/pool//members/stats) or in the TMSH command (show ltm pool members) that looks like a timer.

 

1 Reply

  • Try "tmsh show ltm monitor " It produces output similar to this:

    root@(bigip4)(cfg-sync Changes Pending)(Active)(/Common)(tmos) show ltm monitor http http all-properties
    ---------------------------
    LTM::Monitor /Common/http
    ---------------------------
    Destination:  172.16.20.1:80
    State time:   up for 0hr:3mins:8sec
    |   Last error:   N/A @2017.04.18 15:28:58
    
    Destination:  172.16.20.2:80
    State time:   up for 0hr:3mins:8sec
    |   Last error:   N/A @2017.04.18 15:28:58
    
    Destination:  172.16.20.3:80
    State time:   up for 0hr:3mins:8sec
    |   Last error:   N/A @2017.04.18 15:28:58