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

Configuration Guide - Device Management

CloudEngine 12800 and 12800E V200R005C10

This document describes the configurations of Device Management, including device status query, hardware management, Information Center Configuration, NTP, Synchronous Ethernet Configuration, Fault Management Configuration, Energy-Saving Management Configuration, Performance Management Configuration, Maintenance Assistant Configuration, and OPS Configuration.
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).
Configuring a Command Execution Command Assistant

Configuring a Command Execution Command Assistant

Context

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.

NOTE:
  • 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 the execute priority command commit command after specifying this command. Otherwise, the configuration does not take effect.

  • After the execute command command is run, 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.
  • This configuration process is supported only on the Admin-VS.

Procedure

  1. Run the system-view command to enter the system view.
  2. Run the ops command to enter the OPS view.
  3. Run the assistant task-name command to create a command assistant.
  4. Configure a trigger condition for the command assistant.

    Each command assistant can have only one trigger condition. You can run any of the following condition commands to configure a trigger condition. If you run the condition command multiple times, only the latest configuration takes effect.

    • Run the condition alarm level compare-operator level-name command to set an alarm severity.

    • Run the 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 ] ] command to specify an alarm or event name.

      Run the condition command to specify an alarm or event name.

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

    • Run the condition snmp-notification oid oid [ int-compare oid-int-value ] command to match an SNMP trap OID.
    • Run the condition syslog pattern regexp [ occurs occur-timers [ period period-value ] ] command to math logs.
    • Run the condition timer cron minutes hours days-of-month months days-of-week [ years ] command to set a timer.

  5. Run the execute priority command command-string command to specify a command that the assistant will run.

    You can run the command multiple times to specify multiple commands to run. An assistant can run a maximum of 10 commands.

  6. Run the commit command to commit the configuration.
Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100074722

Views: 15098

Downloads: 18

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