From: Gaurav Sabharwal (gaurav@inwire.net)
Date: Sun May 25 2008 - 17:10:46 ART
Should be possible with TCL but if you want to this on multiple routers,
I would suggest looking at Perl + Net::Telnet::Cisco or clogin from rancid.
- Gaurav
on 05/25/2008 07:59 AM Radioactive Frog said the following:
> Group,
> Just wondering if it is possible to run a small script on Cisco router...
>
> I have 2 files in the router flash:
>
> 1. fresh_vlan.dat <---- default vlan information
> 2. start-newlab <---- Base configuration
>
> I want to run a batch script which runs below commands:
>
> copy flash:start-newlab startup-config
> copy flash:fresh_vlan.dat flash:vlan.dat (with /yes patch)
> reload (with /y option)
>
> So what it shuld do, I just run a sort of TCL script and it should do above
> 3 actions and I am ready to do the new lab.
>
>
> --Frog
This archive was generated by hypermail 2.1.4 : Mon Jun 02 2008 - 06:59:18 ART