08-22-2019 12:03 PM
Newbie Question Here. Does anyone have any config examples on how to set up alerting for T1 controllers? In our environment we were experiencing some call delivery issues. Upon further investigation on one of our routers we have a crap load of Line Code Violations, Path code violations, Fr Loss Secs, Line Err secs, etc
While our SP investigates the circuit issues, and to get a jump on this in the future, I wanted to set up some alarming on these to detect any issues when the occur. Wether it be up/down status or any of the above listed violations.
Can we do email alerts like Cisco RTMT?
Thanks All!
08-22-2019 02:38 PM
Hello,
you could use an EEM script. I have included four examples, for four different parameters. The script runs every 60 seconds and would send an email to you in case the counter in question increases. You obviously have to customize the script to match your exact parameters:
event manager applet LINE_CODE_VIOLATIONS
event timer watchdog time 60
action 1 cli command "enable"
action 2 cli command "show controllers t1 | include Line Code Violations"
action 3 regexp "[0-9]+.*Line Code Violations" $_cli_result"
action 4 if $_regexp_result ge 1
action 5 syslog msg "Line Code Violations registered on T1"
action 6 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "$_event_pub_time: Line Code Violations registered" body "$_syslog_msg"
action 7 cli command "clear controller t1 1"
action 8 end
event manager applet PATH_CODE_VIOLATIONS
event timer watchdog time 60
action 1 cli command "enable"
action 2 cli command "show controllers t1 | include Path Code Violations"
action 3 regexp "[0-9]+.*Path Code Violations" $_cli_result"
action 4 if $_regexp_result ge 1
action 5 syslog msg "Path Code Violations registered on T1"
action 6 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "$_event_pub_time: Path Code Violations registered" body "$_syslog_msg"
action 7 cli command "clear controller t1 1"
action 8 end
event manager applet SLIP_SECS
event timer watchdog time 60
action 1 cli command "enable"
action 2 cli command "show controllers t1 | include Slip Secs"
action 3 regexp "[0-9]+.*Slip Secs" $_cli_result"
action 4 if $_regexp_result ge 1
action 5 syslog msg "Slip Secs registered on T1"
action 6 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "$_event_pub_time: Slip Secs registered" body "$_syslog_msg"
action 7 cli command "clear controller t1 1"
action 8 end
event manager applet FR_LOSS_SECS
event timer watchdog time 60
action 1 cli command "enable"
action 2 cli command "show controllers t1 | include Fr Loss Secs"
action 3 regexp "[0-9]+.*Fr Loss Secs" $_cli_result"
action 4 if $_regexp_result ge 1
action 5 syslog msg "Fr Loss Secs registered on T1"
action 6 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "$_event_pub_time: Fr Loss Secs registered" body "$_syslog_msg"
action 7 cli command "clear controller t1 1"
action 8 end
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide