Professional Documents
Culture Documents
Table of Contents
i
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
Syntax
View
User view
Parameter
time: Current time in the format of HH:MM:SS. HH is in the range 0 to 23, and MM and
SS in the range 0 to 59.
date: Current date in the format of MM/DD/YYYY. MM is the month of the year in the
range 1 to 12, DD is the day of the month in the range 1 to 31, and YYYY is a year in the
range 1993 to 2035.
Description
Using the clock datetime command, you can set the current time and date of the
router.
The current time and date of the router 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.
Example
1-1
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
Syntax
View
User view
Parameter
repeating: Sets the daylight saving time of every year starting from some year.
Description
Using the clock summer-time command, you can set the name, starting and ending
time of the daylight saving time. Using the undo clock summer-time command, you
can cancel the configuration of the daylight saving time.
After the configuration takes effect, you can use the display clock command to view 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.
Example
# During daylight saving time in z2 between 06:00:00 on 06/08 and 06:00:00 on 09/01
every year since 2002, set the system clock ahead one hour.
<Quidway> clock summer-time z2 repeating 06:00:00 06/08/2002 06:00:00
09/01/2002 01:00:00
1-2
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
Syntax
View
User view
Parameter
Description
Using the clock timezone command, you can set the local time zone. Using the undo
clock timezone command, you can restore the local time zone to the default UTC time
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.
Example
# Set the name of the local time zone to Z5, five hours ahead of UTC time.
<Quidway> clock timezone z5 add 05:00:00
1.1.4 command-privilege
Syntax
1-3
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
View
System view
Parameter
view view: View. The following table describes the available views.
View Description
shell View of the current user level
system System view
Includes ospf (OSPF view), rip (RIP view), bgp (BGP view), isis (IS-IS
Routing protocol view
view), and so on.
Includes ethernet (FE), gigabitethernet (GE), serial (serial interface),
ce1 (cE1 interface), ce3 (E3 interface), ct1 (cT1 interface), atm (ATM
Interface view interface), pos (POS interface), virtual-template (virtual interface
template), virtual-ethernet (virtual Ethernet interface), loopback
(loopback interface), null (null interface), tunnel (tunnel interface).
Refer to the "Command Line Views" section in the VRP3.4 Operation Manual for more
information.
Description
Using the command-privilege command, you can assign a command level to the
commands in the specified view. Using the undo command-privilege view command,
you can cancel the current setting.
Command privilege falls into four levels: visit, monitor, system, and manage, which are
identified by 0 through 3.
For a user logs onto the router from a user interface, the command level that the user
can access can be the one administratively assigned to the user or the one assigned to
the user interface, whichever is smaller. For more information on how to assign
command level to a user interface, refer to “Chapter 4 User Interface Configuration
Commands” in VRP3.4 Command Manual – System Management.
1-4
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
Example
Syntax
display clipboard
View
Any view
Parameter
None
Description
Using the display clipboard command, you can view the contents of the clipboard.
Example
Syntax
1-5
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
display clock
View
Any view
Parameter
None
Description
Using the display clock command, you can view the current system time and date.
If the displayed system time and date are incorrect, you can use the clock datetime
command to adjust them.
Example
Syntax
View
Any view
Parameter
offset: Offset of the starting entry to be displayed to the last statistic entry.
1-6
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
Description
Using the display cpu-usage command, you can view statistics about CPU usage.
Example
1-7
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
Syntax
display history-command
View
Any view
Parameter
None
Description
Using the display history-command command, you can view the history commands.
The terminal automatically saves the commands that are input and each ended with a
carriage return.
Example
Syntax
display memory
View
Any view
Parameter
None
1-8
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
Description
Using the display memory command, you can view information on system memory
load.
Example
Syntax
display version
View
Any view
Parameter
None
Description
Using the display version command, you can 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
1-9
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
1.1.11 header
Syntax
View
System view
Parameter
incoming: Banner displayed when a user logs onto a terminal user interface.
1-10
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
Description
Using the header command, you can set the greeting information to be displayed.
Using the undo header command, you can clear the greetings.
text uses the first English character to indicate the beginning and end of the banner
message. After the end character is input, the system quits automatically. If no keyword,
login, shell, or incoming, is specified, the configured banner is for login by default.
You may input the banner message in either of the following ways:
1) Input all the contents in one line. 256 characters including the command keyword
are allowed now.
2) Input the contents in separate lines each ended with a carriage return. 1024
characters are allowed excluding the command keyword.
Example
Note: "%" serves as both beginning and end characters of the defined text. The second
input of "%" therefore indicates the end of the text and has the system quit the header
command.
1.1.12 hotkey
Syntax
1-11
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
View
System view
Parameter
Description
Using the hotkey command, you can assign a hot key to a command line.
Using the undo hotkey command, you can restore the default assignment scheme of
the system: <CTRL_G> to display current-configuration, <CTRL_L> to display ip
routing-table, <CTRL_O> to undo debugging all, and null to other two hot keys.
Example
# Assign the hot key < CTRL_T> to the display tcp status command.
[Quidway] hotkey ctrl_t display tcp status
[Quidway] 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=
1-12
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
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.13 language-mode
Syntax
View
User view
Parameter
None
Description
Using the language-mode command, you can toggle the display language of the
command line interface (CLI) between English and Chinese.
1-13
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
Example
1.1.14 lock
Syntax
lock
View
User view
Parameter
None
Description
Using the lock command, you can lock the illegitimate users out of the active user
interface, which can be console, AUX, or VTY.
After entering the lock command, you are prompted to enter and confirm the
screensaver's password. If you enter the same password twice, the interface is locked.
To unlock and access the system after that, you must press <Enter> first and enter the
password you just set.
Example
# Log in through the console port and lock the active user interface.
<Quidway> lock
Password:
Again:
1.1.15 quit
Syntax
quit
1-14
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
View
Any view
Parameter
None
Description
Using the quit command, you can quit to a lower-level view (if the current view is user
view, you exit the system).
The views fall into three levels which are, in ascending order:
z User view (for user level 0)
z System view (for user level 3)
z Configuration view (such as routing protocol view, interface view, and VPDN
group view)
For the related command, see return.
Example
# Switch from Ethernet1/0/0 interface view to system view, and then to user view.
[Quidway-Ethernet1/0/0] quit
[Quidway] quit
<Quidway>
1.1.16 return
Syntax
return
View
Parameter
None
Description
Using the return command, you can return to user view from any other view, as you
would with the combination key <Ctrl+Z>.
1-15
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
Example
1.1.17 super
Syntax
super [ level ]
View
User view
Parameter
Description
Using the super command, you can switch from current user level to a specified user
level, or the command level that the user can access.
1-16
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
To fence off intrusion of illegitimate users, users are required to provide the correct
super password, if one has been configured using the super password command,
when they switch from a lower level to a higher level. For privacy sake, the entered
password is not displayed on the screen. Users have three chances to provide the
correct password. Only after the correct password is entered can they switch to the
higher level. Otherwise, the original user level remains unchanged.
Example
<Quidway> super 3
Password:
User privilege changes to 3 level, just equal or less this level's
commands can be used.
Privilege note: 0-VISIT, 1-MONITOR, 2-SYSTEM, 3-MANAGE
Syntax
View
System view
Parameter
Description
Using the super password command, you can set the password needed to switch
from a lower user level to a higher one. Using the undo super password command,
you can cancel the current setting.
1-17
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
Example
1.1.19 sysname
Syntax
sysname sysname
View
System view
Parameter
Description
Using the sysname command, you can set the name of the router.
Modifying router name affects the prompt of the CLI. For example, if the router's name
is Quidway, the prompt of user view is <Quidway>.
Example
1.1.20 system-view
Syntax
system-view
View
User view
1-18
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
Parameter
None
Description
Using the system-view command, you can enter system view from current user view.
Example
<Quidway> system-view
Enter system view , return user view with Ctrl+Z.
[Quidway]
1.1.21 vrbd
Syntax
vrbd
View
Any view
Parameter
None
Description
Using the vrbd command, you can view software version details, including product
software version and the matched platform software version.
Example
1-19
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
Syntax
command-alias enable
View
System view
Parameter
None
Description
Using the command-alias enable command, you can enable the command alias
function. Using the undo command-alias enable command, you can disable the
command alias function.
Example
Syntax
View
System view
1-20
Command Manual – Getting Started
VRP3.4 Chapter 1 Basic Configuration Commands
Parameter
cmdkey: The first keyword to be substituted in the current command by the alias. The
complete keyword name must be provided.
alias: An alias assigned by the user, which shall not conflict with (that is, fully match with)
the current first keyword.
Description
Using the command-alias mapping command, you can specify an alias. Using the
undo command-alias mapping command, you can cancel an alias.
Example
Syntax
display command-alias
View
Any view
Parameter
None
Description
Using the display command-alias command, you can view the current alias settings.
Example
1-21