Viewing Cluster Failover Statistics

In the R81.10.X releases, this command is available starting from the R81.10.15 version.

Description

This command shows the cluster failover statistics on the Cluster Member:

  • Number of failovers that happened

  • Failover reason

  • The time of the last failover event

Syntax to show the statistics

cphaprob [-l <number>] show_failover

Syntax to reset the statistics

cphaprob -reset {-c | -h} show_failover

Parameters

Parameter

Description

-l <number>

Specifies how many of last failover events to show (between 1 and 50)

count

-c

Resets the counter of failover events

history

-h

Resets the history of failover events

Example 1

[Expert@Member1]# cphaprob show_failover

Last cluster failover event:
   Transition to new ACTIVE:   Member 2 -> Member 1
   Reason:                     ADMIN_DOWN PNOTE
   Event time:                 Sun Sep  8 18:21:44 2019

Cluster failover count:
   Failover counter:           1
   Time of counter reset:      Sun Sep  8 16:08:34 2019 (reboot)


Cluster failover history (last 20 failovers since reboot/reset on Sun Sep  8 16:08:34 2019):

 No. Time:                     Transition:           CPU:  Reason:
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 1   Sun Sep  8 18:21:44 2019  Member 2 -> Member 1  01    ADMIN_DOWN PNOTE

[Expert@Member1]#

Example 2

[Expert@Member1]# cphaprob show_failover

Cluster failover count:
   Failover counter:           0
   Time of counter reset:      Wed Mar 12 00:32:43 2025 (reboot)


Cluster failover history (last 20 failovers since reboot/reset on Wed Mar 12 00:32:43 2025):

 No. Time:                     Transition:           CPU:  Reason:
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

        No failover was detected since last reboot/reset

[Expert@Member1]#