display ha service-group

Use display ha service-group to display the location and status of a service group.

Syntax

display ha service-group { program-name [ instance instance-name ] | all }

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

program-name: Specifies a service group by its name, a case-insensitive string of 1 to 15 characters.

all: Specifies all service groups running on the device.

instance instance-name: Specifies an instance by its name, a case-insensitive string of 1 to 15 characters. Whether or not a service group has multiple instances depends on the system software.

Examples

# Display the location and status of all service groups.

<Sysname> display ha service-group all
Service Group                     Current Location      State
-------------------------------------------------------------------------------
ospf                              1/0                   Realtime Backup
bgp                               1/0                   Batch Backup
isis                              1/0                   Stopping
rip                               1/0                   Realtime Backup
ripng                             1/0                   Upgrading
staticroute                       1/0                   Batch Backup

# Display the location and status of the specified service group.

<Sysname> display ha service-group staticroute
Service Group                     Current Location      State
------------------------------------------------------------------------------
staticroute                       1/0 (Active)          Batch Backup

  Detailed information about services of the program:
  Service           PID    Type      Location   State
  -------------------------------------------------------------
  ifm               200    Active    1/0        Realtime Backup
  staticroute       200    Active    1/0        Batch Backup
  ifm               200    Standby   2/0        Realtime Backup
  staticroute       200    Standby   2/0        Batch Backup

The output shows the following:

Table 49: Command output

Field

Description

Service Group

Service group name.

Type

Process type: active or standby.

Service

Service name.

State

Process status:

  • Realtime Backup

  • Batch Backup

  • Stopping

  • Degrading

  • Upgrading