The sysname command sets a device host name.
The undo sysname command restores the default device host name.
sysname host-name
undo sysname
System view
2: Configuration level
The host name determines the command interface prompt. For example, if the host name is HUAWEI, the user interface prompt is <HUAWEI>.
# Set the host name to HUAWEIA.
<HUAWEI> system-view
[HUAWEI] sysname HUAWEIA
[HUAWEIA]