< Home

sysname

Function

The sysname command sets a device host name.

The undo sysname command restores the default device host name.

Format

sysname host-name

undo sysname

Parameters

Parameter Description Value
host-name Specifies the host name. The value is a string of 1 to 246 case-sensitive characters with spaces.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The host name determines the command interface prompt. For example, if the host name is HUAWEI, the user interface prompt is <HUAWEI>.

Example

# Set the host name to HUAWEIA.

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