cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2077
Views
0
Helpful
5
Replies

EEM - Applying QoS

pascalo21
Level 1
Level 1

Hi,

I am replacing a 7600 router with an ASR 9K. However, I wasn't able to find the correspondant EEM IOS-XR commands for the below IOS EEM:

event manager applet QoS-NIGHT

event timer cron cron-entry " 0 16 * * 0-7"

action 1.0 cli command "enable"

action 1.1 cli command "conf t"

action 2.0 cli command "policy-map QOS"

action 2.1 cli command "class class-default"

action 2.2 cli command "police cir 12500000"

event manager applet QoS-DAY-TIME

event timer cron cron-entry " 0 6 * * 0-7"

action 1.0 cli command "enable"

action 1.1 cli command "conf t"

action 2.0 cli command "policy-map QOS"

action 2.1 cli command "class class-default"

action 2.2 cli command "police cir 6500000"

I would really appreciate if anyone can paste the convenient IOS-XR commands.

Regards,

5 Replies 5

Joe Clarke
Cisco Employee
Cisco Employee

Paste these applets into http://www.marcuscom.com/convert_applet/ to get the Tcl versions.  XR does not support EEM applets, but since you're using an event detector supported on XR, you can convert these to Tcl and use the Tcl versions as-is on your 9K.

Thank you Joseph for your reply.

I was able to apply the QoS script, however I am facing the below:

when trying to run the script using the event manager run test.tcl command, i am getting the below

Thu Sep 12 15:50:35.053 UTC

Could not run QOS.tcl: policy is not registered

knowing that the show event manager policy registered shows that the Policy is registered.

Thu Sep 12 15:51:09.127 UTC

No.  Class     Type    Event Type          Trap  Time Registered           Name

1    script    user    timer cron          Off   Wed Sep 11 19:38:49 2013  test.tcl

cron entry { 0 16 * * 0-7}

nice 0 queue-priority normal maxrun 20.000 scheduler rp_primary Secu none

persist_time: 3600 seconds,  username: root

Any ideas on how to proceed?

thanks again for your help

You'll need to register the script with:

config t

event manager policy QOS.tcl user root

Then commit your config change.  If that works it should appear as registered.

Hi Joseph,

It is already registered.

the below configuration exists on my ASR 9K router:

event manager directory user policy disk0:/eem_rdsfs

event manager directory user library disk0:/eem_rdsfs

event manager policy QOS.tcl username root persist-time 3600

aaa authorization eventmanager default local

and the show event manager shows that the QOS.tcl policy is registered.

show event manager policy registered

Thu Sep 12 18:11:36.238 UTC

No.  Class     Type    Event Type          Trap  Time Registered           Name

1    script    user    timer cron          Off   Wed Sep 11 19:38:49 2013  QOS.tcl

cron entry { 0 16 * * 0-7}

nice 0 queue-priority normal maxrun 20.000 scheduler rp_primary Secu none

persist_time: 3600 seconds,  username: root

But i am unable to run the policy when issueing the below command:

event manager run QOS.tcl

Thu Sep 12 18:12:11.797 UTC

Could not run QOS.tcl: policy is not registered

You cannot run this policy manually.  It is a timer policy, and can only be run at the specific time of day.  If you want to be able to run it manually, you need to register it with the "none" event detector.