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 a non-user view 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 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 CLI/5/CMDRECORD log, only the commands that are actually executed are recorded in logs. The command format is command-line.
- run cannot be used to execute commands that involve configuration rollback or system software behavior change, such as switch virtual-system, rollback configuration, quit, and patch load.