Administrator Guide

Security Commands 901
Example
console(admin-profile)#description “This profile allows access to QoS
commands.”
rule
Use the rule command to add a rule to an administrative profile.
Use the no form of this command to delete a rule.
Syntax
rule
number
{deny|permit} {command
command-string
|mode
mode-
name
}
no rule
number
number
—The sequence number of the rule. Rules are applied from the highest
sequence number to the lowest. Range: 1 to 256.
command-string
Specifies which commands to permit or deny. The
command-string may contain spaces and regular expressions. Range: 1 to
128 characters). Regular expressions should conform to Henry Spencer’s
implementation of the POSIX 1003.2 specification.
Note: In this usage, the beginning and end of line meta-characters have no
meaning.
•mode-name
The name of the CLI mode to which the profile will permit
or deny access.
Default Configuration
This command has no default configuration.
Command Mode
Administrative Profile Configuration mode
User Guidelines
This command has no user guidelines.
Example
console(admin-profile)#rule 1 permit command “access-list *”
console(admin-profile)#
2CSNXXX_SWUM204.book Page 901 Monday, January 25, 2016 1:25 PM