Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

TCL in Cisco Router

Unanswered Question
Apr 1st, 2008
User Badges:

I want to configre my 2821 router for scripting, so that when ever interface increases certain threshold, i will get a email about notification.

I put the wan_load_alarm.tcl in flash and configure the mail server etc according to the cisco doc, but when i try to associate TCL script with policy i got the following error

event manager policy wan_load_alarm.tcl

Register event failed:can't read "wan_load_interval": no such variable

while executing

"::cisco::eem::event_register_timer watchdog name wan_load_timer time $wan_load_interval queue_priority low nice 1


Tcl policy execute failed: can't read "wan_load_interval": no such variable

Embedded Event Manager configuration: failed to retrieve intermediate registration result for policy wan_load_alarm.tcl: Unknown error 0

event manager environment _email_server

event manager environment _email_from [email protected]

event manager environment _email_to [email protected]

Kindly help me how to configure it.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
guruprasadr Tue, 04/01/2008 - 21:53
User Badges:
  • Gold, 750 points or more

HI Wasiim, [Pls Rate if Helps]

Refer Link below for CISCO - EEM Scripting Community:


Here you have many archives of CISCO EEM readily available scripts and others. Also attached the (.mht) pages having the NetPro discussion regarding EEM.

Open the Attachment with Internet Explorer.

Hope I am Informative.

Pls Rate if HELPS

Best Regards,

Guru Prasad R

Joe Clarke Tue, 04/01/2008 - 23:40
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

You're missing a required environment variable, wan_load_interval. It appears this variable defines a time period in seconds used to poll the wan utilization. Try adding:

event manager environment wan_load_interval 60

(Set the interval to 60 seconds).

Other variables may also need to be set, but I wouldn't know without seeing the script.

Note: for the future, the Network Management forum is a great place to get EEM and tclsh help.


This Discussion