- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
01-Active and Standby Switchover Commands | 71.89 KB |
display switchover state
Syntax
In standalone mode:
display switchover state [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]
In IRF mode:
display switchover state [ chassis chassis-number slot slot-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
slot slot-number: Displays the backup state of a specified card, where slot-number represents the slot number of a card. If the slot-number argument is not specified, the backup state of the active main processing unit (MPU) is displayed. (In standalone mode)
chassis chassis-number slot slot-number: Displays the backup state of a specified card on a specified member switch of an Intelligent Resilient Framework (IRF) fabric. The chassis-number argument represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the member ID and slot number with the display device command. If the slot-number argument is not specified, the backup state of the active MPUs in the IRF fabric is displayed. (In IRF mode)
|: 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 display switchover state to display the backup state of the specified MPU.
Examples
# Display the backup state on the active MPU. (In standalone mode)
<Sysname> display switchover state slot 0
Master HA State to Slot 1: Slave is absent
# Display the backup state on the active MPU of an IRF fabric. (In IRF mode)
<Sysname> display switchover state
Master HA State to Chassis 1 Slot 1: Realtime backup to slave.
Master HA State to Chassis 2 Slot 5: Realtime backup to slave.
Master HA State to Chassis 2 Slot 6: Slave is absent.
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 (in standalone mode). |
Master HA State to Chassis 2 Slot 5 |
Backup state between the active MPU and an standby MPU of the IRF fabric, where 2 represents the member ID of the switch where the standby MPU resides, and 5 represents the number of the slot where the standby MPU resides (in IRF mode). |
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. (In standalone mode)
<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.
# Display the backup state of the standby MPU of the IRF fabric. (In IRF mode)
<Sysname> display switchover state chassis 2 slot 5
Slave HA State: Receiving realtime data.
The output shows that the standby MPU with the member ID 2 and slot number 5 is receiving real-time backup data.
Table 2 Command output
Field |
Description |
Slave HA State |
It indicates that the output 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 ha slave-ignore-version-check 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 undo ha slave-ignore-version-check 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 might result in system failure when the system is running.
|
NOTE: When the switch is operating in IRF mode, this command is not supported. To switch between the standalone mode and IRF mode, use the chassis convert mode irf command. |
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 slave restart to manually restart the standby MPU.
|
NOTE: When the switch is operating in IRF mode, this command is not supported. To switch between the standalone mode and IRF mode, use the chassis convert mode irf command. |
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 slave switchover to manually configure the switchover between the active MPU and standby MPU.
Related commands: slave switchover { disable | enable }.
|
NOTE: When the switch is operating in IRF mode, this command is not supported. To switch between the standalone mode and IRF mode, use the chassis convert mode irf command. |
Examples
# Manually configure the switchover between the active MPU and the standby MPU.
<Sysname> system-view
[Sysname] slave switchover
Caution!!! Confirm to switch slave to master?[Y/N] y
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 switchover between the active MPU and standby MPU.
Description
Use slave switchover disable to disable manual switchover between the active MPU and standby MPU.
Use slave switchover enable to enable manual switchover between the active MPU and standby MPU.
By default, manual configuration of the switchover between the active MPU and standby MPU is enabled.
Related commands: slave switchover.
|
NOTE: When the switch is operating in IRF mode, this command is not supported. To switch between the standalone mode and IRF mode, use the chassis convert mode irf command. |
Examples
# Enable manual switchover between the active MPU and standby MPU.