From: Victor Cappuccio (vcappuccio@gmail.com)
Date: Tue Nov 06 2007 - 09:43:10 ART
Hi, probably there are other good ways to do this, but I think that TCL
could also help
R3>en
R3#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#int lo0
R3(config-if)#no sh
R3(config-if)#exit
R3(config)#int lo1
R3(config-if)#exit
R3(config)#int lo2
R3(config-if)#exit
R3(config)#int lo3
R3(config-if)#exit
R3(config)#int lo4
R3(config-if)#exit
R3(config)#exit
R3#
*Nov 6 13:38:17.535: %SYS-5-CONFIG_I: Configured from console by console
% Unknown command or computer name, or unable to find computer address
R3#
R3>en
R3#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#exit
R3#t
*Nov 6 13:41:02.487: %SYS-5-CONFIG_I: Configured from console by console
R3#tclsh
R3(tcl)#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#foreach i {
+>(config)#lo0
+>(config)#lo1
+>(config)#lo2
+>(config)#} {
+>(config)#int $i
+>(config)#sh
+>(config)#exit
+>(config)#}
R3(config)#do show ip int brioe
*Nov 6 13:41:35.451: %LINK-5-CHANGED: Interface Loopback1, changed state to
adm
inistratively down
*Nov 6 13:41:35.463: %LINK-5-CHANGED: Interface Loopback2, changed state to
adm
inistratively down
R3(config)#\
my 2 cents
Victor Cappuccio
www.vcappuccio.wordpress.com
On Nov 6, 2007 12:32 PM, RRC <ronnieroshan@gmail.com> wrote:
> Hi All ,
>
> Id like a few links and tips to script ? I am lookin at a script that
> would make a SHUTDOWN interface UP and running again on reboot ?
>
>
> Regards
>
> Rony
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
--
This archive was generated by hypermail 2.1.4 : Sat Dec 01 2007 - 06:37:28 ART