< Home

run

Function

The run command enables the system to allow the execution of user-view commands in the all views.

By default, the system does not allow the execution of user-view commands in the all views.

Format

run command-line

Parameters

Parameter Description Value
command-line

Command to be run

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To run commands, which can be run only in the user view, in the system view, you must return to the user view. After completing this configuration task, you can run the run command to run such commands in the all views without returning to the user view.

Precautions

  • The command specified in the run command must be able to be run in the user view.
  • When you run the run command, the association help function is unavailable.
  • When you check the command history on the device using the display history-command command, only the commands that you enter are recorded. The command format is run command-line.
  • When you check log information using the SHELL/5/CMDRECORD command, only the commands that are actually executed are recorded in logs. The command format is run command-line.

Example

# View .cfg files in the system view.

<sysname> system-view
[sysname] run dir *.cfg
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >