3
command
: Specifies a command in the specified view.
Usage guidelines
Command levels include four privileges: visit (0), monitor (1), system (2), and manage (3). You can
assign a privilege level according to the user's need. When logging in to the device, the user can access
the assigned level and all levels below it.
Improper use of this command can cause maintenance, operation, and security problems. Make sure
you understand the impact of this command on your network before you use it.
The
command
specified for the
command-privilege
command must be complete, and have valid
parameters. For example, the default level of the
tftp
server-address
{
get
|
put
|
sget
}
source-filename
[
destination-filename
]
[
source
{
interface
interface-type interface-number
|
ip
source-ip-address
} ]
command is 3. To enable users with the privilege level 0 to execute the
tftp
server-address
put
source-filename
command (such as
tftp 192.168.1.26 put syslog.txt
) and disable them from specifying the
get
,
sget
,
source
, or
destination-filename
option, configure the
command-privilege level
0 view shell tftp
1.1.1.1 put a.cfg
command.
The
command
specified for the
undo
command-privilege view
command can be incomplete. For
example, configuring the
undo command-privilege view
system ftp
command restores all commands
starting with
ftp
(such as
ftp server acl
,
ftp server enable
, and
ftp timeout
) to their default levels. If you
have modified the level of commands
ftp server enable
and
ftp timeout
, and you want to restore only the
ftp server enable
command to its default level, use the
undo command-privilege view system ftp server
command.
If you change the command level of a command in a specified view from the default command level to
a lower level, you must change the command levels of the
quit
command and the command used to enter
this view. For example, the default command level of commands
interface
and
system-view
is 2 (system
level). To make the
interface
command available to the level 1 users, execute the following commands:
command-privilege level
1
view
shell system-view
,
command-privilege level 1 view
system interface
gigabitethernet1/0/1
, and
command-privilege level
1 view
system quit
. Then, the level 1 users can
enter system view, execute the
interface gigabitethernet
command, and return to user view.
Examples
# Set the command level of the
interface
command to 0 in system view.
<Sysname> system-view
[Sysname] command-privilege level 0 view system interface
display clipboard
Use
display clipboard
to display data in the clipboard.
Syntax
display clipboard
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Views
Any view
Default command level
1: Monitor level
Parameters
|
: Filters command output by specifying a regular expression. For more information about regular
expressions, see
Fundamentals Configuration Guide
.