CLI Reference Guide-R04

Table Of Contents
Chapter 8
| User Authentication Commands
User Accounts and Privilege Levels
– 233 –
privilege This command assigns a privilege level to specified command groups or individual
commands. Use the no form to restore the default setting.
Syntax
privilege mode [all] level level command
no privilege mode [all] command
mode - The configuration mode containing the specified command.
(See “Understanding Command Modes” on page 82 and Configuration
Commands” on page 84.)
all - Modifies the privilege level for all subcommands under the specified
command.
level level - Specifies the privilege level for the specified command. Refer to
the default settings described for the access level parameter under the
username command. (Range: 0-15)
command - Specifies any command contained within the specified mode.
Default Setting
Privilege level 0 provides access to a limited number of the commands which
display the current status of the switch, as well as several database clear and reset
functions. Level 8 provides access to all display status and configuration
commands, except for those controlling various authentication and security
features. Level 15 provides full access to all commands.
Command Mode
Global Configuration
Example
This example sets the privilege level for the ping command to Privileged Exec.
Console(config)#privilege exec level 15 ping
Console(config)#
show privilege This command shows the privilege level for the current user, or the privilege level
for commands modified by the privilege command.
Syntax
show privilege [command]
command - Displays the privilege level for all commands modified by the
privilege command.
Command Mode
Privileged Exec