Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script Telnet - run command- collect info - paste in text file 1

Status
Not open for further replies.

scorney

Technical User
Sep 15, 2003
114
0
16
CA
Hi,

How could I make a script that would telnet to a device, once in this devise would telnet into a device connected to this device with login & password, then run a couple command like cpmDumpStatus, collect this data and paste it into a text file..
Once done it will exit and pop a question for what is the next IP to telnet and perform the same task ... maube foe 20 times in a row...

It can be run from a UNIX server or a Windows base PC, what is the easiest and how to do that?

Thanks,
Sylvain
 
I'd consider expect

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top