display ops assistant

Function

The display ops assistant command displays information about a maintenance assistant.

Format

display ops assistant method [ name assistant-name ]

display ops assistant method default [ name asstDefName ]

Parameters

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.

Views

All views

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ops read

Usage Guidelines

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.

  • The alarm contents are displayed in the xml format.
  • The log contents are displayed in the log file format.
  • The timer is displayed in the time format.

A maximum of the latest 100 maintenance assistant executions can be displayed in history information.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display information about the maintenance assistant that is being executed.
<HUAWEI> display ops assistant current name a1
--------------------------------------------------------
Assistant          State      Condition         Type    
--------------------------------------------------------
a1                 ready      timer             command 
--------------------------------------------------------
# Display history information about a maintenance assistant.
<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
# Display information about the default maintenance assistant.
<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  
--------------------------------------------------------
Table 1 Description of the display ops assistant command output
Item Description
Assistant

Maintenance assistant ID.

Assistant history information

Historical information of a maintenance assistant.

Assistant

Task name.

State

Status of a maintenance assistant:

  • running: the maintenance assistant is being executed.
  • pending: the process has been activated but not executed.
  • idle: the maintenance assistant is not executed.
State

Status of a maintenance assistant.

  • Init: The maintenance assistant is in the initialized state after being created.
  • Ready: The maintenance assistant is ready for tasks.
  • Pending: The maintenance assistant has been triggered by events and is waiting for scheduling.
  • Running: The maintenance assistant is running.
Condition

Trigger conditions for a maintenance assistant to perform tasks. The value can be one of the following:

  • Timer.
  • Event.
  • Alarm.
  • Syslog.
  • SNMP-notification.
Condition

Trigger conditions for a maintenance assistant to perform tasks.

  • Timer.
  • Event.
  • Alarm.
  • Syslog.
  • SNMP-notification.
  • Multiple.
Type

Type of tasks that can be configured for a maintenance assistant. The value can be one of the following:

  • Script.
  • Command.
Name

Task name.

Default assistant

Whether it is the default maintenance assistant.

  • No.
  • Yes.
Running information

Running information of a maintenance assistant.

Trigger condition

Trigger conditions for a maintenance assistant to perform tasks.

  • Timer.
  • Event.
  • Alarm.
  • Syslog.
  • SNMP-notification.

"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:

  • Ping the IP address of the neighbor to determine the network status.
  • Query IPC/VP packet loss statistics to determine whether inter-board communication is abnormal.
  • Query CP-CAR statistics to determine whether packet loss occurs.
  • Query the CPU usage.
  • Query the reachability of routes to neighbors.
_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:

  • Ping the IP address of the neighbor to determine the network status.
  • Query IPC/VP packet loss statistics to determine whether inter-board communication is abnormal.
  • Query CP-CAR statistics to determine whether packet loss occurs.
  • Query the CPU usage.
  • Query the reachability of routes to neighbors.
_ospfv3_mtp.py

Neighbor relationship disconnection triggers the automatic execution of the scripts. The scripts perform the following operations and record relevant information:

  • Ping the IP address of the neighbor to determine the network status.
  • Query IPC/VP packet loss statistics to determine whether inter-board communication is abnormal.
  • Query CP-CAR statistics to determine whether packet loss occurs.
  • Query the CPU usage.
  • Query the reachability of routes to neighbors.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >