Jump to content

Recommended Posts

Posted

Hi All

 

I know this is possible because I wrote a batch script years ago that did this unfortunately I cant find it now.

 

essentially we have a few old switches, and I would like to take regular backups of their configuration, essentially probably once a week using a scheduled task.

 

I have setup a TFTP server, logged onto the switch via telnet and backed up the switch config to the TFTP server.

 

However I am struggling to write a working batch file to do this and would appreciate some help. Its been so long I've forgotten how to do things like press enter in a batch file. Send text to the telnet session.

 

Essentially I need my bat file top look something like this

 

telnet 192.168.1.10

USERNAME Text

PASSWORD Text

tftp 192.168.1.100 put current.cfg backup.cfg

Sleep 500

quit

 

 

Thank in advance

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...