cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2606
Views
0
Helpful
2
Replies

Don't recognize '$' sign in Event manager script

 

Hello ,

i trying to write a script with event manger but i can't use the dollar sign ($) for using the value of the variables 

i tried on routers 2900 and ISR 4300 on both on them it didnt work. 

for example : 

 action 0010 regexp "^.*([0-9][0-9][0-9]):.*:.*DROP.* ([0-9.]+).* -> .*" "$_syslog_msg" _knock_RegEx_Match _knock_Sequence_E1 _knock_Source_E1 - ignore the $_syslog_msg
 action 0020 info type event reqinfo tag _knock_Tag_E2
 action 0030 regexp "^.*([0-9][0-9][0-9]):.*:.*DROP.* ([0-9.]+).* -> .*" "$_syslog_msg" _knock_RegEx_Match _knock_Sequence_E2 _knock_Source_E2

 action 0100 if $_knock_Sequence_E1 lt $_knock_Sequence_E2  - drop an error because the $

 

can you please explain what is the reason for that ? 

 

thanks !!!

 

2 Replies 2

omz
VIP Alumni
VIP Alumni

Hi 

I am not an expert on eem scripting .. as a test .. can you please try "$_syslog_msg" without quotes?  $_syslog_msg

Thanks

Hi , 

thanks for the replay , unfortunately it does not help . 

 

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: