LMAO @ Rob... ha ha ha
If you want to add a little extra flavor, you can also create your own
SYSLOG message that will show up in the logs once EEM performs its tasks:
event manager applet SHUT_INTf0/0
 event timer watchdog time 86400      <--- number of seconds in 24 hours
 action you cli command "en"             <--- action
 action suck cli command "conf t"       <--- action
 action at cli command  "int f0/0"        <---action
 action networking cli command "shut"  <--- action (interface is shut)
 action LOL syslog msg "Interface f0/0 was shut due to scheduled shutdown"
<---action (SYSLOG message generated)
Once EEM shuts the port, you will get a SYSLOG message similar to this will
be displayed:
Apr 16 12:12:47.079: %HA_EM-6-LOG: Shut_Intf0/0: Interface F0/0 was shut due
to scheduled shutdown
-Edwin-
On Sat, Apr 16, 2011 at 1:44 AM, me you <anunda19_at_gmail.com> wrote:
> Yo man, I think he wants you to write the magical code to complete this
> simple task. If he wanted knowledge he would have wasted the 00.26 seconds
> of a Google search.  The following is an EEM countdown timer we only used
> it
> because it uses watchdog in the command and it simple.  But there are
> plenty
> of ways to accomplish this.
>
>
> event manager applet SHUT_INTf0/0
>  event timer watchdog time 86400          ---time is sec 24 hours = 86400
>  action you cli command "no shut"         --- action
>  action suck cli command "int f0/0"        -- int
>  action at cli command  "en"
>  action networking cli command "conf t"
>
>
>
>
> Ps I found my IOS placed the commands in alphabetic order.
>
> Rob
>
>
>
>
> On Fri, Apr 15, 2011 at 5:28 AM, Kaio Vilar <kaiovilar_at_gmail.com> wrote:
>
> > Edwin,
> >
> > Thank you for help, the material is very good. Once you complete the
> > configuration inform the result.
> >
> > Regards,
> > Kaio Vilar
> >
> > 2011/4/14 Edwin Campbell <cciewant2b_at_live.com>
> >
> > >  Hello Kaio,
> > >
> > > You can accomplish this with EEM in conjunction with event timers cron
> or
> > > wtih EEM in conjunction with Kron. Check out this link below; It should
> > put
> > > you on the right track...
> > >
> > > http://www.sadikhov.com/forum/index.php?showtopic=163033
> > >
> > >
> > > HTH
> > > -Edwin-
> > >
> > >
> > >
> > >
> > >
> > >  Hello Masters,
> > >
> > > I am needing to schedule a shutdown command to log into an interface,
> all
> > > day on a schedule specifiable, and later no-shutdown. Anyone know how
> to
> > do
> > > this, maybe (EEM)/KRON.
> > >
> > > Regards,
> > > Kaio Vilar
> > >
> > >
> > > Blogs and organic groups at http://www.ccie.net
> > >
> > > _______________________________________________________________________
> > > Subscription information may be found at:
> > > http://www.groupstudy.com/list/CCIELab.html
> >
> >
> > Blogs and organic groups at http://www.ccie.net
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
Blogs and organic groups at http://www.ccie.net
Received on Sat Apr 16 2011 - 12:26:49 ART
This archive was generated by hypermail 2.2.0 : Sun May 01 2011 - 09:00:29 ART