Jump to content

Batch File Script for Switches

Hello all,

 

I could do with some help. I am looking to write a script, possibly a batch file, to telnet into a switch with username&pwd , run a command, output that result into a text file, place it in a local directory named MMYYYY &Hostname if possible then do the same for another 100 switches. 

Could the same be better achieved with vbs/python?

If this has been done before please point me in that direction, I have searched for it but found nothing that is exactly what im after, normally it throws me onto Linux which isn't something I would be able to use for this. 

 

Cheers,

N

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, NeroSphere said:

normally it throws me onto Linux

Python is available for practically every possible platform, including Windows, so it's a good choice. There also exists a good and easy-to-use telnet-library for python, so that's another good thing about that choice.

Hand, n. A singular instrument worn at the end of the human arm and commonly thrust into somebody’s pocket.

Link to comment
Share on other sites

Link to post
Share on other sites

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

×