API Guide

command-string Enter the commands supported at the privilege level.
Defaults Not configured
Command Mode CONFIGURATION
Usage
Information
For users assigned to sysadmin, netadmin, and secadmin roles, you cannot configure a privilege
level less than 2.
If a command that you associate with a privilege level has a space, enter the command in double quotes
("). If a command does not have a space or if it has keywords separated by a hyphen, double quotes are
not required.
The no version of this command removes a command from a privilege level.
Example
OS10(config)# privilege exec priv-lvl 3 "configure terminal"
OS10(config)# privilege configure priv-lvl 3 "interface ethernet"
OS10(config)# privilege interface priv-lvl "ip address"
OS10(config)# privilege configure priv-lvl 3 route-map
OS10(config)# privilege route-map priv-lvl 3 "set local-preference"
Supported
Releases
10.4.3.0 or later
show privilege
Displays your current privilege level.
Syntax
show privilege
Parameters None
Defaults Not configured
Command Mode EXEC
Example
OS10# show privilege
Current privilege level is 15.
Supported
Releases
10.4.3.0 or later
show running-configuration privilege
Displays the configured privilege levels of all users.
Syntax
show running-configuration privilege
Parameters None
Defaults Not configured
Command Mode EXEC
Example
OS10# show running-configuration privilege
privilege exec priv-lvl 3 configure
privilege configure priv-lvl 4 "interface ethernet"
enable password sha-512 $6$Yij02Phe2n6whp7b$ladskj0HowijIlkajg981 priv-
lvl 12
Supported
Releases
10.4.3.0 or later
Security 1021