< Home

ops abort

Function

The ops abort command stops all OPS Python scripts.

Format

ops abort

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If commands cannot be entered on the switch due to OPS Python script exceptions, run the ops abort command to stop all OPS Python scripts to make the switch work properly.

Prerequisites

Running the ops abort command on the master switch will not be captured by the CLI event subscription API (ops.cli.subscribe), but running this command on the standby switch will be captured by this API.

Follow-up Procedure

To restore the OSPF function, perform the following operations:
  1. Run the system-view command to enter the system view.
  2. Run the ops command to enter the OPS view.
  3. Run the undo script-assistant python script-name command to delete the assistant of the abnormal Python script.
  4. Run the return command to return to the user view.
  5. Run the ops uninstall file script-name command to uninstall the abnormal Python script.
  6. Run the system-view command to enter the system view.
  7. Run the ops command to enter the OPS view.
  8. Run the undo assistant scheduler suspend command to enable the OPS assistant to restore the OPS function.

Example

# Stop all OPS Python scripts.

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