Parameter | Description | Value |
---|---|---|
method |
Displays the operation mode of a specified assistant. |
The value is current, history, verbose. |
name assistant-name |
Specifies the name of a maintenance assistant. |
The value is a string of 1 to 64 case-sensitive characters, spaces not supported. |
default |
Displays information about the default maintenance assistant. |
- |
asstDefName |
Specifies the name of a default maintenance assistant. |
The value is a string of 1 to 64 case-sensitive characters, spaces not supported. |
To view information about a maintenance assistant, run the display ops assistant command.
After an alarm is generated, a log is recorded, or a timer expires, the maintenance assistant can be executed.
A maximum of the latest 100 maintenance assistant executions can be displayed in history information.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display ops assistant current name a1
--------------------------------------------------------
Assistant State Condition Type
--------------------------------------------------------
a1 ready timer command
--------------------------------------------------------
<HUAWEI> display ops assistant history default
Assistant history information
Name : _bfd_mtp.py
Type : script
Default assistant : yes
1. Running information
Trigger condition : subscribe
Trigger event name : --
Trigger time : 2020-03-29 06:38:56
Execute start time : 2020-03-29 06:38:56
Execute end time : 2020-03-29 06:39:19
Execute result : normal
Assistant history information
Name : _bgp_mtp.py
Type : script
Default assistant : yes
1. Running information
Trigger condition : subscribe
Trigger event name : --
Trigger time : 2020-03-29 06:38:56
Execute start time : 2020-03-29 06:38:56
Execute end time : 2020-03-29 06:39:20
Execute result : normal
<HUAWEI> display ops assistant current default
--------------------------------------------------------
Assistant State Condition Type
--------------------------------------------------------
_bgp_mtp.py ready alarm script
_isis_mtp.py ready multiple script
_lacp_mtp.py ready event script
_ldp_mtp.py ready event script
_ospf_mtp.py ready event script
_ospfv3_mtp.py ready event script
--------------------------------------------------------
Item | Description |
---|---|
Assistant | Maintenance assistant ID. |
Assistant history information | Historical information of a maintenance assistant. |
Assistant | Task name. |
State | Status of a maintenance assistant:
|
State | Status of a maintenance assistant.
|
Condition | Trigger conditions for a maintenance assistant to perform tasks. The value can be one of the following:
|
Condition | Trigger conditions for a maintenance assistant to perform tasks.
|
Type | Type of tasks that can be configured for a maintenance assistant. The value can be one of the following:
|
Name | Task name. |
Default assistant | Whether it is the default maintenance assistant.
|
Running information | Running information of a maintenance assistant. |
Trigger condition | Trigger conditions for a maintenance assistant to perform tasks.
"subscribe" indicates that the maintenance assistant has been subscribed to. |
Trigger event name | Name of the event triggering a maintenance assistant task. |
Trigger time | Time when a maintenance assistant task is triggered. |
Execute start time | Time when a maintenance assistant task starts. |
Execute end time | Time when a maintenance assistant task ends. |
Execute result | Result of a maintenance assistant task. |
_bgp_mtp.py | The "BGP_1.3.6.1.2.1.15.0.2 bgpBackwardTransNotification" alarm generated due to BGP peer disconnection triggers the automatic execution of the script. The script performs the ping and tracert operations on the peer IP address and saves the operation results to a diagnostic log, facilitating fault diagnosis. |
_isis_mtp.py | Neighbor relationship disconnection triggers the automatic execution of the scripts. The scripts perform the following operations and record relevant information:
|
_lacp_mtp.py | The script automatically records information such as the cause of the LACP disconnection, facilitating fault diagnosis. |
_ldp_mtp.py | The LDP session Down event triggers the automatic execution of the script. The script pings the peer IP address of the LDP session and saves the ping result and the cause of the session Down event to a diagnostic log, facilitating fault diagnosis. |
_ospf_mtp.py | Neighbor relationship disconnection triggers the automatic execution of the scripts. The scripts perform the following operations and record relevant information:
|
_ospfv3_mtp.py | Neighbor relationship disconnection triggers the automatic execution of the scripts. The scripts perform the following operations and record relevant information:
|