tftp config problems
Steve Carter
scarter at pobox.com
Fri Nov 4 01:10:10 UTC 2005
Awesome, works perfectly, thank you ... I'm so behind the times ... pretty
sure ';' used to work ... :)
* David LaPorte said:
> try using "\n", eg:
>
> $ /usr/local/libexec/rancid/clogin -c "conf
> n\nhost\n199.199.199.199\nswitch-confg\n;wr" switch
>
> Steve Carter wrote:
> > I have a config file on a TFTP server that I want to upload into the
> > running config on a Cisco Cat5 running IOS:
> >
> > switch#sh ver
> > Cisco Internetwork Operating System Software IOS (tm) C3750 Software
> > (C3750-I9-M), Version 12.1(19)EA1c, RELEASE SOFTWARE (fc2)
> >
> > but when I run the following command:
> >
> > $ /usr/local/libexec/rancid/clogin -c 'conf n;host;199.199.199.199;switch-confg;;wr' switch
> > switch
> > spawn telnet switch
> > Trying 199.199.199.198...
> > Connected to switch
> > Escape character is '^]'.
> >
> > Username: scarter
> > Password:
> >
> > switch#
> > switch#term length 0
> > switch#conf n
> >
> >
> > Error: TIMEOUT reached
> > $
> >
> > obviously, I can paste the commands in my config file and I can manually
> > run the 'conf n' commands at the switch prompt. I want to do this so I
> > can update a large number of devices by embedding these commands into a
> > shell script.
> >
> > Any ideas?
> >
> > -Steve
>
> --
> David LaPorte, CISSP, CCNP
> Security Manager, Network and Server Systems
> Harvard University Information Systems
> -----------------------------------------------
> Email: david_laporte at harvard.edu
> PGP: 0x4DC3E508
> 4A1F058DB2B32FEF10A14F6BD370A6AD4DC3E508
>
More information about the Rancid-discuss
mailing list