Don't recognize '$' sign in Event manager script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2020 11:56 AM - edited 03-26-2020 11:58 AM
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 !!!
- Labels:
-
Embedded Networks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2020 07:33 AM
Hi
I am not an expert on eem scripting .. as a test .. can you please try "$_syslog_msg" without quotes? $_syslog_msg
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2020 08:10 AM
Hi ,
thanks for the replay , unfortunately it does not help .
