Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > schedule an action on a router

Reply
Thread Tools

schedule an action on a router

 
 
vsakel
Guest
Posts: n/a
 
      01-24-2007
Hello everyone,

has anybody an idea how can i schedule an interface on a router to be shut
down, after a specific period of time or periodically?

thanks in advance


 
Reply With Quote
 
 
 
 
Walter Roberson
Guest
Posts: n/a
 
      01-24-2007
In article <1169672219.668220@athprx04>, vsakel <> wrote:

>has anybody an idea how can i schedule an interface on a router to be shut
>down, after a specific period of time or periodically?


Do you need it to be shut down (i.e., drop carrier, remove the
connected routes from the routing tables, stop sending BDPUs, etc.),
or do you need it to stop permitting traffic through? Also, should
the time it goes down be relative to whenever it was put up
(e.g., "stay up for 30 minutes and then shut yourself down"), or should
it be absolute times (e.g., "stay up from 02:30 to 03:00") ?

If what you need is to stop passing traffic, then you can use time-
based access lists, available since about 12.0T:
http://www.cisco.com/univercd/cc/td/...1/timerang.htm

time-based access-lists are, if I recall correctly, not available with
all switches, and may require some kind of Enhanced Image on other
switches. They are supported on a fairly wide variety of routers, but
I do not know if they are supported on -all- Cisco routers; you
could check the feature navigator http://www.cisco.com/go/fn
 
Reply With Quote
 
 
 
 
vsakel
Guest
Posts: n/a
 
      01-24-2007
I want ''physicaly'' to be shut down (a serial interface) in order the other
end's router to realise this as a line disconnection. Actually it is a
complex X25 reroute implementation which must be happened every day at
night.


"Walter Roberson" <> wrote in message
news:UYPth.781830$1T2.679422@pd7urf2no...
>
> In article <1169672219.668220@athprx04>, vsakel <> wrote:
>
>>has anybody an idea how can i schedule an interface on a router to be shut
>>down, after a specific period of time or periodically?

>
> Do you need it to be shut down (i.e., drop carrier, remove the
> connected routes from the routing tables, stop sending BDPUs, etc.),
> or do you need it to stop permitting traffic through? Also, should
> the time it goes down be relative to whenever it was put up
> (e.g., "stay up for 30 minutes and then shut yourself down"), or should
> it be absolute times (e.g., "stay up from 02:30 to 03:00") ?
>
> If what you need is to stop passing traffic, then you can use time-
> based access lists, available since about 12.0T:
> http://www.cisco.com/univercd/cc/td/...1/timerang.htm
>
> time-based access-lists are, if I recall correctly, not available with
> all switches, and may require some kind of Enhanced Image on other
> switches. They are supported on a fairly wide variety of routers, but
> I do not know if they are supported on -all- Cisco routers; you
> could check the feature navigator http://www.cisco.com/go/fn
>



 
Reply With Quote
 
Walter Roberson
Guest
Posts: n/a
 
      01-24-2007
In article <1169674358.714438@athnrd02>, vsakel <> wrote:
>I want ''physicaly'' to be shut down (a serial interface) in order the other
>end's router to realise this as a line disconnection. Actually it is a
>complex X25 reroute implementation which must be happened every day at
>night.


Perhaps a tcl script? And/or something using kron ?
I haven't investigated either, so I don't know their limitations
or what IOS versions support them.
 
Reply With Quote
 
vsakel
Guest
Posts: n/a
 
      01-24-2007
Yes a tcl script maybe but i don't know how. i didn't find any example ...

anyway thanks Walter

"Walter Roberson" <> wrote in message
news:mmQth.783414$5R2.614911@pd7urf3no...
>
> In article <1169674358.714438@athnrd02>, vsakel <> wrote:
>>I want ''physicaly'' to be shut down (a serial interface) in order the
>>other
>>end's router to realise this as a line disconnection. Actually it is a
>>complex X25 reroute implementation which must be happened every day at
>>night.

>
> Perhaps a tcl script? And/or something using kron ?
> I haven't investigated either, so I don't know their limitations
> or what IOS versions support them.
>



 
Reply With Quote
 
stephen
Guest
Posts: n/a
 
      01-24-2007
"vsakel" <> wrote in message
news:1169674358.714438@athnrd02...
> I want ''physicaly'' to be shut down (a serial interface) in order the

other
> end's router to realise this as a line disconnection. Actually it is a
> complex X25 reroute implementation which must be happened every day at
> night.


Basic one - try a mains power timer on the DSU or whatever drives the serial
line (if its powered separately). No bits will move if the link is dead....

or if the link uses a routing protocol, maybe you can use Walters idea and
block the routing packets?

(i have a vague memory that sometimes routing packets go around filtering,
so you need to test this on your box / IOS version).
>
>
> "Walter Roberson" <> wrote in message
> news:UYPth.781830$1T2.679422@pd7urf2no...
> >
> > In article <1169672219.668220@athprx04>, vsakel <>

wrote:
> >
> >>has anybody an idea how can i schedule an interface on a router to be

shut
> >>down, after a specific period of time or periodically?

> >
> > Do you need it to be shut down (i.e., drop carrier, remove the
> > connected routes from the routing tables, stop sending BDPUs, etc.),
> > or do you need it to stop permitting traffic through? Also, should
> > the time it goes down be relative to whenever it was put up
> > (e.g., "stay up for 30 minutes and then shut yourself down"), or should
> > it be absolute times (e.g., "stay up from 02:30 to 03:00") ?
> >
> > If what you need is to stop passing traffic, then you can use time-
> > based access lists, available since about 12.0T:
> >

http://www.cisco.com/univercd/cc/td/...1/timerang.htm
> >
> > time-based access-lists are, if I recall correctly, not available with
> > all switches, and may require some kind of Enhanced Image on other
> > switches. They are supported on a fairly wide variety of routers, but
> > I do not know if they are supported on -all- Cisco routers; you
> > could check the feature navigator http://www.cisco.com/go/fn
> >

Also dont forget you will need the router clock to be accurate - NTP?

And pick a box with battery backed clock - otherwise things will go crazy
for a while after a power cut

--
Regards

- replace xyz with ntl


 
Reply With Quote
 
Walter Roberson
Guest
Posts: n/a
 
      01-24-2007
In article <1169675492.573544@athnrd02>, vsakel <> wrote:

>"Walter Roberson" <> wrote in message
>news:mmQth.783414$5R2.614911@pd7urf3no...


>> In article <1169674358.714438@athnrd02>, vsakel <> wrote:
>>>I want ''physicaly'' to be shut down (a serial interface) in order the
>>>other
>>>end's router to realise this as a line disconnection. Actually it is a
>>>complex X25 reroute implementation which must be happened every day at
>>>night.


>> Perhaps a tcl script? And/or something using kron ?


>Yes a tcl script maybe but i don't know how. i didn't find any example ...


Here's some pointers for kron:

http://www.cisco.com/univercd/cc/td/....htm#wp1262401

http://www.cisco.com/univercd/cc/td/....htm#wp1257330

kron allows the scheculing of cli EXEC level commands. "tclsh" is an
EXEC level command so possibly you could trigger the start of a tcl
script. tcl can be used to submit configuration mode commands such as
selecting an interface and "shutdown" it.

http://www.cisco.com/univercd/cc/td/...t_2/gt_tcl.htm


This is probably a hack approach to someone who knows what they are
doing with this stuff But it isn't clear that there is a meaningful
event loop in tcl itself unless you happen to have the Embedded
System Monitor module installed.
 
Reply With Quote
 
Uto cen
Guest
Posts: n/a
 
      01-25-2007
Maybe you could use a script in conjunction with snmpset?
Something like :
snmpset <ip> <rwcommunity> interfaces.ifTable.ifEntry.ifAdminStatus.<x> i 2

make sure proper security is in place for snmp write.


"vsakel" <> wrote in message
news:1169672219.668220@athprx04...
> Hello everyone,
>
> has anybody an idea how can i schedule an interface on a router to be shut
> down, after a specific period of time or periodically?
>
> thanks in advance
>



 
Reply With Quote
 
Bod43@hotmail.co.uk
Guest
Posts: n/a
 
      01-25-2007


On 25 Jan, 04:54, "Uto cen" <remove_nospam_blah2...@yahoo.com> wrote:
> Maybe you could use a script in conjunction with snmpset?
> Something like :
> snmpset <ip> <rwcommunity> interfaces.ifTable.ifEntry.ifAdminStatus.<x> i 2
>
> make sure proper security is in place for snmp write.
>
> "vsakel" <vsa...@yahoo.com> wrote in messagenews:1169672219.668220@athprx04...
>
>
>
> > Hello everyone,

>
> > has anybody an idea how can i schedule an interface on a router to be shut
> > down, after a specific period of time or periodically?

>
> > thanks in advance- Hide quoted text -- Show quoted text -


I like the snmp one all controlled externally.

Regarding Cisco tcl examples, where were you looking,
under the bed? Did you try google?

[cisco tcl example] in google returns what looks to me
like some excellent examples as the first hit and
the second and third look rather promising.

There are also tools for remotely controlling
routers (and anything else that you can telnet to)
via the command line. Expect, Perl Expect extensions.
Terraterm, kiwi tools, Cisco Open Source Initiative
on Sourceforge.

I think that you need a least the Enterprise feature set to
get TCL and Cron (Kron? or is that Korn?.

 
Reply With Quote
 
Walter Roberson
Guest
Posts: n/a
 
      01-25-2007
In article <. com>,
<> wrote:

>Regarding Cisco tcl examples, where were you looking,
>under the bed? Did you try google?


>[cisco tcl example] in google returns what looks to me
>like some excellent examples as the first hit and
>the second and third look rather promising.


None of the first couple of pages of google hits even hints at
how a timed event might be executed. It appears that a couple of
Cisco (or ex-Cisco) employees have written books about using tcl,
but the ones I find were written a decade ago and thus do not
describe what is possible for IOS.

Here's a source that -maybe- would help:
http://tcllib.sourceforge.net/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Struts: 1 action, 1 Form, several views handled by 1 only action. Any idea for better design? John Java 0 06-26-2007 11:22 PM
Can we call an Action from another Action in struts??? vyshu Java 1 04-27-2007 09:19 AM
Struts mapping action to action??? runescience Java 3 02-07-2006 04:07 PM
Struts Forward to an Action from an to Action and URLs rjweytens Java 6 06-25-2004 01:49 PM
Struts Static Action Form vs Dyanamic Action Form Joe Bloggs Java 1 08-03-2003 02:30 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57