< Home

terminal command forward matched upper-view

Function

The terminal command forward matched upper-view command enables forward commands (not in the undo form) to automatically match the upper-level view and return to the upper-level view.

The undo terminal command forward matched upper-view command disables forward commands from automatically matching the upper-level view.

By default, forward commands are enabled to automatically match the upper-level view.

Format

terminal command forward matched upper-view

undo terminal command forward matched upper-view

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If forward commands are enabled to automatically match the upper-level view and you run a forward command not registered in the current view, the system automatically switches to the upper-level view to search for the command. If the command is found in that view, the system runs the command. If the command is not found in that view, the system continues the search in the next upper-level view until the system view.

Precautions

The terminal command forward matched upper-view command takes effect only for the current login user who runs this command.

Example

# Enable forward commands to automatically match the upper-level view.

<HUAWEI> terminal command forward matched upper-view
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet0/0/1
[HUAWEI-GigabitEthernet0/0/1] sysname ABC
[ABC]

# Disable forward commands from automatically matching the upper-level view.

<HUAWEI> undo terminal command forward matched upper-view
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet0/0/1
[HUAWEI-GigabitEthernet0/0/1] sysname ABC
                              ^
Error: Unrecognized command found at '^' position.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >