tftp config problems
david_laporte at harvard.edu
Thu Nov 3 22:52:11 UTC 2005
try using "\n", eg:
$ /usr/local/libexec/rancid/clogin -c "conf
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;188.8.131.52;switch-confg;;wr' switch
> spawn telnet switch
> Trying 184.108.40.206...
> Connected to switch
> Escape character is '^]'.
> Username: scarter
> 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?
David LaPorte, CISSP, CCNP
Security Manager, Network and Server Systems
Harvard University Information Systems
Email: david_laporte at harvard.edu
More information about the Rancid-discuss