cpatte7372
asked on
Cisco EEM Syslog Pattern Match
Hello Experts,
Can someone please let me know if its possible to have a EEM script activated when particular word appears in a syslog message?
For example, the following is a syslog message:
Sep 19 09:11:33.966: %HA_EM-2-LOG: utilisationHighInterfaceUt ilization. tcl: 992&You are experiencing abnormally high traffic utilization |ifu|/15
Would it be possible if have a EEM script activated when the word "high traffic utilization" from the above syslog message appears?
I have tried with the following but it won't work.
event manager applet toptalkers
event syslog pattern "high traffic utilization"
action 1.0 cli command "enable"
action 1.5 cli command "show flow monitor FlowMonitor1 cache aggregate ipv4 protocol"
action 4.0 mail server "10.44.xxx.xxx" to "carlton@ska.co.uk" from "carlton@ska.co.uk" subject "toptalkers." body "TopTalker Script $_cli_result"
Cheers
Can someone please let me know if its possible to have a EEM script activated when particular word appears in a syslog message?
For example, the following is a syslog message:
Sep 19 09:11:33.966: %HA_EM-2-LOG: utilisationHighInterfaceUt
Would it be possible if have a EEM script activated when the word "high traffic utilization" from the above syslog message appears?
I have tried with the following but it won't work.
event manager applet toptalkers
event syslog pattern "high traffic utilization"
action 1.0 cli command "enable"
action 1.5 cli command "show flow monitor FlowMonitor1 cache aggregate ipv4 protocol"
action 4.0 mail server "10.44.xxx.xxx" to "carlton@ska.co.uk" from "carlton@ska.co.uk" subject "toptalkers." body "TopTalker Script $_cli_result"
Cheers
ASKER
Any help with this please??
ASKER
Hello Community,
I figured out why it doesn't work.
Its because the event isn't, technically speaking, a syslog event. Therefore, can someone please show me how to make the script work with the event as stated above:
Sep 19 09:11:33.966: %HA_EM-2-LOG: utilisationHighInterfaceUt ilization. tcl: 992&You are experiencing abnormally high traffic utilization |ifu|/15
Cheers
Carlton
I figured out why it doesn't work.
Its because the event isn't, technically speaking, a syslog event. Therefore, can someone please show me how to make the script work with the event as stated above:
Sep 19 09:11:33.966: %HA_EM-2-LOG: utilisationHighInterfaceUt
Cheers
Carlton
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Cheers mate.
ASKER
I tried the following but it didn't work:
event manager applet toptalkers
event syslog pattern ".*high traffic utilization.*"