C
HAPTER
23
| Authentication Commands
User Accounts and Privilege Levels
– 805 –
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 682 and
"Configuration Commands" on page 683.)
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