Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

MAXRUN timer expired error

Hello Community,

I am trying to execute a tcl script that I have downloaded from this site called wan_load_alarm. I have registered properly, however after registering I get the following error:

Jan 18 00:08:20.019: %SYS-3-CPUYLD: Task ran for (19884)msecs, more than (2000)msecs (284/22),process = EEM TCL Proc

Jan 18 00:08:20.627: %HA_EM-6-LOG: wan_load_alarm.tcl: 1Process Forced Exit- MAXRUN timer expired.

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl:     while executing

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: "expr $txload_total + $txload "

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl:     invoked from within

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: "$slave eval $Contents"

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl:     (procedure "eval_script" line 7)

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl:     invoked from within

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: "eval_script slave $scriptname"

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl:     invoked from within

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: "if {$security_level == 1} {       #untrusted script

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl:      interp create -safe slave

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl:      interp share {} stdin slave

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl:      interp share {} stdout slave

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: ..."

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl:     (file "tmpsys:/lib/tcl/base.tcl" line 50)

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: Tcl policy execute failed:

Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: 1Process Forced Exit- MAXRUN timer expired.

The script is attached.

I was wondering if someone could help me please

Cheers

Carlton

2 REPLIES
New Member

MAXRUN timer expired error

Community,

My environment variables are as follows:

event manager environment wan_load_interface Tunnel 0

event manager environment wan_load_interval 60

event manager environment wan_load_duration 60

event manager environment wan_load_threshold 100

event manager environment wan_load_history_outfile flash:wan_load_history_outfile.dat

event manager environment _email_server 10.44.108.95

event manager environment _email_from carlton.patterson@ska.co.uk

event manager environment _email_to carlton.patterson@ska.co.uk

event manager directory user policy "flash:/"

event manager session cli username "en.bcz00513"

event manager policy wan_load_alarm.tcl

Cheers

Cisco Employee

MAXRUN timer expired error

The loop that iterates through the history file is fairly tight, and will cause Tcl to spin for a while if the file is very large.  You could add a pause of half a second per field to make sure the thread yields.  Of course, this could also have an impact on maxrun.  You'll likely want to increase maxrun, too.  You can start with 60 seconds and work up from there until the script no longer aborts.

To add a pause in that loop, insert the following after the set txload_total [ expr $txload_total + $txload ] line:

after 500

662
Views
0
Helpful
2
Replies
CreatePlease login to create content