cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1446
Views
0
Helpful
2
Replies

EEM Script to apply the QOS command in interface as per time base

jubair151
Level 1
Level 1

Hi,

 

I want to apply service policy in my router lan interface time basis. I want to control non-business traffic in business hours, I am thinking to apply QOS to rate limit the non-business traffic in business hours. Hence, i am seeking a help for a EEM script which will punch and remove  the commands as per the time basis.

 

Regards,

Jubair.S

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

You can wrap your commands around an EEM timer applet:

 

event manager applet timed-qos-enable

 event timer cron cron-entry "0 8 * * *"

 action 001 cli command "enable"

 action 002 cli command "config t"

! QoS enable commands here

 

event manager applet timed-qos-disable

 event timer cron cron-entry "0 18 * * *"

 action 001 cli command "enable"

 action 002 cli command "config t"

! QoS disable commands here

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

You can wrap your commands around an EEM timer applet:

 

event manager applet timed-qos-enable

 event timer cron cron-entry "0 8 * * *"

 action 001 cli command "enable"

 action 002 cli command "config t"

! QoS enable commands here

 

event manager applet timed-qos-disable

 event timer cron cron-entry "0 18 * * *"

 action 001 cli command "enable"

 action 002 cli command "config t"

! QoS disable commands here

Thanks Joseph...it worked!!!!!....