< Home

console0 disable

Function

The console0 disable command disables the console port login function.

The undo console0 disable command enables the console port login function.

By default, the console port login function is enabled.

Format

console0 disable

undo console0 disable

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

Application Scenario

By default, the administrator can log in to a switch through the console port. If the console port login function is not required, you can run the console0 disable command to disable this function. If this function is required, you can run the undo console0 disable command to enable this function.

Precautions

After the console0 disable command is run, this command does not take effect for users who have logged in to the device through the console port and takes effect for the users only after they exit from the console port using the quit command.

For devices that have the PNP button, you can press and hold the PNP button to enable the function of logging in through the console port.

Example

# Disable the console port login function.

<HUAWEI> system-view
[HUAWEI] console0 disable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >