Hello all,

This maybe simple request to many of you...unfortunately my forte is not in scripting/[programming..

I am currently working with network engineering group where I have to from time to time telnet to a unix server and run a script to get the password of network devices on the network...

However, before I can get the password of a device, I have to cd to a directory run the script and enter several passwords.

It is some what tedious to manually perform the proccess. I was wondering if I can automate through a batch file or maybe VB. Any recommendations appreciated.

Thnx in advance...




This is exactly what I have to do, to get the password of a network device (lets call it hostname)

1. telnet to x.x.x.x <enter>

2. enter username <enter>

3. enter passwd <enter>

4. cd /a/b/c <enter>

5. run the script Cget.pl "hostname" <enter>

6. enter userID <enter>

7. enter password2 <enter>

8. enter userID1 <enter>

9. enter mypass3 <enter>


Thanks again
I hope I made myself clear..


P.S.
I want to be able to run the script/program where I can enter a different hostname each time.( hostname I guess would be a variable)..