1-4
Parameter
None
Description
Use the return command to return from current view to user view. The composite key <Ctrl+Z> has the
same effect with the return command.
Related command: quit.
Example
# Return from interface view to user view.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] return
<Sysname>
sysname
Syntax
sysname sysname
undo sysname
View
System view
Parameter
sysname: System name of the Ethernet switch. It is a string of 1 to 30 characters. By default, it is H3C.
Description
Use the sysname command to set the system name of an Ethernet switch. Use the undo sysname
command to restore the default system name of the Ethernet switch.
Changing the system name will affect the CLI prompt. For example, if the system name of the switch is
H3C, the prompt for user view is <H3C> .
Example
# Set the system name of the Ethernet switch to LANSwitch.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] sysname LANSwitch
[LANSwitch]
system-view
Syntax
system-view
View
User view