- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
01-Active and Standby Switchover Commands | 61.31 KB |
display switchover state
Syntax
display switchover state [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
slot slot-number: Specifies the slot number of the active main processing unit (MPU) or standby MPU.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display switchover state command to display the switchover state of the specified main board.
This command displays the switchover state on the active MPU or the standby MPU depending on the slot number specified. The switchover state of the active MPU is displayed if no slot number is specified.
Examples
# Display the backup state on the active MPU.
<Sysname> display switchover state
Master HA State to Slot [1]: Realtime backup to slave.
Field |
Description |
Master HA State to Slot 1 |
Backup state between the active MPU and the standby MPU, where 1 represents the number of the slot where the standby MPU resides. |
Slave is absent |
The standby MPU is not in the slot. |
Waiting batch backup request from slave |
Waiting for the batch backup requests from the standby MPU. |
Batch backup |
Batch backup state. |
Realtime backup to slave |
Real-time backup state. |
Slave is smooth |
Data smoothing state. |
# Display the backup state on the standby MPU in slot 1.
<Sysname> display switchover state slot 1
Slave HA State: Receiving realtime data.
The output shows that the standby MPU is slot 1 is receiving real-time backup data.
Table 2 Output description
Field |
Description |
Slave HA State |
It indicates that the output information is generated by the standby MPU and it describes the switchover state of the standby MPU. |
Waiting |
The standby MPU is in the slot and waiting to enter batch backup state. |
ha slave-ignore-version-check
Syntax
ha slave-ignore-version-check
undo ha slave-ignore-version-check
View
System view
Default level
2: System level
Parameters
None
Description
Use the ha slave-ignore-version-check command to ignore version check of the standby MPU, meaning not to check whether the version of the standby MPU is consistent with that of the active MPU.
Use the undo ha slave-ignore-version-check command to enable version check of the standby MPU.
By default, version check of the standby MPU is enabled.
Inconsistency of the software version of the active MPU and standby MPU may result in system failure when the system is running.
Examples
# Ignore version check of the standby MPU.
<Sysname> system-view
[Sysname] ha slave-ignore-version-check
slave restart
Syntax
slave restart
View
System view
Default level
2: System level
Parameters
None
Description
Use the slave restart command to manually configure the standby MPU to restart.
When the backup system program operates abnormally and needs to be reloaded, you can manually restart the standby MPU.
Examples
# Restart the standby MPU.
<Sysname> system-view
[Sysname] slave restart
The slave will reset! Continue?[Y/N]:y
slave switchover
Syntax
slave switchover
View
System view
Default level
2: System level
Parameters
None
Description
Use the slave switchover command to manually configure the switchover between the active MPU and standby MPU.
Related commands: slave switchover { disable | enable }.
Examples
# Manually configure the switchover between the active MPU and the standby MPU.
<Sysname> system-view
[Sysname] slave switchover
Caution!!! Confirm switch slave to master?[Y/N] y
ZBB_TEST
Starting...
RAM Line....OK
slave switchover { disable | enable }
Syntax
slave switchover { disable | enable }
View
System view
Default level
2: System level
Parameters
disable: Disables manual switchover between the active MPU and standby MPU.
enable: Enables manual configuration of the switchover between the active MPU and standby MPU.
Description
Use the slave switchover disable command to disable manual switchover between the active MPU and standby MPU.
Use the slave switchover enable command to enable manual switchover between the active MPU and standby MPU.
By default, manual switchover between the active MPU and standby MPU is enabled.
Related commands: slave switchover.
Examples
# Enable manual switchover between the active MPU and standby MPU.