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:
The active process of service group staticroute is running on IRF member device 1, and is in batch backup state.
The standby process is running on IRF member device 2.
The service group has two services ifm and staticroute with PID 200. ifm is in real-time backup state, and staticroute is in batch backup state.
Table 49: Command output
Field | Description |
---|---|
Service Group | Service group name. |
Type | Process type: active or standby. |
Service | Service name. |
State | Process status:
|