02-Basic System Configuration and Maintenance Command

Download


Chapter 1  Basic Configuration Commands

1.1  Basic Configuration Commands

1.1.1  clock datetime

Syntax

clock datetime time date

View

User view

Parameter

time: Current time in the format of HH:MM:SS, where HH is hours in the range 0 to 23, MM is minutes in the range 0 to 59, and SS is seconds in the range 0 to 59.

date: Current date in the format of MM/DD/YYYY or YYYY/MM/DD. MM is the month of the year in the range 1 to 12, DD is the day of the month that varies with months, and YYYY is a year in the range 2000 to 2035.

Description

Use the clock datetime command to set the current time and date of the device.

The current time and date of the device must be set in an environment that requires the acquisition of absolute time.

You may choose not to provide seconds when inputting the time parameters.

Related command: display clock.

Example

# Set the current system time to 14:10:20 08/01/2005.

<Sysname> clock datetime 14:10:20 08/01/2005

1.1.2  clock summer-time

Syntax

clock summer-time zone-name one-off start-time start-date end-time end-date offset-time

clock summer-time zone-name repeating { start-time start-date end-time end-date | start-time start-year start-month start-week start-day end-time end-year end-month end-week end-day } offset-time

undo clock summer-time

View

User view

Parameter

zone-name: Name of the daylight saving time, a string of 1 to 32 characters. It is case sensitive.

one-off: Sets the daylight saving time for only one year (the specified year).

repeating: Sets the daylight saving time for every year starting from the specified year.

start-time: Start time of the daylight saving time, in the form of HH:MM:SS.

start-date: Start date of the daylight saving time, in the form of YYYY/MM/DD or MM/DD/YYYY.

end-time: End time of the daylight saving time, in the form of HH:MM:SS.

end-date: End date of the daylight saving time, in the form of YYYY/MM/DD or MM/DD/YYYY.

offset-time: Offset of the daylight saving time relative to the standard time, in the form of HH:MM:SS.

start-year: Start year, ranging from 2000 to 2035.

start-month: Start month; the value can be the following :January, February, March, April, May, June, July, August, September, October, November, December.

start-week: start week, the value can be the following : first, second, third, fourth, fifth, last.

start-day: Start day; the value can be the following : Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.

end-year: End year,  ranging from 2000 to 2035. The value must be same as start year.

end-month: End month; the value can be the following :January, February, March, April, May, June, July, August, September, October, November, December.

end-week: End week; the value can be the following : first, second, third, fourth, fifth, last.

end-day: End day; the value can be the following : Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.

Description

Use the clock summer-time command to set the name, starting and ending time of the daylight saving time.

Use the undo clock summer-time command to cancel the configuration of the daylight saving time.

After the configuration takes effect, you can use the display clock command to display it. Besides, the time of the log or debug information is the local time of which the time zone and daylight saving time has been adjusted.

Note the following:

l           The duration between start-time of start-date and end-time of end-date must be greater than one day and less than one year; otherwise, the argument value is considered invalid and the configuration will fail.

l           If you execute this command when the current system time is within the specified time range, the system time will automatically be ahead by a duration specified by offset-time.

Related command: clock timezone.

Example

# Set the daylight saving time named abc1, which starts from 06:00:00 2005/08/01, ends until 06:00:00 2005/09/01, and is one hour ahead of the standard time.

<Sysname> clock summer-time abc1 one-off 06:00:00 08/01/2005 06:00:00 09/01/2005 01:00:00

# Set the daylight saving time named abc2 that starts from 06:00:00 08/01, ends until 06:00:00 09/01, and is one hour ahead of the current system time every year from 2007 (with 2007 included) on.

<Sysname> clock summer-time abc2 repeating 06:00:00 08/01/2005 06:00:00 09/01/2005 01:00:00

1.1.3  clock timezone

Syntax

clock timezone zone-name { add | minus } time

undo clock timezone

View

User view

Parameter

zone-name: Time zone name, a string of 1 to 32 characters. It is case sensitive.

add: Positive offset to universal time coordinated (UTC) time.

minus: Negative offset to UTC time.

time: In the format of HH:MM:SS (hours:minutes:seconds), where HH is hours in the range 0 to 23, MM is minutes in the range 0 to 59, and SS is seconds in the range 0 to 59.

Description

Use the clock timezone command to set the local time zone.

Use the undo clock timezone command to restore the local time zone to the default UTC time zone.

By default, the local time zone is Universal Time Coordinated (UTC for short) zone.

After the configuration takes effect, you can view it by executing the display clock command. The time applied to the log and debug information is the local time with time zone and daylight saving time adjustment.

Related command: clock summer-time.

Example

# Set the name of the local time zone to Z5, five hours ahead of UTC time.

<Sysname> clock timezone z5 add 05:00:00

1.1.4  command-privilege

Syntax

command-privilege level level view view command

undo command-privilege view view command

View

System view

Parameter

level: Command level ranging from 0 to 3.

view: Specifies a view.

command: Command to be set in the specified view.

Description

Use the command-privilege command to assign a command level to the commands in the specified view.

Use the undo command-privilege view command to restore the default.

Command privilege falls into four levels: visit, monitor, system, and manage, which are identified by 0 through 3.

The administrator can assign a privilege level to a user according to his need. When the user logs on a device, the commands available depend on the user’s privilege. For example, if a user’s privilege is 3 and the command privilege of VTY 0 user interface is 1, and the user log on the system from VTY 0, he can use all the commands with privilege smaller than three (inclusive).

The following table describes the default level of the commands.

Table 1-1 Default level of the commands

Command level

Commands

Visit (0)

ping, tracert, telnet

Monitor (1)

display, debugging

System (2)

All configuration commends except those of manage level

Manage (3)

FTP, Xmodem, TFTP, file system operation commands

 

&  Note:

Change the command level only when necessary; otherwise, inconvenience may be caused to maintenance and operations.

 

Example

# Set the command level of the interface command to 0.

<Sysname> system-view

[Sysname] command-privilege level 0 view system interface

1.1.5  display clipboard

Syntax

display clipboard

View

Any view

Parameter

None

Description

Use the display clipboard command to view the contents of the clipboard.

To copy the specified content to the clipboard:

l           Move the cursor to the starting position of the content and press the <Esc+Shift+,> combination (, is an English comma).

l           Move the cursor to the ending position of the content and press the <Esc+Shift+.> combination (. Is an English dot) to copy the specified content to the clipboard.

Example

<Sysname> display clipboard

---------------- CLIPBOARD-----------------

        ip route 10.1.0.0 255.0.0.0 eth 0

1.1.6  display clock

Syntax

display clock

View

Any view

Parameter

None

Description

Use the display clock command to view the current system time and date.

Related command: clock datetime.

Example

# Display the current time and date.

<Sysname> display clock

09:41:23 UTC Thu 12/15/2005

1.1.7  display current-configuration

Syntax

display current-configuration [ interface interface-type [ interface-number ] | configuration [ configuration-type ] ] | [ by-linenum ] | [ | { begin | include | exclude } text ] ]

View

Any view

Parameter

interface: Displays the interface configuration.

interface-type: Interface type.  

interface-number: Interface number.

configuration configuration: Specifies to display non-interface configuration. If no parameter is used, all the non-interface configuration will be displayed; if parameters are used, display the specified information. For example:

l           acl-adv: View the configuration information of advanced ACL.

l           rip: View the configuration information of RIP.

l           timerange: View the configuration information of time range.

l           isp: Displays the ISP configuration.

l           post-system: Displays the post-system configuration.

l           radius-template: Displays the radius template configuration.

l           System: Displays the system configuration.

l           user-interface: Displays the user interface configuration.

by-linenum: Exports configuration information with line numbers.

|: Specifies to use regular expression to filter the configuration of display device.

begin: Displays the configuration beginning with the specified text.

include: Displays the configuration including the specified text.

exclude: Displays the configuration not including the specified text.

text: Regular expression in a case-insensitive string with space allowed.

Table 1-2 Special characters in regular expression

Character

Meaning

Note

_

Underline, similar to a wildcard for a single character, such as blank ( ), starting sign (^), ending sign ($), comma (,), left bracket ((), right bracket ()), left square brace ([), right square brace (]), left brace ({) or right brace (})

If the first character is not “_”, then there is no limit to the number of “_” (subject to the length of the string.

If the first character is “_”, then there can not be more than five successive “_”.

If the “_” characters are not successive, only the first group of “_” will be output, others are ignored.

^

Starting sign, the string following it appears only at the beginning of a line.

Regular expression “^user” matches a string begins with “user”, not “Auser”.

$

Ending sign, the string following it appears only at the end of a line.

Regular expression "user$” matches a string ends with “user”, not “userA”.

(

Left bracket, used as a stack symbol in a program

It is not recommended to user this character to establish a regular expression.

.

Full stop, a wildcard used in place of any character, including blank

None

*

Asterisk, used to match a subexpression zero or multiple times

zo* can map to “z” and “zoo”.

+

Addition, used to match a subexpression one or multiple times

zo+ can map to “zo” and “zoo”, but not “z”.

 

Description

Use the display current-configuration command to display the current effective configuration of a device.

A parameter is not displayed if it has the default configuration.

You can use the display current-configuration command to check the configuration to ensure its validity. A configuration is not displayed if it has not taken effect.

Related command: save, reset saved-configuration, display saved-configuration.

Example

# Display the running configuration parameters of the switch.

<Sysname> display current-configuration

#

 sysname Sysname

#

 domain default enable system

#

 telnet server enable

#

vlan 1

#

radius scheme system

 server-type extended

 primary authentication 127.0.0.1 1645

 primary accounting 127.0.0.1 1646

 user-name-format without-domain

#

domain system

 access-limit disable

 state active

 idle-cut disable

 self-service-url disable

#

interface NULL0

#

interface LoopBack0

 ip address 1.1.1.100 255.255.255.255

#

interface Vlan-interface1

 ip address 192.168.0.53 255.255.255.0

#

interface GigabitEthernet1/0/1

#

interface GigabitEthernet1/0/2

#

interface GigabitEthernet1/0/3

#

interface GigabitEthernet1/0/4

#

interface GigabitEthernet1/0/5

#

interface GigabitEthernet1/0/6

#

interface GigabitEthernet1/0/7

#

interface GigabitEthernet1/0/8

#

interface GigabitEthernet1/0/9

#

interface GigabitEthernet1/0/10

#

interface GigabitEthernet1/0/11

#

interface GigabitEthernet1/0/12

#

interface GigabitEthernet1/0/13

#

interface GigabitEthernet1/0/14

#

interface GigabitEthernet1/0/15

#

interface GigabitEthernet1/0/16

#

interface GigabitEthernet1/0/17

#

interface GigabitEthernet1/0/18

#

interface GigabitEthernet1/0/19

#

interface GigabitEthernet1/0/20

#

interface GigabitEthernet1/0/21

#

interface GigabitEthernet1/0/22

#

interface GigabitEthernet1/0/23

#

interface GigabitEthernet1/0/24

#

interface GigabitEthernet1/0/25

 shutdown

#

interface GigabitEthernet1/0/26

 shutdown

#

interface GigabitEthernet1/0/27

 shutdown

#

interface GigabitEthernet1/0/28

 shutdown

#

rip 1

 undo validate-source-address

 timers garbage-collect 23

#

 ip route-static default-preference 100

#

user-interface aux 0

 idle-timeout 0 0

user-interface vty 0 4

 authentication-mode none

 user privilege level 3

 idle-timeout 0 0

#

return

# Display the lines containing the character string “10*” in the configuration information. The “*” indicates that the “0” before it can appear 0 times or multiple consecutive times.

<Sysname> display current-configuration | include 10*

vlan 1

 primary authentication 127.0.0.1 1645

 primary accounting 127.0.0.1 1646

 ip address 1.1.1.100 255.255.255.255

interface Vlan-interface1

 ip address 192.168.0.53 255.255.255.0

interface GigabitEthernet1/0/1

interface GigabitEthernet1/0/2

interface GigabitEthernet1/0/3

interface GigabitEthernet1/0/4

interface GigabitEthernet1/0/5

interface GigabitEthernet1/0/6

interface GigabitEthernet1/0/7

interface GigabitEthernet1/0/8

interface GigabitEthernet1/0/9

interface GigabitEthernet1/0/10

interface GigabitEthernet1/0/11

interface GigabitEthernet1/0/12

interface GigabitEthernet1/0/13

interface GigabitEthernet1/0/14

interface GigabitEthernet1/0/15

interface GigabitEthernet1/0/16

interface GigabitEthernet1/0/17

interface GigabitEthernet1/0/18

interface GigabitEthernet1/0/19

interface GigabitEthernet1/0/20

interface GigabitEthernet1/0/21

interface GigabitEthernet1/0/22

interface GigabitEthernet1/0/23

interface GigabitEthernet1/0/24

interface GigabitEthernet1/0/25

interface GigabitEthernet1/0/26

interface GigabitEthernet1/0/27

interface GigabitEthernet1/0/28

rip 1

 ip route-static default-preference 100

# Display configuration information beginning with “user”.

<Sysname> display current-configuration | include ^user

user-interface aux 0

user-interface vty 0 4

# Display the non-interface configuration information.

<Sysname> display current-configuration configuration

#

 sysname Sysname

#

 domain default enable system

#

 telnet server enable

#

radius scheme system

 server-type extended

 primary authentication 127.0.0.1 1645

 primary accounting 127.0.0.1 1646

 user-name-format without-domain

#

domain system

 access-limit disable

 state active

 idle-cut disable

 self-service-url disable

#

rip 1

 undo validate-source-address

 timers garbage-collect 23

#

 ip route-static default-preference 100

#

user-interface aux 0

 idle-timeout 0 0

user-interface vty 0 4

 authentication-mode none

 user privilege level 3

 idle-timeout 0 0

#

return

1.1.8  display diagnostic-information

Syntax

display diagnostic-information

View

Any view

Parameter

None

Description

Use the display diagnostic-information command to display or save the statistics of each module’s running status in the system.

When the system is out of order, you need to collect a lot of information to locate the failure. At this time you can use the display diagnostic-information command instead of many different display commands, including:

l           display clock

l           display version

l           display device

l           display current-configuration

l           display saved-configuration

l           display interface

l           display memory

l           display logbuffer

l           display vlan all

l           display history-command

l           display trapbuffer

l           display loopback-detection

l           display dhcp-snooping

l           display igmp-snooping group

l           display mld-snooping group

l           display gvrp statistics

l           display ipv6 statistics

l           display mac-address

l           display link-aggregation summary

l           display stp brief

l           display arp all

l           display ip interface

l           display ip statistics

l           display ipv6 interface

l           display ipv6 fib

l           display fib

l           display ipv6 neighbors all

l           display ip routing-table

l           display ipv6 routing-table

l           <omitted>

Example

# Save the statistics of each module's running status in the system.

<Sysname> display diagnostic-information

Save or display diagnostic information (Y=save, N=display)?[Y/N]:y

Please input the file name(*.diag)[flash:/default.diag]:aa.diag

Diagnostic information is outputting to flash:/aa.diag.

Please wait...

Save successfully.

# Display the statistics of each module's running status in the system.

<Sysname> display diagnostic-information

Save or display diagnostic information (Y=save, N=display)?[Y/N]:n

As the display is long, more details are omitted here.

1.1.9  display history-command

Syntax

display history-command

View

Any view

Parameter

None

Description

Use the display history-command command to display effective history commands performed in current user view.

For related configurations, see the section covering the history-command max-size command in the Login part.

Example

# Display effective history commands in current user view (the display information varies with configuration).

<Sysname> display history-command

  display history-command

  system-view

  vlan 2

  quit

1.1.10  display hotkey

Syntax

display hotkey

View

Any view

Parameter

None

Description

Use the display hotkey command to display hotkey information.

Example

# Display hotkey information.

<Sysname> display hotkey

----------------- HOTKEY -----------------

 

            =Defined hotkeys=

Hotkeys Command

CTRL_G  display current-configuration

CTRL_L  display ip routing-table

CTRL_O  undo debug all

 

           =Undefined hotkeys=

Hotkeys Command

CTRL_T  NULL

CTRL_U  NULL

 

            =System hotkeys=

Hotkeys  Function

CTRL_A  Move the cursor to the beginning of the current line.

CTRL_B  Move the cursor one character left.

CTRL_C  Stop current command function.

CTRL_D  Erase current character.

CTRL_E  Move the cursor to the end of the current line.

CTRL_F  Move the cursor one character right.

CTRL_H  Erase the character left of the cursor.

CTRL_K  Kill outgoing connection.

CTRL_N  Display the next command from the history buffer.

CTRL_P  Display the previous command from the history buffer.

CTRL_R  Redisplay the current line.

CTRL_V  Paste text from the clipboard.

CTRL_W  Delete the word left of the cursor.

CTRL_X  Delete all characters up to the cursor.

CTRL_Y  Delete all characters after the cursor.

CTRL_Z  Return to the User View.

CTRL_]  Kill incoming connection or redirect connection.

ESC_B   Move the cursor one word back.

ESC_D   Delete remainder of word.

ESC_F   Move the cursor forward one word.

ESC_N   Move the cursor down a line.

ESC_P   Move the cursor up a line.

ESC_<   Specify the beginning of clipboard.

ESC_>   Specify the end of clipboard.

1.1.11  display this

Syntax

display this [ by-linenum ]

View

Any view

Parameter

by-linenum: Specifies to display the number of each line.

Description

Use the display this command to display configuration information under the current view.

After finishing a set of configuration under a view, you can use the display this command to check whether the configuration is correct.

Note that:

l           A parameter is not displayed if it has the default configuration.

l           A parameter is not displayed if the configuration has not taken effect.

l           When you use the command under interface view, protocol view or protocol child view, the command displays the configuration corresponding to the current view.

Example

# Display configuration information of the current view (the display information varies with configuration).

<Sysname> system-view

[Sysname] user-interface vty 0 

[Sysname-ui-vty0] display this

#

user-interface aux 0

 idle-timeout 5 0

user-interface vty 0 4

 authentication-mode none

 user privilege level 3

 idle-timeout 0 0

#

return

1.1.12  display version

Syntax

display version

View

Any view

Parameter

None

Description

Use the display version command to view system version information.

By viewing system version information, you can learn about the current software version, rack type and the information related to the main control board and interface boards.

Example

# Display system version information of the H3C S5500-28C-SI.

<Sysname> display version

H3C Comware Platform Software

Comware software, Version 5.20, Release 1205

Copyright(c) 2004-2007 Hangzhou H3C Technologies Co., Ltd. All rights reserved.

H3C S5500-28C-SI uptime is 0 week, 5 days, 2 hours, 10 minutes

 

H3C S5500-28C-SI with 1 Processor

128M    bytes SDRAM

16384K  bytes Flash Memory

 

Hardware Version is REV.B

CPLD Version is 002

Bootrom Version is 117

[SubSlot 0] 24GE+4SFP Hardware Version is REV.B

1.1.13  header

Syntax

header { incoming | legal | login | motd | shell } text

undo header { incoming | legal | login | motd | shell }

View

System view

Parameter

incoming: Banner displayed when a user logs onto a terminal user interface by user name and password.

legal: Authorization banner before login.

login: Login banner at authentication.

motd: Banner displayed before the login interface.

shell: Banner displayed for entering user view.

text: Banner text to be specified. The system supports two input modes:

1)         One is to enter all the banner text immediately following the command keyword. The starting character and ending character of the text entered must be the same. These two characters, however, will not be part of the banner. In this mode, up to 510 characters, including the command keyword, starting character, and ending character, can be entered.

2)         The other is to enter all the banner text in multiple lines by pressing Enter. In this case, up to 2,000 characters, excluding command keyword, can be entered. To enter the banner text in multiple lines, you can use one of the following three methods:

l           Directly press Enter following the command keyword, then enter the contents, and finish setting the banner by an ending character "%". In this case, neither the Enter sign nor "%" is part of the banner.

l           Press Enter after entering a character following the command keyword, then enter the contents and finish setting the banner by an ending character the same as the character entered in the first line. In this case, neither the character in the first line nor the ending character is part of the banner.

l           Press Enter after entering multiple characters (with the starting character different from the ending character) following the command keyword, then enter the contents and finish setting the banner by an ending character the same as the first character in the first line. In this case, neither the first character in the first line nor the ending character is part of the banner.

Description

Use the header command to create a banner.

Use the undo header command to clear a banner.

A banner starts with the first character entered and ends when this same character is entered again. After you enter the ending character, the system quits the interactive process automatically.

Note the following:

l           The banner configured with the header motd command is displayed when you enter the user interface. If password authentication is enabled or an authentication scheme is specified, this banner is displayed before login authentication.

l           The banner configured with the header legal command is displayed when you enter the user interface.  If password authentication is enabled or an authentication scheme is specified, this banner is displayed before login authentication.

l           With password authentication enabled or an authentication scheme specified, the banner configured with the header login command is displayed after the banner configured with the header motd command and before login authentication.

l           The banner configured with the header shell command is displayed after the user session is established.

Example

# Configure a banner in user view.

<Sysname> system-view

[Sysname] header incoming %

Please input banner content, and quit with the character '%'.

Welcome to incoming(header incoming)%

[Sysname] header legal %

Please input banner content, and quit with the character '%'.

Welcome to legal(header legal)%

[Sysname] header login %

Please input banner content, and quit with the character '%'.

Welcome to login(header login)%

[Sysname] header motd %

Please input banner content, and quit with the character '%'.

Welcome to motd(header motd)%

[Sysname] header shell %

Please input banner content, and quit with the character '%'.

Welcome to shell(header shell)%

 

& Note:

l      The character % is the starting/ending character of text in this example. Enter % after the displayed text will quit the header command.

l      As the starting and ending character, % is not a part of the welcome information.

 

# Test the configuration remotely using Telnet.

**************************************************************************

* Copyright(c) 2004-2006 Hangzhou H3C Technologies Co., Ltd.           *

* Without the owner's prior written consent,                                 *

* no decompiling or reverse-engineering shall be allowed.                    *

**************************************************************************

Welcome to legal(header legal)

 Press Y or ENTER to continue, N to exit.

Welcome to motd(header motd)

Welcome to login(header login)

 

 

 

Login authentication

 

 

Password:

Welcome to shell(header shell)

 

<Sysname>

1.1.14  hotkey

Syntax

hotkey { CTRL_G | CTRL_L | CTRL_O | CTRL_T | CTRL_U } command

undo hotkey { CTRL_G | CTRL_L | CTRL_O | CTRL_T | CTRL_U }

View

System view

Parameter

CTRL_G: Assigns the hot key <Ctrl+G> to a command.

CTRL_L: Assigns the hot key <Ctrl+L> to a command.

CTRL_O: Assigns the hot key <Ctrl+O> to a command.

CTRL_T: Assigns the hot key <Ctrl+T> to a command.

CTRL_U: Assigns the hot key <Ctrl+U> to a command.

command: The command line associated with the hot key.

Description

Use the hotkey command to assign a hot key to a command line.

Use the undo hotkey command to restore the default assignment scheme of the system..

By default, the system specifies corresponding commands for <Ctrl+G>, <Ctrl+L> and <Ctrl+O>, while the others are null.

l           <Ctrl_G> to display current-configuration

l           <Ctrl_L> to display ip routing-table

l           <Ctrl_O> to undo debugging all

You can customize this scheme however.

Example

# Assign the hot key <CTRL+T> to the display tcp status command.

<Sysname> system-view

[Sysname] hotkey ctrl_t display tcp status

# Display the configuration of hotkey.

[Sysname] display hotkey

----------------- HOTKEY -----------------

 

            =Defined hotkeys=

Hotkeys Command

CTRL_G  display current-configuration

CTRL_L  display ip routing-table

CTRL_O  undo debug all

CTRL_T  display tcp status

           =Undefined hotkeys=

Hotkeys Command

CTRL_U  NULL

 

            =System hotkeys=

Hotkeys Function

CTRL_A  Move the cursor to the beginning of the current line.

CTRL_B  Move the cursor one character left.

CTRL_C  Stop current command function.

CTRL_D  Erase current character.

CTRL_E  Move the cursor to the end of the current line.

CTRL_F  Move the cursor one character right.

CTRL_H  Erase the character left of the cursor.

CTRL_K  Kill outgoing connection.

CTRL_N  Display the next command from the history buffer.

CTRL_P  Display the previous command from the history buffer.

CTRL_R  Redisplay the current line.

CTRL_V  Paste text from the clipboard.

CTRL_W  Delete the word left of the cursor.

CTRL_X  Delete all characters up to the cursor.

CTRL_Y  Delete all characters after the cursor.

CTRL_Z  Return to the user view.

CTRL_]  Kill incoming connection or redirect connection.

ESC_B   Move the cursor one word back.

ESC_D   Delete remainder of word.

ESC_F   Move the cursor forward one word.

ESC_N   Move the cursor down a line.

ESC_P   Move the cursor up a line.

ESC_<   Specify the beginning of clipboard.

ESC_>   Specify the end of clipboard.

1.1.15  language-mode

Syntax

language-mode { chinese | english }

View

User view

Parameter

chinese: Chinese language mode.

english: English language mode.

Description

Use the language-mode command to toggle the display language of the command line interface (CLI) between English and Chinese.

The default language is English.

Example

# Toggle the language from English to Chinese.

<Sysname> language-mode chinese

Change language mode, confirm? [Y/N]y

% Switch to Chinese mode.

1.1.16  quit

Syntax

quit

View

Any view

Parameter

None

Description

Use the quit command to quit to a lower-level view (if the current view is user view, you exit the system).

Example

# Switch from GigabitEthernet1/0/3 interface view to system view, and then to user view.

<Sysname> system-view

[Sysname] interface GigabitEthernet 1/0/3

[Sysname-GigabitEthernet1/0/3] quit

[Sysname] quit

<Sysname>

1.1.17  return

Syntax

return

View

Any view except for user view

Parameter

None

Description

Use the return command to return to user view from current view, as you would with the hot key <Ctrl+Z>.

Related command: quit.

Example

# Return to user view from GigabitEthernet1/0/3 interface view.

<Sysname> system-view

[Sysname] interface GigabitEthernet 1/0/3

[Sysname-GigabitEthernet1/0/3] return

<Sysname>

1.1.18  super

Syntax

super [ level ]

View

User view

Parameter

level: User level ranging from 0 to 3.

Description

Use the super command to switch from current user level to a specified user level, or the command level that the user can access.

Login users are classified into four levels that correspond to the four command levels. After users at different levels log in, they can only use commands at their own, or lower, levels. The four command levels are visit, monitor, system and manage, each identified with 0, 1, 2 and 3 respectively. The user can specify the command level and its view as the situation requires. Each command has its own default view and preference, which does not require reconfiguration.

Note that:

Users can switch to a lower user level unconditionally. To switch to a higher user level, however, they need to enter the password needed (The password can be set with the super password command.). If the entered password is incorrect or no password is configured, the switch fails. Therefore, before switching to a higher user level, users should configure the password needed.

Related command: super password.

Example

# Set the user level to 3.

<Sysname> super 3

User privilege level is 3, and only those commands can be used

whose level is equal or less than this.

Privilege note: 0-VISIT, 1-MONITOR, 2-SYSTEM, 3-MANAGE

1.1.19  super password

Syntax

super password [ level user-level ] { simple | cipher } password

undo super password [ level user-level ]

View

System view

Parameter

user-level: User level in the range 1 to 3, with the default as 3.

simple: Plain text password.

cipher: Cipher text password.

password: A password in a case-sensitive string.

l           For simple password, it is a string of 1 to 16 characters.

l           For