Collecting logs using batch file wit telnet

Unanswered Question
Feb 15th, 2008

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.


I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
miheg Fri, 02/15/2008 - 06:26

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)



miheg Sun, 02/17/2008 - 02:15

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.



qwertys21 Mon, 02/18/2008 - 03:49

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?.


qwertys21 Mon, 02/18/2008 - 06:08

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?



This Discussion