Convention
[ x | y | ... ] *
&<1-n>
#
NOTE:
The keywords of command lines are case insensitive.
Figure 2
shows how to read the clock datetime time date command by using
Figure 2 Read command line parameters
Following this example, you can enter the following command line at the CLI of your device and press
Enter to set the device system time to 10 o'clock 30 minutes 20 seconds, February 23, 2010.
<Sysname> clock datetime 10:30:20 2/23/2010
More complicated commands can be understood using
Undo form of a command
The undo form of a command restores the default, disables a function, or removes a configuration.
Almost all configuration commands have an undo form. For example, the info-center enable command
enables the information center, and the undo info-center enable command disables the information
center.
CLI views
CLI view description
Commands are grouped into different classes by function. To use a command, you must enter the class
view of the command.
CLI views adopt a hierarchical structure. See
After logging in to the switch, you are in user view. The user view prompt is <device name>. In user
•
view, you can perform display, debugging, and file management operations, set the system time,
restart your device, and perform FTP and Telnet operations.
You can enter system view from user view. In system view, you can configure parameters such as
•
daylight saving time, banners, and short-cut keys.
Description
Asterisk marked square brackets enclose optional syntax choices separated by vertical
bars, from which you select one choice, multiple choices, or none.
The argument or keyword and argument combination before the ampersand (&) sign can
be entered 1 to n times.
A line that starts with a pound (#) sign is comments.
Table 1
as a reference.
Figure
3.
2
Table 1
as a reference.