No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Maintenance Assistant Commands

Maintenance Assistant Commands

assistant

Function

The assistant command creates a command assistant and enters the assistant view.

The undo assistant command deletes a command assistant.

By default, no command assistant exists in the system.

Format

assistant task-name

undo assistant task-name

Parameters

Parameter Description Value
task-name Specifies the name of an assistant.

The value is a string of 1 to 15 case-sensitive characters without spaces. The character string can contain letters, digits, and underscores (_), and must start with a letter.

Views

OPS view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can configure the trigger condition and task for a command assistant. When the trigger condition is met, the system automatically runs the specified commands. This function improves system operability.

Precautions

  • The OPS supports a maximum of 100 command assistants.

  • A command assistant is ready after a trigger condition and a task are configured for it. When the trigger condition is met, the assistant performs the configured task.

  • If trigger conditions of multiple assistants are met, tasks of the assistants are queued in line. An assistant that is executing or waiting to execute is not queued again.

  • If one condition triggers multiple assistants, these assistants are executed in any sequence.

  • If you change the trigger condition of a running assistant, the task of the assistant is interrupted and will be executed again when the new trigger condition is met.

  • It is recommended that you run the shutdown (assistant view) command to stop a command assistant before modifying its configuration.

Example

# Create a command assistant test and enter its view.

<HUAWEI> system-view
[~HUAWEI] ops
[~HUAWEI-ops] assistant test
[*HUAWEI-ops-assistant-test] 

assistant scheduler suspend

Function

The assistant scheduler suspend command disables the maintenance assistant function.

The undo assistant scheduler suspend command enables the maintenance assistant function.

By default, the maintenance assistant function is enabled.

Format

assistant scheduler suspend

undo assistant scheduler suspend

Parameters

None

Views

OPS view

Default Level

3: Management level

Usage Guidelines

If the maintenance assistant function is no longer needed, you can use this command to disable this function. After you run this command, none of assistants will run again.

Example

# Disable the maintenance assistant function.

<HUAWEI> system-view
[~HUAWEI] ops
[~HUAWEI-ops] assistant scheduler suspend

condition alarm level

Function

The condition alarm level command sets an alarm severity that will trigger a command assistant.

The undo condition command deletes the trigger condition of a command assistant.

By default, a command assistant has no trigger condition.

Format

condition alarm level compare-operator level-name

undo condition

Parameters

Parameter Description Value
compare-operator

Specifies a comparison operator.

The enumerated values include:
  • eq: equal

  • ge: larger than or equal to

  • gt: larger than

  • le: smaller than or equal to

  • lt: smaller than

  • ne: unequal

level-name

Specifies an alarm severity.

The enumerated values include:
  • Critical

  • Major

  • Minor

  • Warning

Views

Assistant view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can specify an alarm severity as the trigger condition of a command assistant. When an alarm of the specified severity occurs, the assistant performs the configured task.

Precautions

Each assistant can have only one trigger condition.

Example

# Configure the assistant config to run when a critical alarm is generated.

<HUAWEI> system-view
[~HUAWEI] ops
[~HUAWEI-ops] assistant config
[*HUAWEI-ops-assistant-config] condition alarm level eq critical
Related Topics

condition name

Function

The condition name command specifies an alarm or event that will trigger a command assistant.

The undo condition command deletes the trigger condition of a command assistant.

By default, a command assistant has no trigger condition.

Format

condition { alarm [ start | end ] | event } feature feature-name name name [ para-name para-compare-type para-value ] & <1-4> [ occurs occur-timers [ period period-value ] ]

undo condition

Parameters

Parameter Description Value
alarm

Configures an alarm as the trigger condition of the assistant.

-
start Indicates the starting of an alarm as the triggering condition. -
end Indicates the ending of an alarm as the triggering condition. -
event

Configures an event as the trigger condition of the assistant.

-
feature feature-name

Specifies the feature that will trigger the assistant.

This parameter has enumerated values. Select one from the displayed values.

name name

Specifies the name of the alarm or event that will trigger the assistant.

This parameter has enumerated values. Select one from the displayed values.

para-name Specifies the name of an alarm or event. The value is a string of 1 to 63 case-sensitive characters, spaces not supported. The para-name must already exist.
para-compare-type Specifies the type of the comparison between the configuration parameters and the parameters reported by an alarm or event.
The value can be:
  • eq: equal to
  • ne: not equal to
  • It: less than
  • le: less than or equal to
  • gt: greater than
  • ge: greater than or equal to
para-value Specifies the parameter value of an alarm or event. The value is a string of 1 to 63 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
occurs occur-timers Specifies the number of times an alarm or event is generated. The value is an integer ranging from 1 to 32.
period period-value Specifies the period during which alarms or events are generated. The value is an integer ranging from 1 to 4294967295.

Views

Assistant view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can specify an alarm or event as the trigger condition of a command assistant. When the specified alarm or event occurs, the assistant performs the configured task.

You can use this command to configure an alarm or event as the trigger condition of a command assistant. It is recommended that you use an alarm or event associated with an assistant to trigger the assistant. For example, if an assistant is configured to reset power modules, you can configure a power alarm as the trigger condition of the assistant.

Precautions

  • Each assistant can have only one trigger condition.

  • If a command alarm is configured as the trigger condition of an assistant, both the alarm and the corresponding clear alarm can trigger the assistant.

  • For the modules and names of the corresponding alarms and events, see the alarm and log manuals.

Example

# Set the trigger condition of a command assistant to the LinkDown alarm.

<HUAWEI> system-view
[~HUAWEI] ops
[~HUAWEI-ops] assistant task
[*HUAWEI-ops-assistant-task] condition alarm feature ifnet name linkDown
Related Topics

condition snmp-notification

Function

The condition snmp-notification command configures an SNMP trap OID as the triggering condition of a command assistant.

The undo condition command cancels the configuration.

By default, no triggering condition is configured for a command assistant.

Format

condition snmp-notification oid oid [ int-compare oid-int-value ]

undo condition

Parameters

Parameter Description Value
oid oid

Specifies the OID of an SNMP trap.

The value is an integer ranging from 1 to 127.
int-compare

Specifies the type of the comparison between the OID of the generated SNMP trap and the configured SNMP trap OID.

The value can be:
  • eq: equal to
  • ne: not equal to
  • It: less than
  • le: less than or equal to
  • gt: greater than
  • ge: greater than or equal to
oid-int-value Specifies an OID expressed in numbers. The value is an integer ranging from -2147483648 to 2147483647.

Views

Maintenance assistant view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

After a command assistant is created, a triggering condition must be specified so that the assistant can be automatically operated as long as the triggering condition is met.

To configure an SNMP trap OID as the triggering condition of a command assistant, run the condition snmp-notification command.

Precautions

A command assistant can be configured with only one triggering condition.

Example

# Configure a command assistant to be triggered based on the OID 1.3.6.1.4.1.2011.5.25.136.1.6.8.

<HUAWEI> system-view
[~HUAWEI] ops
[~HUAWEI-ops] assistant task
[*HUAWEI-ops-assistant-task] condition snmp-notification oid 1.3.6.1.4.1.2011.5.25.136.1.6.8

condition syslog pattern

Function

The condition syslog pattern command configures Syslogs as the triggering condition for a command assistant.

The undo condition command cancels the configuration.

By default, no triggering condition is configured for a command assistant.

Format

condition syslog pattern regexp [ occurs occur-timers [ period period-value ] ]

undo condition

Parameters

Parameter Description Value
regexp

Specifies the formula expression of a Syslog.

The value is a string of 1 to 255 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
occurs occur-timers

Specifies the number of times a Syslog is generated.

The value is an integer ranging from 1 to 32.
period period-value Specifies the period during which a Syslog is generated. The value is an integer ranging from 1 to 4294967295.

Views

Maintenance assistant view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

After a command assistant is created, a triggering condition must be specified so that the assistant can be automatically operated as long as the triggering condition is met.

To trigger an assistant based on a Syslog, run the condition syslog pattern command.

Precautions

A command assistant can be configured with only one triggering condition.

Example

# Configure the assistant to be triggered based on Syslog hwClockChanged.

<HUAWEI> system-view
[~HUAWEI] ops
[~HUAWEI-ops] assistant task
[*HUAWEI-ops-assistant-task] condition syslog pattern .*hwClockChanged.*

condition timer cron

Function

The condition timer cron command sets the execution time of a command assistant.

The undo condition command deletes the trigger condition of a command assistant.

By default, no execution time is configured for a command assistant.

Format

condition timer cron minutes hours days-of-month months days-of-week [ years ]

undo condition

Parameters

Parameter Description Value
minutes

Specifies the minutes in the assistant execution time.

The value is a string in cron time format. If the value is an integer, it ranges from 0 to 59.

hours

Specifies the hours in the assistant execution time.

The value is a string in cron time format. If the value is an integer, it ranges from 0 to 23.

days-of-month

Specifies the date in the assistant execution time.

The value is a string in cron time format. If the value is an integer, it ranges from 1 to 31 (varies according to the month). This parameter is exclusive with days-of-week. At least one of the two parameters must be set to *.

months

Specifies the month in the assistant execution time.

The value is a string in cron time format. If the value is an integer, it ranges from 1 to 12.

days-of-week

Specifies the weekday in the assistant execution time.

The value is a string in cron time format. If the value is an integer, it ranges from 0 to 7. The values 0 and 7 represent Sunday, and the values 1 to 6 represent Monday to Saturday. This parameter is exclusive with days-of-month. At least one of the two parameters must be set to *.

years

Specifies the year in the assistant execution time.

The value is a string in cron time format. If the value is an integer, it ranges from 2000 to 2099. This parameter is optional. If it is not specified, the assistant execution time applies to all the years between 2000 and 2099.

Views

Assistant view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can set a specific execution time for a command assistant. Then the assistant performs the configured task at the specified time.

The execution time is expressed in the cron syntax defined in UNIX or Linux. The commonly used time format (hh:mm:ss dd-mm-yyyy) only represents a specific time, whereas the cron time format is more flexibly. The cron time format can present a single time value, multiple time values, a time range, or cycle time. Valid characters in the cron time format include digits 0 to 9, and special characters asterisk (*), hyphen (-), slash (/), and comma (,).

Table 5-91 describes use of the cron time format.

Table 5-91  Use of the cron time format

Usage Scenario

Expression

Description

Example

Specify a single time value.

time

The value is an integer that specifies a specific time.

The condition timer cron 0 1 2 5 * 2012 command sets the assistant execution time to 1:00 on 2012-05-02, Wednesday.

Specify multiple time values.

time1,time2,time3

Each field is an integer that specifies a specific time. Multiple time values are separated by a comma (,) with no space before or behind it. The time values can be listed in any sequence.

The condition timer cron 0 1,2,3 2 3 * 2012 command sets the following assistant execution time:

  • 1:00 on 2012-03-02

  • 2:00 on 2012-03-02

  • 3:00 on 2012-03-02

Specify a time interval.

time/step

The value of time is an integer that specifies a specific time. step specifies a time interval. time and step are separated by a slash (/), with no space before or behind it.

The assistant execution time is calculated as follows: time, time+1*step, ..., time+n*step, where n depends on the position of step in the command. The maximum time value cannot exceed the value range.

The condition timer cron 0 0/10 * 3 * 2012 command sets the following assistant execution time:

  • 0:00, 2012-03-01

  • 10:00, 2012-03-01

  • 20:00, 2012-03-01

  • 0:00, 2012-03-02

  • ...

  • 20:00, 2012-03-31

Specify a time range.

time1-time2

time1 and time2 are integers that specify the start and end time of an assistant. time1-time2 represents a time range, with no space before or behind it. time2 must be larger than or equal to time1.

The assistant execution time is calculated as follows: time1, time1+1, time1+2, ..., time2.

The condition timer cron 0 0-3 1 3 * 2012 command sets the following assistant execution time:

  • 0:00, 2012-03-01

  • 1:00, 2012-03-01

  • 2:00, 2012-03-01

  • 3:00, 2012-03-01

Specify a cycle time.

*

* indicates all possible values.

The condition timer cron 30 10 * 1 1 2012 command sets the assistant execution time to 10:30 on every Monday in January 2012.

Specify a combination of time.

The preceding time expressions can be combined.

Different time values are separated by a comma (,) with no space before or behind it.

The condition timer cron 0 0/10,2,4-5 1 3 * 2012 command sets the following assistant execution time:

  • 0:00, 2012-03-01

  • 2:00, 2012-03-01

  • 4:00, 2012-03-01

  • 5:00, 2012-03-01

  • 10:00, 2012-03-01

  • 20:00, 2012-03-01

Precautions

Each assistant can have only one trigger condition.

Example

# Configure a command assistant task to work at 20:00, 2012-05-04.

<HUAWEI> system-view
[~HUAWEI] ops
[~HUAWEI-ops] assistant task
[*HUAWEI-ops-assistant-task] condition timer cron 0 20 4 5 * 2012
Related Topics

display ops assistant

Function

The display ops assistant command displays information about OPS assistants.

Format

display ops assistant { history | current | verbose } [ default ] [ name task-name ]

Parameters

Parameter Description Value
history Displays historical operation records of assistants. -
current Displays brief information about the current status of assistants. -
verbose Displays detailed information about the current status of assistants. -
default Display information about default assistants. -
name task-name Specifies the name of an assistant.

The name of an assistant must already exist.

Views

All views

Default Level

3: Management level

Usage Guidelines

You can use this command to check the current status and historical operation record of an assistant, including the assistant name, running status, and execution result. The command can display a maximum of 100 latest assistant records.

Example

# Display the current status of assistants.

<HUAWEI> display ops assistant current
--------------------------------------------------------
Assistant          State      Condition         Type
--------------------------------------------------------
task               ready      event             command
--------------------------------------------------------
Table 5-92  Description of the display ops assistant current command output

Item

Description

Assistant

Name of an assistant.

State

Current status of an assistant:
  • Init: The assistant is in the initial status.
  • ready: The assistant is ready to run.
  • running: The assistant is running.
  • pending: The assistant is waiting to run.
  • Idle: The assistant is idle.

Condition

Type of trigger condition for an assistant:
  • alarm: The assistant is triggered by an alarm.
  • event: The assistant is triggered by an event.
  • timer: The assistant is triggered by a timer.
  • snmp-notification: The assistant is triggered by an SNMP trap OID.
  • syslog: The assistant is triggered by a log.
  • cli: The assistant is triggered by a command.
  • multiple: The assistant is triggered by multiple conditions.
  • --: No trigger condition is configured for the assistant.
Type Task type of an assistant:
  • script: The assistant is created using scripts.
  • command: The assistant is configured using commands.

# Display historical operation records of assistants.

<HUAWEI> display ops assistant history
Assistant         : test_2
Assistant history information
  Name                  : task
  Type                  : command
  Default assistant     : no
  1. Running information
    Trigger condition   : event
    Trigger event name  : CFG_FILE_CHANGE
    Trigger time        : 2015-03-20 14:26:46
    Execute start time  : 2015-03-20 14:26:46
    Execute end time    : 2015-03-20 14:26:47
    Execute result      : normal
Table 5-93  Description of the display ops assistant history command output

Item

Description

Name

Name of an assistant.

Task abstract

Type of tasks that can be configured for a maintenance assistant:
  • script: The assistant is created using scripts.
  • command: The assistant is configured using commands.
Default assistant Whether it is the default maintenance assistant.
Trigger condition Type of trigger condition for an assistant. The value can be:
  • alarm: The assistant is triggered by an alarm.
  • event: The assistant is triggered by an event.
  • timer: The assistant is triggered by a timer.
  • snmp-notification: The assistant is triggered by an SNMP trap OID.
  • syslog: The assistant is triggered by a log.
  • cli: The assistant is triggered by a command.
  • multiple: The assistant is triggered by multiple conditions.
  • --: No trigger condition is configured for the assistant.
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 Start time of an assistant.
Execute end time End time of an assistant.
Execute result Execution result of an assistant:
  • normal: The assistant ends normally.
  • abnormal: The assistant ends unexpectedly.
  • userCancel: The assistant is manually stopped.
Related Topics

execute batch-file

Function

The execute batch-file command specifies a batch file for a command assistant to execute.

The undo execute command cancels the task of a command assistant.

By default, no batch file is bound to a command assistant.

Format

execute priority batch-file file-name

undo execute priority

Parameters

Parameter Description Value
priority

Specifies the priority of an assistant.

The value is a floating-point number of 1 to 7 digits, in the format integer 1[.integer 2], for example, 1 or 2.5. The system runs the specified commands in ascending order of priorities.

file-name

Specifies the path and file name of a batch file.

The name of a batch file must already exist. The default path is flash:/$_user/.

The batch file name extension is .bat.

Views

Assistant view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If you want a device to automatically run some commands in a specific condition to implement a function, add these commands to a batch file (*.bat), install the batch file, and then bind it to a command assistant. When the device executes the assistant, it runs the commands in the batch file associated with the assistant in the sequence at which the commands were written into the batch file.

Prerequisites

The batch file has been uploaded to the device and been installed using the ops install file command in the user view.

Precautions

  • A command assistant can run only one batch file.

  • Ensure that the specified batch file is correct and complete. The system does not check correctness of the batch file.

  • Assistants are executed on the background. Therefore, it is not recommended to add interactive commands or jump commands such as telnet and stelnet to the batch file.

  • The system switches to the user view by default to run the commands in the batch file. If a command needs to be executed in the system view, run the system-view command to switch to the system view. Otherwise, the command is executed in the user view and the configuration cannot take effect.

  • If a command in the batch file needs to be committed and the two-stage configuration mode is used in the system, write the commit command in the batch file. Otherwise, the configuration does not take effect.

  • After the execute batch-file command is run, the command execution automatically proceeds in machine-to-machine mode (Y is automatically entered). Intelligent rollback is not supported, and you must run the quit command to exit the current view before entering another view.

Example

# Specify a batch file for a command assistant to run.

<HUAWEI> ops install file batch.bat
<HUAWEI> system-view
[~HUAWEI] ops
[~HUAWEI-ops] assistant task
[*HUAWEI-assistant-task] execute 1 batch-file batch.bat
Related Topics

execute command

Function

The execute command command specifies a command for a command assistant to run.

The undo execute command cancels the task of a command assistant.

By default, no command is bound to a command assistant.

Format

execute priority command command-string

undo execute priority

Parameters

Parameter Description Value
priority

Specifies the priority of an assistant.

The value is a floating-point number of 1 to 7 digits, in the format integer 1[.integer 2], for example, 1 or 2.5. The system runs the specified commands in ascending order of priorities.

command-string

Specifies a command.

The value is a string of 1 to 511 characters.

Views

Assistant view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If you want a device to automatically run a few commands in a specific condition to implement a simple function, bind the commands to a command assistant.

Precautions

  • A command assistant can execute a maximum of 10 commands, in ascending order of configured priorities. The commands bound to a command assistant must have different priorities. Otherwise, a command configured later overrides a previously configured command with the same priority.

  • Ensure that the specified commands are correct and complete. The system does not provide help information or check the correctness of the commands bound to a command assistant.

  • Assistants are executed on the background. Therefore, it is not recommended to bind interactive commands or jump commands such as telnet and stelnet to an assistant.

  • When executing an interactive command that requires a Y/N choice, the system automatically selects Y. When executing an interactive command that requires input of a character string, the system waits until the command times out, and then runs the subsequent command.

  • The system switches to the user view by default to run the specified commands. If a command needs to be executed in the system view, run the execute priority command system-view command first. Otherwise, the command configuration does not take effect.

  • If a command needs to be committed and the two-stage configuration mode is used in the system, run execute priority command commit after specifying this command. Otherwise, the configuration does not take effect.

  • After the execute command command is run, the command execution automatically proceeds in machine-to-machine mode (Y is automatically entered). Intelligent rollback is not supported, and you must run the quit command to exit the current view before entering another view.

Example

# Configure a command assistant to run the copy command.

<HUAWEI> system-view
[~HUAWEI] ops
[~HUAWEI-ops] assistant reboot
[*HUAWEI-ops-assistant-reboot] execute 1 command copy vrpcfg.cfg backup.cfg
Related Topics

execute python

Function

The execute python command specifies a Python script for a command assistant to run.

The undo execute command cancels the task of a command assistant.

By default, no Python script is bound to a command assistant.

Format

execute priority python file-name [ arguments ]

undo execute priority

Parameters

Parameter Description Value
priority

Specifies the priority of an assistant.

The value is a floating-point number of 1 to 7 digits, in the format integer 1[.integer 2], for example, 1 or 2.5. The system runs the specified commands in ascending order of priorities.

file-name

Specifies the path and file name of a Python script.

The value is a string of 1 to 127 characters without spaces. The file-name must already exist. The default path is flash:/$_user/.

The file name extension of a Python script must be .py.

arguments

Specifies the parameter used for script execution. The parameter is parsed by the script.

The value contains 1 to 383 characters, in text format.

Views

Assistant view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To enable a device to implement customized functions automatically, bind a Python script to a command assistant. When the trigger condition of the command assistant is met, the command assistant runs the script automatically.

Prerequisites

The Python script has been uploaded to the device and installed using the ops install file command in the user view.

Precautions

  • A command assistant can run only one Python script.

  • The configuration modified by a Python script takes effect immediately, and you do not need to run the commit command to commit the configuration.

  • The system does not check correctness of the Python script.

Example

# Configure a command assistant to run the Python script policy.py.

<HUAWEI> ops install file policy.py
<HUAWEI> system-view
[~HUAWEI] ops
[~HUAWEI-ops] assistant policy
[*HUAWEI-ops-assistant-policy] execute 1 python policy.py
Related Topics

script-assistant python

Function

The script-assistant python command creates a script assistant.

The undo script-assistant python command deletes a created script assistant.

By default, no script assistant is created.

Format

script-assistant python file-name

undo script-assistant python file-name

Parameters

Parameter Description Value
file-name

Specifies the file name of a script assistant.

The name of a script assistant must already exist.

Views

OPS view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can use maintenance assistant task functions to set trigger conditions and tasks. When trigger conditions are met, the system automatically performs the corresponding working task.

Maintenance assistants are classified into the following types:
  • Command assistant: The trigger conditions and tasks of a command assistant are configured using commands.

  • Script assistant: The trigger conditions and tasks of a script assistant are defined using Python scripts.

In a script assistant, trigger conditions are defined using the ops_condition() function in a Python script, and then tasks are defined using the ops_execute() function in the script. The trigger conditions supported by a script assistant include the CLI event, timer event, and route change event. For the method of subscribing events, see "Python API" in RESTful API Reference.

Prerequisites

  • The ops_condition() and ops_execute() functions have been defined in the Python script to define trigger conditions and tasks.

  • The Python script has been uploaded to the device and installed to the device using the ops install file file command.

Example

# Create a script assistant named cron.py.

<HUAWEI> ops install file cron.py
<HUAWEI> system-view
[~HUAWEI] ops
[~HUAWEI-ops] script-assistant python cron.py

shutdown (assistant view)

Function

The shutdown command stops a command assistant.

The undo shutdown command starts a command assistant.

Format

shutdown

undo shutdown

Parameters

None

Views

Assistant view

Default Level

3: Management level

Usage Guidelines

You can use this command to stop a command assistant.
NOTE:

Stopping a running assistant interrupts the task of the assistant. Exercise caution when you perform this operation.

Example

# Stop the command assistant config.

<HUAWEI> system-view
[~HUAWEI] ops
[~HUAWEI-ops] assistant config
[~HUAWEI-ops-assistant-config] shutdown
Related Topics

shutdown script-assistant

Function

The shutdown script-assistant command shuts down a script assistant.

The undo shutdown script-assistant command starts a script assistant.

By default, a created script assistant is started.

Format

shutdown script-assistant file-name

undo shutdown script-assistant file-name

Parameters

Parameter Description Value
file-name

Specifies the file name of a script assistant.

The file name of a script assistant must already exist.

Views

OPS view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If a script assistant does not need to be run, run the shutdown script-assistant command to shut down the script assistant.

Prerequisites

A script assistant has been created using the script-assistant python file-name command.

Example

# Shut down a script assistant with a file name of cron.py.

<HUAWEI> system-view
[~HUAWEI] ops
[~HUAWEI-ops] shutdown script-assistant cron.py
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 52138

Downloads: 339

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next