cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1077
Views
0
Helpful
1
Replies

string range variable

johanfogel
Level 1
Level 1

Hello everyone

I found a very strange thing in the command action lable string range

I am trying to pick out a part of the string based on two variables but only get "invalid input detected"


action 5.0 string range $str $str_first $str_last

if i go by strict numbers like
action 5.0 string range $str 5 10

it works but the numbers are changing depending on a cli output so I have to calculate the values during runtime

Is this a bug/feature of EEM that you cant send in the first, last index as a variable ? :O it seams a little bit strange that you have to...

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

Unfortunately, when the applet actions were designed, not all parameters supported variablization.  This is one such example.  If you want to make this work, take your applet as you want it and translate it to a Tcl policy at http://www.marcuscom.com/convert_applet .  Then you can register it as an EEM Tcl policy, and it will provide you the desired functionality.