02-15-2008 04:42 AM
Hi All
I am in the process of writing a batch file to collect logs for some switches every week automatically. The only thing is that when I put in
telnet x.x.x.x
It stops at password and waits for the password?
I need to be able to do this without user intervention.
How can I do this? I will be running this from a Windows XP PC.
Thanks
02-15-2008 06:26 AM
use perl;
:-) It's worth learning it. It has modules to let you telnet into devices.
But it might be easier to let the devices send their logs to a syslog server
A good free one in tftpd32 (google it)
Cheers,
Michel
02-15-2008 10:31 AM
I had almost the same need, I had to backup the every week the configuration on all cisco devices.
We have SecureCRT to do Telnet, so I created an script on SecureCRT to do that For me, Then I used Scheduled Tasks on Windows to Run it every friday.
02-17-2008 02:15 AM
SecureCRT has great scripting indeed. I hope that this sort of scripting gets incorporated into putty some day.
Problem that remains is that you never know if you missed something because the log buffer was to small, and if you put the buffer very large you have to find where you left of last time to avoid saving the same data multiple times.
Cheers,
Michel
02-18-2008 03:49 AM
Thanks a lot.
I have SecureRT and have fidgured out how to log on and automate. I can also get it to do a show log.
How do I get it so send the show logs to a file? Also how do I tell it to go continous and not wait for a carriage return?.
Thanks
02-18-2008 06:08 AM
Ok. I have figured out how to log to a file with dates etc. but how do I get it not to stop, waiting for a spacebar or carriage return. I just need the logs to scroll through into the file?
Thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide