Citrix Systems CITRIX NETSCALER 9.3 Network Router User Manual


 
Table 1-2. Examples of Regular Expressions for Command Policies
Command specification Matches these commands
"^rm\s+.*$" All remove actions, because all remove
actions begin with the rm string,
followed by a space and additional
parameters and flags.
"^show\s+.*$" All show commands, because all show
actions begin with the show string,
followed by a space and additional
parameters and flags.
"^shell$" The shell command alone, but not
combined with any other parameters or
flags.
"^add\s+vserver\s+.*$" All create vserver actions, which consist
of the add vserver command followed
by a space and additional parameters
and flags.
"^add\s+(lb\s+vserver)\s+.*" All create lb vserver actions, which
consist of the add lb vserver command
followed by a space and additional
parameters and flags.
The following table shows the command specifications for each of the built-in
command policies.
Table 1-3. Expressions Used in the Built-in Command Policies
Policy name Command specification regular
expression
read-only
(^man.*)|(^show\s+(?!system)(?!ns
ns.conf)(?!ns runningConfig).*)|(^stat.*)
operator
(^man.*)|(^show\s+(?!system)(?!ns
ns.conf)(?!ns runningConfig).*)|(^stat.*)|
(^set.*-accessdown.*)|(^(enable|disable)
(server|service).*)
network
^(?!shell)\S+\s+(?!system)(?!ns ns.conf)(?!
ns runningConfig).*
superuser .*
Citrix NetScaler Administration Guide
29