From: Ben (ccieben@cox.net)
Date: Mon Feb 12 2007 - 02:28:23 ART
A simple example with a Kron job that runs once (modify as necessary):
event manager applet INTDOWN
event none
action 10.0 cli command "enable"
action 20.0 cli command "conf t"
action 30.0 cli command "interface FastEthernet0/0"
action 40.0 cli command "shutdown"
action 50.0 syslog msg "Interface Down!"
kron occurrence KRON1 at 22:25 oneshot
policy-list KRONLIST
!
kron policy-list KRONLIST
cli event manager run INTDOWN
My guess is that you'd just make a second EEM applet to restore the
interface to an "up" state and call it with a second Kron job running at
the appropriate time daily.
HTH
Ben
Ben wrote:
> Agreed - It seems that a EEM/Kron solution might work (if you can't
> convince your client that the more direct TACL method would be
> better). I'm just digging into the EEM so I don't have any specific
> examples...
>
> Ben
> Fabrice Paz wrote:
>> You are right time based ACL will do the job for you but if your
>> client is
>> not happy with that you can try expect/tcl script.
>>
>> I never tried it myself but colleagues said it's really easy
>> providing that
>> you have scripted already.
>>
>> Fab
>>
>>
>> On 10/02/07, mohammed shoeb ahmed <mdshoeb@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I run into a requirement that I should turn the Router Ethernet
>>> interface
>>> down on Cisco 2800 series router from 5:00 PM in the evening till 12:00
>>> midnight to separate the internal network with internet for that
>>> period on
>>> daily basis. before I imagined that I could do it using kron but I
>>> learnt
>>> now that only exec commands are possible with this feature. Is any body
>>> know
>>> that scripts could do this job on daily basis or any other solution. I
>>> explained time based accesslist to my customer but he is not convinced,
>>> any
>>> help will be appreciated.
>>>
>>> --
>>> Best Regards,
>>>
>>> Mohammed Shoeb Ahmed
>>>
>>> Consultant
>>>
>>> Pho: 00966-01-2150166
>>>
>>> Mail: mshoeb@scs.com.sa
>>>
>>> Mob:00966-05-09144227
>>>
>>> Riyadh KSA
>>>
>>> _______________________________________________________________________
>>> Subscription information may be found at:
>>> http://www.groupstudy.com/list/CCIELab.html
>>>
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Thu Mar 01 2007 - 07:38:46 ART