< Home

display hrp state

Function

The display hrp state command displays configuration parameters and status information of hot standby.

Format

display hrp state [ verbose ]

Parameters

Parameter Description Value
verbose Displays detailed status information of hot standby. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can view status information of hot standby only after running the hrp enable command to enable it.

Example

# 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
Table 1 Description of the display hrp state verbose command output

Item

Description

Role: active, peer: standby

Roles of the local and remote devices
  • Role indicates the role of the local device, which can be active or standby.

  • peer indicates the role of the peer device, which can be active, standby or unknown.

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:
  • If the interfaces monitored by a VGMP group fail, the reduction value is the number of faulty interfaces multiplied by 2.
  • If OSPF/BGP dynamic routes monitored by the VGMP group are faulty, the reduction value is the number of faulty neighbors multiplied by 2.
  • If the links specified in the hrp track ip-link command fail, the reduction value is the number of faulty links multiplied by 2.
  • If the links tracked by the hrp track bfd command fail, the reduction value is the number of faulty links multiplied by 2.

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.
  • off: The function is disabled. The active and standby devices share all NAT resources.
  • primary: The device uses the first half of the NAT resources.
  • secondary: The device uses the second half of the NAT resources.
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:
  • Full: The OSPF neighbor is in Full state.
  • Non-full: The OSPF neighbor is in Non-full state, such as Down, Attempt, or Init.
  • Unknown: When OSPF is running on a neighbor interface monitored by the VGMP group but the OSPF neighbor is in Non-full state, the OSPF neighbor is set to the Unknown state within a timer (configured by the hrp track ospf first-check-delay command), and the VGMP group priority is not adjusted to prevent active/standby device switchovers due to OSPF flapping. If the OSPF neighbor is still in Non-full state after the timer expires, the OSPF state is set to Non-full, and the VGMP group priority is adjusted.

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:
  • Established: The BGP peer is in Established state.
  • Non-established: The BGP peer is in Non-established state, such as Idle, Connect, or Active.
  • Unknown: When a BGP peer monitored by the VGMP group is configured but is in Non-established state, the BGP peer is set to the Unknown state within a timer (configured bt the hrp track bgp first-check-delay command), and the VGMP group priority is not adjusted to prevent active/standby device switchovers due to BGP flapping. The BGP status in the specified hold-off period of the timer is identified as Unknown, and the VGMP group priority is not adjusted. If the BGP peer is still in Non-established state after the timer expires, the BGP state is set to Non-established, and the VGMP group priority is adjusted.
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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >