< Home

run

Function

The run command runs a user view command in the system view.

By default, a user view command cannot be run in the system view.

Format

run command-line

Parameters

Parameter Description Value
command-line

Specifies a command to be run.

-

Views

All views except the user view

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

Some commands can be run only in the user view. To run these commands, you must return to the user view first. To facilitate command execution, the device allows you to run the run command to run such commands in the other views without returning to the user view.

Precautions

  • The command specified in the run command must can 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 run are recorded in logs. The command format is run command-line.

Example

# Run the dir *.cfg command to check the .cfg file in the system view.

<HUAWEI> system-view
[HUAWEI] run dir *.cfg
Directory of flash:/
  Idx  Attr     Size(Byte)  Date        Time       FileName
    0  -rw-         11,970  Mar 14 2012 19:11:22   31.cfg
    1  -rw-         12,033  Apr 22 2012 17:10:30   31_new.cfg
509,256 KB total (118,784 KB free)
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >