Cisco Nexus 7000 Series Configuration Manual page 286

Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Defining a User Policy Using the CLI
Command
action label string compare [nocase] [length
integer] string1 string2
switch(config-applet)# action 4.5 string
compare nocase length 3
action label string equal [nocase] [length integer]
string1 string2
switch(config-applet)# action 4.5 string
equal "contains" "data"
action label string first string1 string2 [index-value]
switch(config-applet)# action 4.6 string
first "contains" $str
action label string index string [value | end]
switch(config-applet)# action 4.7 string
index "this is a test" 6
action label string last string1 string2 [index-value]
switch(config-applet)# action 4.9 string last
"contains" $str
action label string length string
switch(config-applet)# action 5.0 string
length "contains"
action label string match [nocase] string-pattern
string
switch(config-applet)# action 5.2 string
match "*Bl*"
Cisco Nexus 7000 Series NX-OS System Management Configuration Guide
258
$str
Configuring the Embedded Event Manager
Purpose
Compares two unequal strings. The result is stored
in the inbuilt variable $_string_result.
The action label is in the format number1.number2.
number can be any number up to 16 digits. The range
for number2 is from 0 to 9.
Compares two strings and returns 1 if the two strings
are equal. The result is stored in the inbuilt variable
$_string_result.
The action label is in the format number1.number2.
number1 can be any number up to 16 digits. The range
for number2 is from 0 to 9.
Returns the index of the first occurrence of string1
within string2. index-value is optional and indicates
the position to start the first test.
The action label is in the format number1.number2.
number1 can be any number up to 16 digits. The range
for number2 is from 0 to 9.
Returns the characters specified at the given
index-value. end denotes the last character of the
string. The characters are stored in the inbuilt variable
$_string_result.
The action label is in the format number1.number2.
number1 can be any number up to 16 digits. The range
for number2 is from 0 to 9.
Returns the index of the last occurrence of string1
within string2.
The action label is in the format number1.number2.
number1 can be any number up to 16 digits. The range
for number2 is from 0 to 9.
Returns the number of characters in a string. The
result is stored in the inbuilt variable $_string_result.
The action label is in the format number1.number2.
number1 can be any number up to 16 digits. The range
for number2 is from 0 to 9.
Matches string with a specified pattern, string-pattern.
If they match, the result 1 is stored in the inbuilt
variable $_string_result.
The action label is in the format number1.number2.
number1 can be any number up to 16 digits. The range
for number2 is from 0 to 9.

Advertisement

Table of Contents
loading

Table of Contents