Cisco Nexus 7000 Series Configuration Manual page 287

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

Advertisement

Configuring the Embedded Event Manager
Command
action label string range string start-index end-index
switch(config-applet)# action 5.2 string
range "$data" 4 9
action label string replace string start-index
end-index [new-string]
switch(config-applet)# action 5.4 string
replace $str 1 4 "test"
action label string tolower string [start-index]
[end-index]
switch(config-applet)# action 5.5 string
tolower "$string" 11 16
action label string toupper string [start-index]
[end-index]
switch(config-applet)# action 5.6 string
toupper "$string" 0 7
action label string trim string1 [string2]
switch(config-applet)# action 5.7 string trim
"$string"
action label string trimleft string1 [string2]
switch(config-applet)# action 5.7 string
trimleft "$string" "Hello"
Purpose
Stores a range of characters in a string, starting from
the start-index and ending at end-index. The resultant
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.
Forms a new string by replacing specific characters
of a string. If new-string is not specified, it replaces
the characters with whitespace. The newly formed
string 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.
Stores a specific range of characters of a string in
lowercase. 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.
Stores a specific range of characters of a string in
uppercase. The characters are 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.
Trims the characters in string2 from both ends of
string1. By default, string2 corresponds to whitespace.
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.
Trims the characters in string2 from the left end of
string1. By default, string2 corresponds to whitespace.
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.
Cisco Nexus 7000 Series NX-OS System Management Configuration Guide
Defining a User Policy Using the CLI
259

Advertisement

Table of Contents
loading

Table of Contents