< Home

OPSA/3/OPS_CLI_SUBSCRIBE_FAIL

Message

OPSA/3/OPS_CLI_SUBSCRIBE_FAIL: Failed to subscribe to the CLI event using the script. (Script="[script-name]", event="[event-name]", expression="[expression]", enter=[enter], sync=[sync], async_skip=[async_skip], sync_wait=[sync_wait])

Description

Failed to subscribe the command line event using a user script.

Parameters

Parameter Name Parameter Meaning
[script-name] Indicates a user script name.
[event-name] Indicates an event name.
expression Indicates the regular expression that matches commands.
enter Indicates the time when to match a regular expression:
  • True: A regular expression is matched immediately after Enter is pressed.

  • False: If an abbreviated keyword is specified in a command, a complete keyword will be matched against a regular expression.

sync Indicates whether to wait until the execution of scripts is complete after the command triggers an event:
  • True: yes

  • False: no

async_skip Indicates whether to skip the original command when the sync value is False:
  • True: yes

  • False: no

sync_wait Indicates the time taken by a command to wait for the execution of scripts if the sync value is True.

Possible Causes

In the subscription phase of the user script, parameters of the Command Line Event Subscription API (ops.cli.subscribe) are incorrect.

Procedure

  1. In the subscription phase of the user script, parameters of the Command Line Event Subscription API (ops.cli.subscribe) are incorrect. You need to modify the script.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >