- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2015 06:17 AM
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
Solved! Go to Solution.
- Labels:
-
EEM Scripting
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2015 11:15 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2015 11:15 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2015 10:37 PM
Thanks Joseph...it worked!!!!!....
