The display hrp state command displays configuration parameters and status information of hot standby.
| Parameter | Description | Value |
|---|---|---|
| verbose | Displays detailed status information of hot standby. | - |
You can view status information of hot standby only after running the hrp enable command to enable it.
# Display status information of hot standby.
HRP_M<sysname> display hrp state
Role: active, peer: standby
Running priority: 45000, peer: 45000
Backup channel usage: 0.00%
Stable time: 0 days, 0 hours, 11 minutes
Last state change information: 2016-05-06 14:31:24 HRP core state changed, old_state = abnormal(active), new_state = normal, local_priority = 45000, peer_priority = 45000.
# Display detailed status information of hot standby.
HRP_M<sysname> display hrp state verbose Role: active, peer: standby Running priority: 45000, peer: 45000 Backup channel usage: 0.00% Stable time: 0 days, 0 hours, 11 minutes Last state change information: 2016-05-06 14:31:24 HRP core state changed, old_state = abnormal(active), new_state = normal, local_priority = 45000, peer_priority = 45000. Configuration: hello interval: 1000ms preempt: 60s mirror configuration: off mirror session: off track trunk member: on auto-sync configuration: on auto-sync connection-status: on adjust ospf-cost: on adjust ospfv3-cost: on adjust bgp-cost: on nat resource: off Detail information: GigabitEthernet0/0/2 vrrp vrid 1: active IP-Link abc(VSYS:public): up BFD session 1: up vlan 20: enable GigabitEthernet0/0/3: up ospf-cost: +0 ospfv3-cost: +0 bgp-cost: +0
Item |
Description |
|---|---|
Role: active, peer: standby |
Roles of the local and remote devices
If the hot standby function is disabled on the remote device (the hrp enable command is not used), no heartbeat interface is configured, or the configured heartbeat interface fails, the role of the remote device is unknown. In the active/standby networking, Role: active, peer: standby is displayed on the active device, and Role: standby, peer: active is displayed on the standby device. In the load balancing networking, Role: active, peer: active is displayed on both devices. If the hot standby status is abnormal, the current and original roles of the local and remote devices are displayed. For example, in the active/standby networking, if the active device fails, its role information is Role: standby, peer: active (should be "active-standby"). If the hrp switch command is used to switch the devices, the switchover information and current roles are displayed. For example, after the hrp switch active command is used on the standby device, Role: active, peer: standby ("hrp switch active" on this device) is displayed on the device. |
Running priority: 45000, peer: 45000 |
VGMP group priority of the local and remote devices. In normal conditions, the local and remote devices have the same VGMP group priority (initial priority). The VGMP group initial priority is 45000. If the FW fails, its priority decreases from the initial priority. The reduction
value differs according to the fault type:
|
Backup channel usage |
Indicates the bandwidth usage of the current heartbeat interface. If the current heartbeat interface is an Eth-Trunk interface, the Backup channel usage field displays the bandwidth usage of the busiest member interface of the Eth-Trunk interface. |
Stable time |
Stable running time, which means the time span since the last HRP status or priority change. This value indicates whether the HRP status changes or a fault occurs recently. |
Last state change information |
Information about the last status switching of the local VGMP group. |
| hello interval: 1000ms | Interval at which VGMP packets, HRP heartbeat packets, and HRP link detection packets are sent. The configuration command is hrp timer hello. |
| preempt: 60s | VGMP group preemption hold-off time. The configuration command is hrp preempt. |
| mirror configuration: off | Status of the mirroring mode. The configuration command is hrp mirror config enable. |
| mirror session: off | Status of quick session backup. The configuration command is hrp mirror session enable. |
| track trunk member: off | Status of the function that VGMP tracks Eth-Trunk member interfaces. The configuration command is hrp track trunk-member enable. |
| auto-sync configuration: on | Status of the configuration auto synchronization function. The configuration command is hrp auto-sync config. |
| auto-sync connection-status: on | Status of the connection status auto synchronization function. The configuration command is hrp auto-sync connection-status. |
| adjust ospf-cost: on | Status of the function of adjusting the cost values of OSPF routes based on the active/standby state. The configuration command is hrp adjust ospf-cost enable. |
| adjust ospfv3-cost: on | Status of the function of adjusting the cost values of OSPFv3 routes based on the active/standby state. The configuration command is hrp adjust ospfv3-cost enable. |
| adjust bgp-cost: on | Status of the function of adjusting the cost values of BGP routes based on the active/standby state. The configuration command is hrp adjust bgp-cost enable. |
| nat resource: off | Status
of the function of using NAT resources (including public IP addresses
and public ports) segment by segment.
|
| GigabitEthernet0/0/2 vrrp vrid 1: active | VRRP backup group to which the interface belongs. The configuration command is vrrp vrid. |
| IP-Link abc(VSYS:public): up | Status of the IP-link tracked by the VGMP group. The configuration command is hrp track ip-link. |
| BFD session 1: up | Status of the BFD session tracked by the VGMP group. The configuration command is hrp track bfd-session. |
| vlan 20: enable | Status of the VLAN tracked by the VGMP group. The configuration command is hrp track vlan. |
| GigabitEthernet0/0/3: up | Status of the interface tracked by the VGMP group. The configuration command is hrp track interface. |
GigabitEthernet0/0/4(OSPF peer IP: peer-address): ospf-state |
Status of an OSPF neighbor tracked by the VGMP group. The configuration command is hrp track ospf. The value of ospf-state can be:
|
BGP peer IP(peer-address): bgp-state |
Status of a BGP peer tracked by the VGMP group. The configuration command is hrp track bgp. The value of bgp-state can be:
|
| ospf-cost: +0 | Cost value of OSPF routes. If two FWs work in active/standby mode, the cost value of the active device is +0, indicating that the cost value of OSPF routes is subject to the configuration and not adjusted. The cost value of OSPF routes on the standby device is +65500 by default, controlled by the hrp adjust ospf-cost enable command, indicating that the cost value of OSPF routes is 65500. If two FWs work in load balancing mode, the cost values of OSPF routes on both devices are +0. |
| ospf-cost add: +100 | Added cost value of OSPF routes. If two FWs work in active/standby mode, the added cost value of the active device is +0, indicating that the cost value of OSPF routes is subject to the configuration and not adjusted. This value of the standby device is controlled by the hrp adjust ospf-cost enable add command. If the value is +100, the cost value of OSPF routes increases by 100. If two FWs work in load balancing mode, the added cost values of OSPF routes on both devices are +0. |
| ospfv3-cost: +0 | Cost value of OSPFv3 routes. If two FWs work in active/standby mode, the cost value of the active device is +0, indicating that the cost value of OSPFv3 routes is subject to the configuration and not adjusted. The cost value of OSPFv3 routes on the standby device is +65500 by default, controlled by the hrp adjust ospf-cost enable command, indicating that the cost value of OSPFv3 routes is 65500. If two FWs work in load balancing mode, the cost values of OSPF routes on both devices are +0. |
| bgp-cost: +0 | Added MED value of BGP routes. If two FWs work in active/standby mode, the added MED value of the active device is +0, indicating that the MED value of BGP routes is subject to the configuration and not adjusted. The added MED value of BGP routes on the standby device is +100 by default, controlled by the hrp adjust bgp-cost enable command, indicating that the MED value of BGP routes increases by 100. If two FWs work in load balancing mode, the cost values of OSPF routes on both devices are +0. |