Citrix Systems CITRIX NETSCALER 9.3 manual 2. Examples of Regular Expressions for Command Policies

Models: CITRIX NETSCALER 9.3

1 195
Download 195 pages 43.21 Kb
Page 29
Image 29
Table 1-2.Examples of Regular Expressions for Command Policies

Citrix NetScaler Administration Guide

Table 1-2.Examples of Regular Expressions for Command Policies

Command specification

"^rm\s+.*$"

"^show\s+.*$"

"^shell$"

"^add\s+vserver\s+.*$"

"^add\s+(lb\s+vserver)\s+.*"

Matches these commands

All remove actions, because all remove actions begin with the rm string, followed by a space and additional parameters and flags.

All show commands, because all show actions begin with the show string, followed by a space and additional parameters and flags.

The shell command alone, but not combined with any other parameters or flags.

All create vserver actions, which consist of the add vserver command followed by a space and additional parameters and flags.

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

read-only

operator

network

superuser

Command specification regular expression

(^man.*)(^show\s+(?!system)(?!ns ns.conf)(?!ns runningConfig).*)(^stat.*)

(^man.*)(^show\s+(?!system)(?!ns ns.conf)(?!ns runningConfig).*)(^stat.*) (^set.*-accessdown.*)(^(enabledisable) (serverservice).*)

^(?!shell)\S+\s+(?!system)(?!ns ns.conf)(?! ns runningConfig).*

.*

29

Page 29
Image 29
Citrix Systems CITRIX NETSCALER 9.3 manual 2. Examples of Regular Expressions for Command Policies, Command specification